No, sorry, there is no way to achieve this in XSLT 1.0 (I find it
The circumvention I have used is to edit the file before transformation to
replace all "&" characters by something like "###", and then edit them back
at the end; you also need to reinsert the internal DTD subset into the
result document at the end.
There's a possible solution to the problem (or you might describe it as a
workaround) in Appendix F (IIRC) of the XSLT 2.0 WD, and I hope I might get
round to implementing that in Saxon some day.
[mailto:saxon-help-admin@... Behalf Of Thom Kuhn
Sent: 22 January 2002 16:35
Subject: [saxon] Entity references
I wish to go from XML to XML using the same DTD. The point is to make some
minor structural changes throughout a set of documents. Everything works
fine except that the named entity references get converted. We use ISO names
for all characters above 128, and want them to stick in the output file. The
entity references for characters between 128 and 255 get converted to the
actual character, and those above 255 get converted to numeric entities. I
realize that this is correct behavior according to the specification. I
examined the Saxon extensions, but I couldn't find anything that helps if
the output is XML. I hope that I am missing something here. Is there any way
to suppress all entity reference conversions?