sign in | join about | help | sitemap
Connecting Tech Pros Worldwide
Krishnan's Avatar

XSD -- ref


Question posted by: Krishnan (Guest) on November 12th, 2005 05:09 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


2 Answers Posted
Zafar Abbas's Avatar
Guest - n/a Posts
#2: Re: XSD -- ref

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


"Krishnan" <Krishnan@newsgroups.nospam> wrote in message
news:%23uBm4kO0FHA.3488@TK2MSFTNGP09.phx.gbl...[color=blue]
> 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[/color]
same?[color=blue]
> Could somebody direct me to a website that explains this with an example?
>
> TIA
> Krishnan
>
>[/color]


Krishnan's Avatar
Guest - n/a Posts
#3: Re: XSD -- ref

Thanks.

"Zafar Abbas" <someone@somewhere.com> wrote in message
news:%23FGWYzO0FHA.2076@TK2MSFTNGP14.phx.gbl...[color=blue]
> xs:selector are to be used to constrain instance data.
>
> There is nothing in XmlSchema which would allow you to put such a[/color]
constrain.[color=blue]
> Try looking into schematron.
>
> Zafar
>
>
> "Krishnan" <Krishnan@newsgroups.nospam> wrote in message
> news:%23uBm4kO0FHA.3488@TK2MSFTNGP09.phx.gbl...[color=green]
> > Hi,
> > Am writing an XSD where I have a complex type element. I would like to[/color][/color]
put[color=blue][color=green]
> > restrictions on some of the attributes of the contained element. For[/color][/color]
e.g.,[color=blue][color=green]
> > "Options" element can contain 0 or more "Option" elements which have[/color][/color]
their[color=blue][color=green]
> > "type" attribute set to "N". Will I be able to use xs:selector for the[/color]
> same?[color=green]
> > Could somebody direct me to a website that explains this with an[/color][/color]
example?[color=blue][color=green]
> >
> > TIA
> > Krishnan
> >
> >[/color]
>
>[/color]


 
Not the answer you were looking for? Post your question . . .
196,842 members ready to help you find a solution.
Join Bytes.com

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 196,842 network members.
Post your question now . . .
It's fast and it's free

Popular Articles

Top Community Contributors