[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: schemas: can I restrict an elem's content based on att value?
In general, no, unless the attribute is "xsi:type" which would be appropriate for your example. There may be some tricks that you could employ using <xsd:unique/> to accomplish some types of XPath based prohibition, but it would definitely be a kludge.
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|