specifying attribute choice
"DuCharme, Bob (LNG-CHO)" <[email protected]>
| Newsgroups | gmane.text.xml.relaxng.general |
|---|---|
| Message-ID | <FEF4858E8AB32D4EAC2CF2A7D85386EBE532BC@lnxdayexch06gb.lexis-nexis.com> |
I'm trying to figure out how I can specify that an element must have at
least one of a certain set of attributes and may have the others as well. If
the attributes are called x, y, and z, I could say something like ((x & y?
&z?) | (x? & y & z?)| (x? & y? & z)), but it doesn't scale up well.
Something like
attlist.a =
(attribute x {text},
attribute y {text},
attribute z {text})+
gives me an error because it allows for more than one of any individual
attribute. Any suggestions?
thanks,
Bob