|
[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Deterministic content models???
Doug Rudder scripsit:
> Exactly. But I can see where someone with an SGML DTD background (like me,
> for instance) might initially try use this construct out of habit in an XML
> DTD -- until of course it fails to validate in XML and requires debugging.
Or, of course, you can go to RELAX NG where there are no such silly rules,
and write something like this:
paracontent = (\text | list | (table, tabnote*) | figure)+
\text = text | this | that ...
list = foo | bar | baz ...
table = element table { ... }
tabnote = element tabnote { ... }
figure = element figure { ... }
(The \ before "text" prevents it from being confused with the builtin
word "text", which is the equivalent of #PCDATA.)
--
John Cowan <jcowan@r...>
http://www.reutershealth.com http://www.ccil.org/~cowan
Yakka foob mog. Grug pubbawup zink wattoom gazork. Chumble spuzz.
-- Calvin, giving Newton's First Law "in his own words"
|
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
|
|||||||||

Cart








