Re: Schematron tips:

Hi Sriram,

> I have a W3C schema written for my xml and i am using a xerces
> parser to validate the xml using the schema associated with it.
> Everything works fine. Now in my schema, i want to add some
> schematron rules. I added the rules inside the xs:appinfo element
> inside the schema. But my xerces parser doesnt seem to even bother
> about the schematron rules and the schematron rules specified are
> not even validated. It seems like it is not executing the schematron
> rules. I checked the schematron website to see if i need anything.
> it doesnt seem to be obvious. What am i missing here? do i need any
> files to work with schematron? Does xercesJ parser 2.5 version
> support schematron validation? Please provide me some insight so
> that i can get a simple schematron rule within a schema get
> validated.
 
Xerces-J does not automatically use embedded Schematron rules to
validate a document. Have a look at:

  http://www.topologi.com/resources/schtrn_xsd_paper.html

See the section on Processing to learn what you need to do to validate
against both the XML Schema and the embedded Schematron rules.

Cheers,

Jeni

---
Jeni Tennison
http://www.jenitennison.com/

Received on Thursday, 6 November 2003 05:07:40 UTC