[Schematron] How do include a schematron file in XSD viainclude/import ?

contact at spycomponents.com contact at spycomponents.com
Thu Oct 23 16:56:20 EDT 2008


Hi Joe!

Simply including or importing Schematron rules into a W3C won't work. The schema include and import elements are used to add other W3C schemas. What tool do you use for this? Some allow to add the Schematron rules as appinfo. If you search a little bit on the internet you will find some examples like here http://www.xfront.com/ExtendingSchemas.html

However, I always found that this is not very convenient. For XML ValidatorBuddy (http://xml-tools.com/ValidatorBuddy.htm) you add a Processing Instruction to the XML instance document in order to enable Schematron validation. This way the W3C schema stays untouched. If you use ValidatorBuddy in XMLSpy you can also assign the Schematron schema through the Project.

Regards, Ewa
http://www.xml-tools.com

  ----- Original Message ----- 
  From: Joe Robe 
  To: schematron at eccnet.com 
  Sent: Thursday, October 23, 2008 1:30 PM
  Subject: [Schematron] How do include a schematron file in XSD viainclude/import ?




  Hello,

  I try to include my schematron rules into my XSD file via import/include but in both cases its just ignored (means the schematron validator only validates the XSD not the schematron rules)!

  Whats the correct way doing this ?

  Joe Robe






------------------------------------------------------------------------------


  _______________________________________________
  Schematron mailing list
  Schematron at eccnet.com
  http://www.eccnet.com/mailman/listinfo/schematron
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.eccnet.com/pipermail/schematron/attachments/20081023/0347e9e9/attachment.html 


More information about the Schematron mailing list