Subject: [xsl] Issue with entities in XML document From: "Ramkumar Menon" <ramkumar.menon@xxxxxxxxx> Date: Fri, 3 Aug 2007 15:42:24 -0700 |
Hi gurus, I have a question on entities. The input document to my XSLT contains one element <description>Hansel & Gretel</description> After the XSLT transformation, it works fine <outputDescription>Hansel & Gretel</outputDescription> Perfect. Once I pass this resulting XML to an custom xpath extension function that converts this xml to string, the output contains <outputDescription>Handle &amp; Gretel</outputDescription> Note the extra amp; The xpath extension function does nothing but write the xml content onto a java StringWriter object. Is it an issue with the serializer ? Or is it an acceptable behaviour? Any clues on how to prevent the second amp; to appear in the string output ? i.e. once I write it to a string, the value should be <outputDescription>Hansel & Gretel</outputDescription> regards, Ram -- Shift to the left, shift to the right! Pop up, push down, byte, byte, byte! -Ramkumar Menon A typical Macroprocessor
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] Text Overflows Margin Bottom, Horace Burke | Thread | RE: [xsl] Issue with entities in XM, Michael Kay |
Re: [xsl] translate to XML using XS, Steve | Date | RE: [xsl] Issue with entities in XM, Michael Kay |
Month |