[Home] [By Thread] [By Date] [Recent Entries]
Hubert Holtz wrote:
Hy, Without SGML's "&" (and) operator, XML requires you to explicitly state each possible combination of elements. This is, in theory, always possible, but it usually results in such a large OR group of OR groups that it's not done. Easier to just state the rule in the DTD's documentation and enforce it in a separate validation application (which might be your main data processing application or something like Schematron). For example, given this desired constraint: (foo & bar & baz) you can declare this content model: ((foo, bar, baz) | (foo, baz, bar) | (bar, foo, baz) | (bar, baz, foo) | (baz, foo, bar) | (baz, bar, foo)) Cheers, Eliot -- W. Eliot Kimber, eliot@xxxxxxxxxx Consultant, ISOGEN International 1016 La Posada Dr., Suite 240 Austin, TX 78752 Phone: 512.656.4139 XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|

Cart



