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

Re: Nested entity declarations in DTDs

  • From: Sebastian Pipping <sebastian@pipping.org>
  • To: xml-dev@lists.xml.org, daniel@d...
  • Date: Sun, 13 Mar 2022 20:04:17 +0100

Re:  Nested entity declarations in DTDs
Hi Daniel and xml-dev,


On 13.03.22 19:43, Liam R. E. Quin wrote:
You are going on https://www.w3.org/TR/2008/REC-xml-20081126/ right?
more specifically, there is section…

  D Expansion of Entity and Character References (Non-Normative)
  https://www.w3.org/TR/2008/REC-xml-20081126/#sec-entexpand

…in there where the evaluation of this XML sample…

  1| <?xml version='1.0'?>
  2| <!DOCTYPE test [
  3| <!ELEMENT test (#PCDATA) >
  4| <!ENTITY % xx '&#37;zz;'>
  5| <!ENTITY % zz '&#60;!ENTITY tricky "error-prone" >' >
  6| %xx;
  7| ]>
  8| <test>This sample shows a &tricky; method.</test>

…is evaluated manually with explanation; given its use of "&#37;" and
the resulting delayed interpretation of the entity declaration, this
seems to be about as close of a match as it gets.

I'm not sure of the consequences of "Non-Normative" in the section
heading.  The way I read the related text is that they explain expected
behavior but also call this method error-prone to warn XML writers of
relying on this feature because of to-be-expected incompatibilities with
some implementations, due to the tricky aspects of these details.

Best



Sebastian


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]


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.