On 02.05.2011 19:45, uwdev12 wrote:

I have the following xml snippet:

<?xml version="1.0" encoding="ISO-8859-1"?>
<bugzilla version="3.2.9" urlbase="http://netbeans.org/bugzilla/";
maintainer="site-ad...@netbeans.org">
<bug>
<creation_ts>2003-05-12 14:53</creation_ts>
<component>Dialogs&Wizards</component>
.......

That's malformed. Not XML.

and the following xsl stylesheet...

<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform";>
<xsl:output method="xml" indent="yes" version="1.0" encoding="UTF-8" />
<xsl:template match="/">
<xsl:element name="bugzilla">
<xsl:element name="bug">
<xsl:for-each select="bugzilla/bug">
<xsl:element name="component">
<xsl:value-of select="./component" disable-output-escaping="yes"/>
</xsl:element>
.....

"disable-output-escaping" does not escape the&  character in
"Dialogs&Wizards". Am I missing something obvious here?

What are you trying to achieve?

Best regards, Julian

Reply via email to