[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

newbie question: using < in entity declaration

  • From: "Sarveshwar Rao Duddu" <duddu@v...>
  • To: "Xmldev" <xml-dev@x...>
  • Date: Thu, 29 Jun 2000 15:13:53 +0530

entity in a sentence
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!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.