Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

XSD conditions

Status
Not open for further replies.

dubbelpunt

Programmer
May 24, 2006
6
0
0
BE
Hi,
I would like to show/hide certain tags based on the value of another tag in my XSD.

For example:
If the value of checktag = A, show tag1 and tag2
<checktag>A</checktag>
<tag1>..</tag1>
<tag2>..</tag2>
...

If the value of checktag = B, show tag1 and tag2
<checktag>B</checktag>
<tag3>..</tag3>
<tag4>..</tag4>
...

I know this is possible when you have a variabel tag in xs:choice combined with xs:group, but I need to have it based on the value.

Thanks
 
wxsl v1.0 is not expressive for this kind of constraints. It would be relegated to the application level "validation" in tandam with the validation process to the letter of wxsl. However, v1.1 work-in-progress will certainly give partial satisfaction of this kind of constraints. So the short answer is no.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top