Hi,
I have a question about the disable-output-escaping attribute in a XSLT-Stylesheet.
I need to have a string in my output that describes a numeric entity like "& # x 0030;" (the inserted spaces are only to avoid the forumsoftware to interpret this sign). This should not be interpreted as the sign "0" but rather be literally copied in the result document.
In XSLT Stylesheet I achieve this by writing:
<xsl:value-of disable-output-escaping="yes" select="'&#x0030;'" />
Now I've tried to create a such Node object in a DOM tree. But thats harder than I thought.
Text n = currentNode.getOwnerDocument().createTextNode((char)38 + "#x0030;");
Text n = currentNode.getOwnerDocument().createTextNode("\u0026#x0030;");
I tried to create a Text object (see above) but the ampersand sign is always interpreted as '& amp;', so that my resultstring is '& amp;#x0048;'.
Now my question is if there is a posibility to set a property like "disable-output-escaping" for a specific Text/Node object?
I would be grateful for an answer.
Best Wishes
esprimo