[
Lists Home |
Date Index |
Thread Index
]
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@reutershealth.com>
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"
|