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

Re: <& in internal entity values

  • From: "James Tauber" <jtauber@j...>
  • To: "Peter Jones" <peterj@w...>, "'XML-DEV'" <xml-dev@i...>
  • Date: Fri, 28 Aug 1998 21:11:24 +0800

internal entity
-----Original Message-----
From: Peter Jones <peterj@w...>

>Can anyone tell me why productions [9] of the XML 1 spec says that the &
>char is not allowed within an entity declaration but the section 2.4 on
>Char Data below says that they are. Section 2.4 seems to suggest that
>the following is o.k.
>
><!ENTITY   punctuation    "<&" >
>
>Is it?

No.

I am guessing that what confused the issue was the sentence "They are also
legal within the literal entity value of an internal entity declaration".

The reason for this sentence is that AT THE TIME OF DECLARATION, < and & in
a literal entity value are not treated as markup delimiters.

2.4 says that
"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".

Now because < and & are not markup delimiters in a literal entity value at
the time of declaration, the additional sentence "They are also legal within
the literal entity value of an internal entity declaration" is added.

< and & are treated as markup delimiters only at the point of reference.

Hope this helps.

James
--
James Tauber / jtauber@j...      http://www.jtauber.com/
Lecturer and Associate Researcher
Electronic Commerce Network             ( http://www.xmlinfo.com/
Curtin Business School                  ( http://www.xmlsoftware.com/
Perth, Western Australia                ( http://www.schema.net/


xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev@i...
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/
To (un)subscribe, mailto:majordomo@i... the following message;
(un)subscribe xml-dev
To subscribe to the digests, mailto:majordomo@i... the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa@i...)


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.