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

Re: Non-deterministic content model

  • From: Jeni Tennison <mail@j...>
  • To: Francis Norton <francis@r...>
  • Date: Fri, 15 Jun 2001 10:30:25 +0100

Re: Non-deterministic content model
Hi Francis,

> Robin Cover wrote:
>> On Thu, 14 Jun 2001, Marcus Carr wrote:
>> >
>> > Sam Willmott from OmniMark released a white paper on content model algebra
>> > in the early nineties. He concluded that there was only one content model
>> > that cannot be disambiguated and I have yet to see proof to the contrary.
>> > The model is:
>> >
>> >    (x, (y, x)*, y?)
>
> I'm trying to iterpret this interesting theory thread in the light of
> existing validation technologies.
>
> Taking the chess moves interpretation, the ambigous model above can be
> implemented in Schematron as:
>
[snip]
>
> Is it equally simple to implement this ambiguous model in other schema
> technologies?

RELAX NG doesn't require deterministic patterns; the following
schema should do it:

<element name="game">
   <element name="white" />
   <zeroOrMore>
      <element name="black" />
      <element name="white" />
   </zeroOrMore>
   <optional>
      <element name="black" />
   </optional>
</element>

XML Schema forces deterministic model groups, so you can't use that.

Cheers,

Jeni

---
Jeni Tennison
http://www.jenitennison.com/



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.