|
Found a few issues with gt-xsd-core when using Saxon for XSLT processing.
Issue 1:
Executing line 594 of org.geotools.xml.Encoder.java throws the following exception: "Invalid value for serialization method: must be xml, html, xhtml, text, or a QName in ' {uri}
local' form"
Code: xmls.getTransformer().setOutputProperty(OutputKeys.METHOD, "xml");
Changing "XML" to "xml" resolves this issue and it appears to still work with xalan.
Issue 2:
Once Issue 1 is resolved, executing line 1198 of the same class throws a NullPointerException.
Code: serializer.startElement(uri, local, qName, atts);
My guess is that the code relies on certain features found in the xalan implementation of the JaxP spec, which are not available in saxon.
I will attach a sample program and Maven pom that illustrates the problem.
The issues go away when using xalan (see pom). Unfortunately, we can't simply switch to xalan in our production system.
|