[Home] [By Thread] [By Date] [Recent Entries]
Rick Jelliffe wrote: That is an interesting paper.Yes, I've found the diagnostics functionality very useful since it allows you to use the very powerful value-of function in XSLT which means you can display just about anything you want (learning to master the diagnostic function probably take you another 30 min or so ;-)). Here's an example: <sch:rule context="d:Demo">
In the assert (or report) element you add the attribute diagnostics which is a reference to one or more diagnostic elements in a diagnostics section. In this case: <sch:diagnostics>
Note, that the basic stylesheet (schematron-basic.xsl) doesn't support the diagnostics function however, it's easy to write your own stylesheet that extends skeleton1-5.xsl to support diagnostics [1]. [1] www.allette.com.au/Demo/XSD_Schtrn/schematron-basic-eddie.xsl In order to use the diagnostics functionality you have to provide a command line argument diagnose=yes. Cheers,
|

Cart



