Re: XSD help



You can embed Schematron rules in an XSD schema to specify co-occurrence
constraints and layer over XSD validation. For more information on
schematron,
take a look at:
www.schematron.com
http://www.xml.com/pub/a/2000/11/22/schematron.html

Thanks,
Priya

"Peter Morris [Droopy eyes software]" <pete@xxxxxxxxxxxxxxxxxxxxxx> wrote in
message news:Owm5grHmGHA.4768@xxxxxxxxxxxxxxxxxxxxxxx
Hi Stan

You cannot do this using Xml Schema - it does not have this type of
co-occurance constraints.

Thanks for the answer. I think this is a shame, XSD could have been an
excellent means of specifying user input + validation for thin clients.



--
Pete
====
Audio compression components, DIB graphics controls, ECO extensions,
FastStrings
http://www.droopyeyes.com

My blog
http://blogs.slcdug.org/petermorris/



.



Relevant Pages

  • Re: XML Validation against XSD
    ... Is it possible using XSD? ... if you want to express such constraints then look into Schematron: ... Martin Honnen --- MVP XML ...
    (microsoft.public.dotnet.xml)
  • Re: Creating Ruby Classes from XSD?
    ... } Those kinds of constraints can be done in code, ... I'd store the fields in a hash and override ... XSD and Ruby. ... def method_missing ...
    (comp.lang.ruby)
  • Re: XML W3C Schema, check excistence of attribute depending on other attributes
    ... The existance of an attribute depnds on a the VALUE of another ... thing in the way of schematron like assertions. ... interested last call for the current draft of XSD 1.1 ends this Friday ... functionality is in your tools is anyones guess! ...
    (comp.text.xml)
  • Invalid Key node inside constraint error
    ... I have an XML document that I'm reading into a dataset. ... created dataadapters and constraints for all the tables and relationships and ... running the code to create the constraints all the time, ... WriteXMLSchema to write out an .xsd for me that has everything already ...
    (microsoft.public.dotnet.framework.adonet)