dizzzz / jing-trang

Automatically exported from code.google.com/p/jing-trang
Other
0 stars 0 forks source link

Line numbers missing for validation errors when using Schematron and Saxon 9 HE #184

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
When running with Saxon 9 HE, the Saxon extension functions cannot be used, so 
the line and column numbers are not available for the generated errors.

These basic extension functions can be implemented inside Jing and registered 
whenever Saxon 9 (NewSaxon) is used.

I implemented the three extension functions that provide line-number, 
column-number and system id. The NewSaxonSchemaReaderFactory has also to be 
modified (I attached the patch). Also the schematron.xml and iso-schematron.xsl 
files need to be changed in order to use the new extension functions instead of 
the saxon builtin ones.

The patches work with Saxon 9.5 HE, and not with the one currently in Jing. So 
using them would require an update of the Saxon version.

Original issue reported on code.google.com by cristi_t...@sync.ro on 13 Aug 2014 at 12:06

Attachments: