W3C home > Mailing lists > Public > www-xml-schema-comments@w3.org > January to March 2005

Re: Proposed addition to XML Schema 1.1: N from sequence

From: Dave Peterson <davep@iit.edu>
Date: Tue, 25 Jan 2005 21:55:15 -0500
Message-Id: <a06110409be1cb681b663@[192.168.0.2]>
To: Martin Thomson <martin.thomson@nortelnetworks.com>, www-xml-schema-comments@w3.org

At 10:44 AM -0700 050125, Martin Thomson wrote:
>My apologies for the long document, this is a complex issue.
>
>In a number of DTDs, the following structure is used to indicate 
>that one or both elements are to be included.
>
>   <!ELEMENT example (content1 | content2 | (content1, content2))>

Oops!  To quote the XML Rec:  "As noted in 3.2.1 Element Content, it
is required that content models in element type declarations be
deterministic."  Yours isn't.  What you want is

     <!ELEMENT example ((content1 , content2?) | content2) >

What does this do to your discussion?
-- 
Dave Peterson
SGMLWorks!

davep@iit.edu
Received on Wednesday, 26 January 2005 05:05:05 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 23 October 2007 06:13:36 GMT