In a web project, I have a lot of XML files with non-escaped characters. I declare these characters as DTD Entities and include the list of declaration internally in each XML file, like so:
!DOCTYPE article SYSTEM "../../pubmedref/archivearticle.dtd" [
<!ENTITY bull "•">
<!ENTITY copy "©">
... a long list ...
]>
Is there any way I can have these declarations in an external file and import it in the XML files? The XML files are rendered to the browser using XSLT.
FWIW, I've tried referencing a .ent
file but it does not work on any of the browsers.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…