|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Invalid character reference while parsing
Shishir
The characters "&" and "<" are reserved in XML as what are called "open markup delimiters" -- that is, they are the characters recognized by XML processors as indicating that what follows is markup, not data. Hence they can't be used as plain characters. XML provides for character references, which you can use to work around this. For "<" use the reference "<" (that's "& l t ;" for those with overzealous email clients) and "&" (that's "& a m p ;") for "<" and "&" respectively. If you'd like to read a rationale and deeper explanation for all this, take a look at http://xmlshoestring.com/xml101/wfrules. BTW, strictly speaking this question is out of scope for this list, which is about XSLT and not XML in general. Cheers, Wendell At 07:43 AM 5/21/2004, you wrote: Hi All, I create a text node in an xml document which might contain characters like "&" and <(angle brackets) to say atleast. Now when this is parsed by xslt parser it throws an error saying ====================================================================== 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
|

Cart








