问题
Possible Duplicate:
XSLT: How to convert XML Node to String
Input:
<text> aabbabab </text>
output:
<text> aabbabab </text>
This is the opposite to Disable output escaping.
How can we achieve this in xslt.
Can some one help on this.
Thanks
回答1:
See this answer.
In summary, the shortest solution uses a tiny extension function.
回答2:
If you can use Saxon extensions, try
<xsl:value-of select="saxon:serialize(text)"/>
If not, there are various posts that tell you how to write your own serialize() function in XSLT.
来源:https://stackoverflow.com/questions/11733618/opposite-method-to-disable-output-escaping-in-xslt