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

More questions about conformance and entities

  • To: xml-dev@l...
  • Subject: More questions about conformance and entities
  • From: Jeff Rafter <lists@j...>
  • Date: Mon, 25 Oct 2004 06:26:28 -0700
  • User-agent: Mozilla Thunderbird 0.8 (Windows/20040913)

entities w3c
I thought namespaces were a pain to implement.

I have a question about "Validity constraint: Proper Declaration/PE 
Nesting" [1] I understand that this is saying the following is violates 
the VC:

Doc1.dtd
========
<!ENTITY % e "<!-- a ">
<!ENTITY % f "%e;comment -->">


Doc2.dtd
========
<!ENTITY % e "<!-- a ">

But what about this:

Doc3.dtd
========
<!ENTITY % e "<foo>">
<!ENTITY % f "%e;</foo>">
<!ENTITY g "%g;">

I think that it is legal but who knows anymore. As near as I can figure 
it doesn't violate this VC because it is not a markup decl specifically. 
Also, it is not a violation of "Validity constraint: Proper Group/PE 
Nesting" [2]. I assume it is valid because of this text in 4.3.2 "An 
internal general parsed entity is well-formed if its replacement text 
matches the production labeled content. All internal parameter entities 
are well-formed by definition."


Bonus questions: Which wins out: "Well-formedness constraint: In DTD" 
[3] or "Not Recognized" [4]


[1] http://www.w3.org/TR/REC-xml/#vc-PEinMarkupDecl
[2] http://www.w3.org/TR/REC-xml/#vc-PEinGroup
[3] http://www.w3.org/TR/REC-xml/#indtd
[4] http://www.w3.org/TR/REC-xml/#not-recognized

Thanks,
Jeff Rafter

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.