W3C home > Mailing lists > Public > xml-editor@w3.org > January to March 1999

3.2.1 Emphasize on undefined cps

From: Oliver Meyer <omeyer@i3.informatik.rwth-aachen.de>
Date: Thu, 4 Mar 1999 13:30:14 +0100 (MET)
Message-ID: <14046.31958.431538.718217@spohr>
To: xml-editor@w3.org
Dear editors,

after a short discussion in comp.lang.xml, I'd like to submit a
request for clarification in section '3.2.1 Element Content' of
REC-XML-19980210. 

Make clear how an XML processor should behave if the Name used in
[48]cp references an undeclared element.

The example:
<?xml version="1.0"?>
  <!DOCTYPE p [
  <!ELEMENT Unused (refA, refB, refC)>
  <!ELEMENT p (#PCDATA)>
  ]>
<p> foo </p>

is valid with respect to the spec. In accordance to section '3.3
Attribute-List Declarations' something like 'At user option, an XML
processor may issue a warning if elements referenced as content
particles are not itself declared.' should be added to section '3.2.1
Element Content'. 

Some parser already issue warnings for this case, others don't.

Please let me know, if the above does NOT describe the bahaviour
intended by the XML Spec.

Best Regards,

Oliver Meyer
Received on Thursday, 4 March 1999 07:31:41 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 7 December 2009 10:59:29 GMT