Groups | Blog | Home
all groups > dotnet xml > october 2005 >

dotnet xml : XSD -- ref


Krishnan
10/14/2005 11:00:52 AM
Hi,
Am writing an XSD where I have a complex type element. I would like to put
restrictions on some of the attributes of the contained element. For e.g.,
"Options" element can contain 0 or more "Option" elements which have their
"type" attribute set to "N". Will I be able to use xs:selector for the same?
Could somebody direct me to a website that explains this with an example?

TIA
Krishnan

Zafar Abbas
10/14/2005 11:26:47 AM
xs:selector are to be used to constrain instance data.

There is nothing in XmlSchema which would allow you to put such a constrain.
Try looking into schematron.

Zafar


[quoted text, click to view]

Krishnan
10/14/2005 11:56:39 AM
Thanks.

[quoted text, click to view]

AddThis Social Bookmark Button