aspose file tools*
The moose likes XML and Related Technologies and the fly likes XSD Conditional Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "XSD Conditional" Watch "XSD Conditional" New topic
Author

XSD Conditional

M Menezes
Greenhorn

Joined: Apr 18, 2008
Posts: 7
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

Joined: May 03, 2001
Posts: 163
I have a solution but Is not very optimal.


I just want to know is there any body call my bean's Getter and Setter methods with "Please" in front - My favorite quip from Bugzilla
 
jQuery in Action, 2nd edition
 
subject: XSD Conditional
 
Similar Threads
XSLT to remove tag?
XML Validation
Custom validator problem
For all SCWCD guys : Doubts
logic tag inside nested:iteration tag