This week's book giveaway is in the Design forum.
We're giving away four copies of Design for the Mind and have Victor S. Yocco on-line!
See this thread for details.
Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

XSD Conditional

 
M Menezes
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I'm trying to make a conditional xsd to verify the contents and depending on the content some tags are mandatory.


example

<type>ID</ type>

So would have to check that the value of the tag type ID is obliged to inform the numberID and if the value of the tag type is PK is obliged to inform the numberPK

<numberID> </ numberID>


I tried everything and nothing yet ... ever used Schematron as nothing

I help you

Hugs
 
Anoop Krishnan
Ranch Hand
Posts: 163
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a solution but Is not very optimal.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic