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

Re: The one element schema language

  • From: Rick Jelliffe <ricko@a...>
  • To: xml-dev@l...
  • Date: Wed, 07 Feb 2001 02:27:06 +0800

element of language
 From: Joe English <jenglish@f...>

>[ Note: this is based on yesterday's draft -- Rick added some
>  features to the language while I wasn't looking :-)

The features I added were a postfix "." fullstop, to say the element is
empty,
and a postfix ";" group-break, to say that the  element cannot contain other
elements in the same group (the default is they can).  In the case of ";"
appearing in an [] group at the end, this is the same as defining them to
have data content only.
So a "." means stop, and a ";" means break, which is pretty natural.  (The
";" may need a different definition to fit in with implementations
better--it is just to pluck the low-hanging fruit.)

>Under TENTATIVE ASSUMPTION 1, a hook-schema actually induces
>a "strict weak order" (in the C++ STL sense) on NCNames.  (A
>strict weak order is stronger than a partial order but weaker
>than a total order; a relation '<<' on S is a strict weak order
>if there is a homomorphism from (S, <<) to (Z, <) where (Z, <)
>is a totally ordered set).
>However, TENTATIVE ASSUMPTION 1 does not hold in general since
>it's contrary to Rick's spec, which explicitly allows NCNames to
>appear more than once in a hook schema.

So what should I call it, if it is neither partial order nor strict weak
order?

>This suggests an efficient implementation
>(Rick -- does this look like what you had in mind?

Looks great to me.   One tricky thing that I am not sure about is that I
would allow the schema element inline in a document, anywhere before the
hook-end (i.e., it could
be first child, or second child if the first child was empty, etc) so that
the SAX implementation would be able to read validate the bits of the
document already gone by, and so we avoid using PIs (though, of course, a PI
would be fine for this since there is no element structure).

Do you think it would be better as a PI or an element like that?

> I suspect I'm missing
>something here, since your example hook schema for XHTML Basic would
>actually reject many documents that are DTD-valid with the above
>validation algorithm.  It does seem to work for the other examples
>you gave (PurchaseOrder, RSS, and Schematron) though.)

Probably that schema is wrong (what was the problem?)

Cheers
Rick Jelliffe


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.