OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help



   More questions about conformance and entities

[ Lists Home | Date Index | Thread Index ]
  • To: xml-dev@lists.xml.org
  • Subject: More questions about conformance and entities
  • From: Jeff Rafter <lists@jeffrafter.com>
  • Date: Mon, 25 Oct 2004 06:26:28 -0700
  • User-agent: Mozilla Thunderbird 0.8 (Windows/20040913)

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:

<!ENTITY % e "<!-- a ">
<!ENTITY % f "%e;comment -->">

<!ENTITY % e "<!-- a ">

But what about this:

<!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

Jeff Rafter


News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS