Subject:Parsing special characters in XSL Author:leopaul pradeep Date:19 Jan 2010 10:32 AM
Hi,
I have an xml with special charcters in a tag ( eg. abc ; bgh). I've used an xslt (given below) to parse it. I'm getting a value for characteristic, which i'm assigning to characteristic_name and setting it as an attribute name. This works fine, but the problem comes if there is a special character in the characteristic. Bcos when setting it as an attribute name parser throws an error. Pls help me to solve the issue.
Subject:Parsing special characters in XSL Author:Tony Lavinio Date:25 Jan 2010 02:17 PM
It's hard to see without the actual incoming XML, which is where you state the problem actually is.
If the incoming XML is invalid, XSLT won't be able to handle it. XSLT doesn't see the XML until the XML parser has parsed it, and if the XML is bad, the parser will stop well before XSLT even knows there is an issue.