0

I need to validate an XML file against Schematron (.sch file). I read that Saxon can do it. How can I use Schematron file directly as all the sample uses XSLT, not the Schematron file?

James Z
  • 12,209
  • 10
  • 24
  • 44

1 Answers1

0

There are Schematron processors that use Saxon "underneath the hood", but Saxon itself does not have any schematron capability.

Michael Kay
  • 156,231
  • 11
  • 92
  • 164
  • As per my understanding, the Schematron needs to be converted to XSL and that XSL will be used to validate the document. Can you tell me how to achieve this in Saxon.Net? I have ISO Schematron file. Can we also use XSD as a file for validation? as sometimes we need multiple files to validate a single document. – majid ismail Jan 23 '18 at 08:28
  • I have found a solution and its working. https://stackoverflow.com/questions/22059562/using-saxon-9-5-nuget-with-schematron – majid ismail Jan 23 '18 at 12:54