[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] newbie question: using < in entity declaration
Hi, I have a doubt in whether or not it is legal to declare something like: <!ENTITY lt "<"> or should we double escape it... The spec (in section 4.6) double escapes it. The XML spec in XML in its internal subset does not escape it, and that also Works with IBMs xml parser. Can somebody throw some light on it? Regards, Sarvesh _________________________________________ The spec says (section 2.4) "The ampersand character (&) and the left angle bracket (<) may appear in their literal form only when used as markup delimiters, or within a comment, a processing instruction, or a CDATA section. They are also legal within the literal entity value of an internal entity declaration;" and the errata asks us to delete the last sentence in the above: "E18 Clarification Source: minutes XML-Syntax 1999-02-17 E18 Section 2.4 Delete the second sentence of the third paragraph, which reads: "They are also legal within the literal entity value of an internal entity declaration; see "4.3.2 Well-Formed Parsed Entities". " Rationale: This sentence is bogus. When & or < are in a literal entity value they are being used as a markup delimiter, thus the whole second sentence is just confusing static. " *************************************************************************** This is xml-dev, the mailing list for XML developers. To unsubscribe, mailto:majordomo@x...&BODY=unsubscribe%20xml-dev List archives are available at http://xml.org/archives/xml-dev/ ***************************************************************************
|
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
|