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

Re: New schema spec

  • From: "Rick Jelliffe" <ricko@a...>
  • To: <xml-dev@i...>
  • Date: Tue, 11 May 1999 04:28:26 +1000

xml n m

From: roddey@u... <roddey@u...>
 >I am interested in some comments on the new Schema spec. In
particular, what are
>people's thoughts about the fact that the AND connector has been
>and that SEQ,ALT,AND blocks now support an optional min/max repetition

Excellent things. XML was right to simplify SGML and get rid of & and
exceptions. I hope XSchema will reintroduce both of them, and more.

>Just the m to n repetition system means that DFAs wouldn't work anymore

n{2 to 5} can be replaced by  (n, n, (n, (n, (n)?)?)?)

(n, m){2,5} can be replaced by ((n,m), (n,m), (n,m, (n,m (n,m)?)?)?)

(n|m){2,5} can be replaced by
    ((n|m), (n|m), (n, ((n, (n|m))
                                    | (m, (n|m))))
                            | (m, (n, (n|m))
                                   | (m, (n|m))))

(n&m){2 to 5} can be replaced by
     ( ((n, m)| (m,n)),
       ((n, m)| (m,n)),
       ( ((n, m)| (m,n)), ( ((n, m)| (m,n)), ((n, m)| (m,n))?)?)? )

What would upset things is if  (n&m){2 to 5} could be satisfied by the
     n n n n n m m m m m

Also, content models such as  (n?, m?){2 to 5} are ambiguous, but so
(n?, m?)* or (n?, m?)+

Rick Jelliffe

P.S. Am I the only one freaking out that the current Schema draft is not
compatible with XML 1.0?  It introduces a new class "nearly well-formed"
which is not WF: thus all current XML processors will treat these
documents in error. This is a terrible excercise in backwards
incompatability--all existing XML processors will be incompatible: the
only reason they have this class is because they try to cram into the
Schema spec some way to declare entities (I thought that XLink was our
way to improve entities: now we have 3 ways to do them...Yikes).  It
reduces XSchema's credibility a lot--it makes it look like there is a
petty dislike of XML's markup declaration syntax which was so strong
that it overweighed the requirement to conform to XML 1.0 WF rules.

P.P.S. The archetype and datatype parts of the Schema proposal are
excellent, IMHO.

xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev@i...
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/ and on CD-ROM/ISBN 981-02-3594-1
To (un)subscribe, mailto:majordomo@i... the following message;
(un)subscribe xml-dev
To subscribe to the digests, mailto:majordomo@i... the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa@i...)


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.
First Name
Last Name
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.