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

From
Richard Tobin <>
To
Date
2003-10-05T13:01:14Z
ID
<>
Thread
Re: [xml-dev] stupid deterministic content model question
In article <> 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