[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Issue with entities in XML document

Subject: Issue with entities in XML document
From: "Ramkumar Menon" <ramkumar.menon@xxxxxxxxx>
Date: Fri, 3 Aug 2007 15:42:24 -0700
 Issue with entities in XML document
Hi gurus,

I have a question on entities.
The input document to my XSLT contains one element <description>Hansel
&amp; Gretel</description>
After the XSLT transformation, it works fine <outputDescription>Hansel
&amp; 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;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 &amp; 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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.