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]

Re: [xml-dev] XML schema: attribute constraint


KRUMPOLEC Martin wrote:

> Hello,
>  I whould like to model something like this
>   <message type=...>
>     <!-- content is type dependant -->  
>   <message>
>   Am I out of luck using just XML Schema 1.0 ?

Yes, except if you can use xsi:type instead of type (that's the purpose 
of xsi:type)...

Hope this helps.


>   (I know that Regax NG can this but XSD is required) ...
> Thank you
> Martin

Rendez-vous a` Paris pour le Forum XML.
Eric van der Vlist       http://xmlfr.org            http://dyomedea.com
http://xsltunit.org      http://4xt.org           http://examplotron.org