#333 Validation error caused by built-in template

v8.3
closed
5
2012-10-08
2005-03-21
Michael Kay
No

This affects schema-aware XSLT transformations only.

If an XSLT built-in template is invoked, and causes
data to be written to the result tree that makes the
result tree invalid, Saxon fails while trying to report
the error.

For example:
Exception in thread "main"
java.lang.IllegalStateException: Location of validation
error is unknown!
at
com.saxonica.validate.ContentValidator.getSourceLocator(ContentValidator.java:433)

Source code has been fixed. (Method defaultAction in
net.sf.saxon.instruct.ApplyTemplates takes an extra
argument, int locationId. All calling instructions
supply this value, getting it from the getLocationId()
method. defaultAction writes this value to the
locationId argment of the characters() method.)

Discussion

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks