W
will
I have an XML input that includes things like:
<foo>line of text
another line of text
yet another</foo>
And I want the
entities PRESERVED (not translated) on the result,
so:
<bar>line of text
another line of text
yet another</bar>
I've tried <xsl:copy-of select="foo/text()" />, I've tried
<xsl:value-of select="foo" disable-output-escaping="yes" />, I've tried
<xsl:text disable-output-escaping="yes"><xsl:copy-of
select="foo/text()" /></xsl:text>, and it seems nothing works.
Strangely, will (with certain incantations of the above) be
preserved properly, but it seems that perhaps the PARSER is translating
the entities, not copying them. i.e., no matter what I try, the
from the input become newlines in the output.
I'm using Xerces J (a couple of different versions with the same).
Thanks smart people.
<foo>line of text
another line of text
yet another</foo>
And I want the
entities PRESERVED (not translated) on the result,
so:
<bar>line of text
another line of text
yet another</bar>
I've tried <xsl:copy-of select="foo/text()" />, I've tried
<xsl:value-of select="foo" disable-output-escaping="yes" />, I've tried
<xsl:text disable-output-escaping="yes"><xsl:copy-of
select="foo/text()" /></xsl:text>, and it seems nothing works.
Strangely, will (with certain incantations of the above) be
preserved properly, but it seems that perhaps the PARSER is translating
the entities, not copying them. i.e., no matter what I try, the
from the input become newlines in the output.
I'm using Xerces J (a couple of different versions with the same).
Thanks smart people.