dubbelpunt
Programmer
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
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