schematron

XSD - how can I ensure the existance of a particular element with a given attribute?

I'm trying to add extra validation to jdpl process-definition files using XSD. We have a couple of rules we want to add; but the one that's causing me problems is that there must exist one "node" element with it's "name" attribute = "Problem". so this is valid: <process-definition name='sample'> <node name="Problem"> </node> ...

How can I validate documents against Schematron schemas in Java?

As far as I can tell, JAXP by default supports W3C XML Schema and RelaxNG from Java 6. I can see a few APIs, mostly experimental or incomplete, on the schematron.com links page. Is there an approach on validating schematron in Java that's complete, efficient and can be used with the JAXP API? Thanks ...

Are there any supporting resources for schematron? any tutorials-tools etc ..

Hello .. I am interested to learn Schematron .. Please suggest me a tutorial to practice (I am expecting a complete tutorial where I can develop my skills,, well. I already know the basics of DTD, XSD and XSLT ..) .. I have tried using Zvon tutorials and Schematron.com, And also ... I have been struggling to find the schematron-edito...

xsd validation using schematron

Hi, I'm trying to add schematron validation to my xsd. This is my new xsd : <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"&gt; xmlns:sch="http://www.ascc.net/xml/schematron" elementFormDefault="qualified" &gt; <xs:element name="books"> <xs:complextype> <xs:sequence> ;P <xs:element name="book" type="bo...

XML validation by XSLT or Schematron in Eclipse XML Editor?

How can we validate xml document by either schematron or xslt in Eclipse xml editor? The idea is to extend xml document live validation in eclipse xml editor with some rules based validation method. ...

Schematron validation and uniqueness

Hi, I'm trying to write some Schematron rules and one of them is supposed to check, if elements are unique in the scope of parent element. So I have an example xml structure: <abc> <elem id="qw0"> <a>1</a> <a>2</a> <a>3</a> </elem> <elem id="qw1"> <a>1</a> <a>2</a> <a>3</a> <a>3</a> </elem> </abc> M...