[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Saxon errors
Kamal Bhatt wrote:
In your input, change "<" to < and ">" to > . No, the < can never be used unless inside CDATA. But you can use the > safely without escaping. There are only two entities that must always be escaped: < and &. The other default entities, >, " and ' sometimes do and sometimes don't need to be used: <!-- valid xml --> <input value=" ' " /> <input>>>></input> <input value=">>>" /> <input value=' " ' /> (to take this to an extreme, note that the string ]]> cannot be used inside CDATA... or... outside CDATA. but all the rest: np) but the OP had < in an attribute and like you said: that is illegal. In addition, there also appeared a " in the attribute and without changing the surrounding quotes, it should be escaped. The attribute equals the XML declaration string. I think the OP does not want valid XML like this (note the quote change): <pfarr name='<?xml version="1.0" encoding="iso-8859-1"?>'> but like this: <?xml version="1.0" encoding="iso-8859-1"?> <pfarr name="xyz"> <pfarr name="dls"> which, interestingly, is precisely the way the XML looked in a post by the same person, at 6 feb 2007 about multiple sorts on element attributes. My guess is, that somehow the source got tangled during these months... ;) Cheers, -- Abel Braaksma
|
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
|