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 ]

In article <200310040621.h946Ljee010554@adat.davidashen.net> you write:
>> 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))

That's not deterministic either.  If you get a para at the start, which
does it match?

The content can start with either para or summary.  If it's summary,
you can't have anything else.  If it's para, you can have more paras
and an optional summary.  So you want

  (summary|(para+,summary?))

-- Richard




 

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

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