[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: Adding CDATA to the transformed XML
The OP hasn't said exactly, but it sounds to me like the other subsystem is
some sort of interface that lets users input whatever they like into the XML.
Since they can input anything from their keyboard, they occasionally input stuff like "&" which of course doesn't parse. In any case, what Mike said is still correct. The XSLT process that transforms this XML doesn't need to force a CDATA marked section wrapper, because the serializer will do any necessary escaping. That is, if the problem is in the other subsystem, forcing CDATA in this one will guarantee nothing. The real solution is to fix the other subsystem so it converts disallowed characters into their allowed representations, or does a CDATA wrapping of its own as a poor-man's version of the same. So I'm guessing the the problem is not in a parser, but rather in a tool (a UI or something, maybe just a text editor) that allows users to input malformed data and doesn't correct it for them before passing it over. A compliant parser is part of the fix; but we don't know that that the offending subsystem uses a parser at all. Cheers, Wendell At 11:21 AM 1/12/2005, it was written: > No the other Sub system does not use XSLT ====================================================================== Wendell Piez mailto:wapiez@xxxxxxxxxxxxxxxx Mulberry Technologies, Inc. http://www.mulberrytech.com 17 West Jefferson Street Direct Phone: 301/315-9635 Suite 207 Phone: 301/315-9631 Rockville, MD 20850 Fax: 301/315-8285 ---------------------------------------------------------------------- Mulberry Technologies: A Consultancy Specializing in SGML and XML ======================================================================
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|