[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: stupid deterministic content model question
K. Ari Krupnikov wrote: > > David Tolpin <dvd@d...> 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>
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|