[jdom-interest] stop jdom from escaping (creating dynamic xsl
jhunter at collab.net
Mon Jun 11 09:57:54 PDT 2001
> "Rhodes, Phillip C." wrote:
> I am creating xsl with jdom and it is escaping <xsl:value-of />
> String xsl = "Your name is" + "<xsl:value-of select=\"name\" />";
> Element element = new Element(xsl);
> When I output the document, it will escape the > and < characters.
JDOM is behaving properly, because you passed text for what should be an
element. You want to create the <xsl:value> element as an Element, and
all will work fine.
More information about the jdom-interest