OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

schemas: can I restrict an elem's content based on att value?

sorry, another schema newbie question.

I've been scanning the Schema CR's, but I can't seem to find anythig
relating to this.
    Can I restrict an element's content, based on one of its attributes?

for example:
say, <test/> could take numbers or strings.
could I have a "type" attribute, that coudl be either number or string, and
the contents type would have to be a numer or string respectively?

<test type="number">5</test>
<test type="number">hello</test>

Imran Rashid