OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

   RE: [xml-dev] stupid deterministic content model question

[ Lists Home | Date Index | Thread Index ]


K. Ari Krupnikov wrote:
> 
> David Tolpin <dvd@davidashen.net> writes:
> 
> > > I'm having a blackout. Is (para+|(para*, summary)) deterministic?
> > 
> > No, it is not.
> > 
> > > What I want is at least one element, at most one summary, 
> and if a 
> > > summary appears, it should be the last element.
> > 
> > (para*,(para|summary))
> 
> Hm, how would <para/><para/><para/> match this? The three 
> paras would match "para*", and then there would be nothing to 
> satisfy "para|summary".
> 
> Is (a*, a) satisfiable at all? It reads as "forever and one day".


If you want one or more <P> followed by an optional <S>, you can use:

(P, P*, S?)

which, once expressed in XML Schema, does not violate the UPA.

Alessandro


> 
> Ari.
> 
> -- 
> Elections only count as free and trials as fair if you can 
> lose money betting on the outcome.
> 
> -----------------------------------------------------------------
> The xml-dev list is sponsored by XML.org 
> <http://www.xml.org>, an initiative of OASIS 
<http://www.oasis-open.org>

The list archives are at http://lists.xml.org/archives/xml-dev/

To subscribe or unsubscribe from this list use the subscription
manager: <http://lists.xml.org/ob/adm.pl>






 

News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS