Andy Dingley
Usenet Archive
- Joined
- Feb 23, 2000
- Messages
- 3,303
- Reaction score
- 0
I have some (somewhat ragged) HTML, and I wish to pre-process it with XSLT before putting it back onto the server. Throughout this HTML are many character entity references, such as "&ecaute;".
After the XSLT process, I _must_ preserve these character entity references, i.e. I can't let them turn into "é".
Is there any way to do this ? Every combination of processor, XSLT coding and sundry DTD and schema reference juggling causes the processor to spit out "é" rather than "&ecaute;". I know this is valid in context, but when I put it back into the rest of my system it won't be.
So far the only reliable way I've found to reliably produce an entity reference is like this:
<xsl:text disable-output-escaping="yes" >&eacute;</xsl:text>
Obviously this is inflexible, and as <xsl:text> doesn't let me have any child elements I can't do this dynamically, even by hairy string-mangling.
Thanks for any assistance.
After the XSLT process, I _must_ preserve these character entity references, i.e. I can't let them turn into "é".
Is there any way to do this ? Every combination of processor, XSLT coding and sundry DTD and schema reference juggling causes the processor to spit out "é" rather than "&ecaute;". I know this is valid in context, but when I put it back into the rest of my system it won't be.
So far the only reliable way I've found to reliably produce an entity reference is like this:
<xsl:text disable-output-escaping="yes" >&eacute;</xsl:text>
Obviously this is inflexible, and as <xsl:text> doesn't let me have any child elements I can't do this dynamically, even by hairy string-mangling.
Thanks for any assistance.