6.8.6 Other Notes

Table 6-18 Notes on XSLTC (other notes)

No.Notes
1If you use XSLTC, the default error listener throws an exception in case of an error.
2When the implementation of the warning or error method on the ErrorListener does not throw an exception and a warning and an error occurs while parsing the stylesheet, the transformation cannot be carried out because a translet cannot be created.
3The file name and line number of the file that caused the error may be output before the error ID in the error message.
4When the setContentHandler method of the XMLReader class is used to register (into the parser) TemplatesHandler object created by the newTemplatesHandler method of the SAXTransformerFactory class and to perform transformation, an error is not output even if a stylesheet with an error is processed.
5If you perform transformation by using SAXTransformerFactory, the error listener is not notified of the stylesheet error, regardless of the error listener setting.
6If you perform transformation by using XSLTC, a NullPointerException occurs if #default is specified for both the stylesheet-prefix and result-prefix attributes of the same xsl:namespace-alias element.
7If you perform transformation by using XSLTC, when two templates with different import priority have name and match attributes and also the name attributes have the same value, the template that has a lower import priority is ignored.
8If you perform transformation by using XSLTC, when the cdata-section-elements attribute of the output properties are set in both the stylesheet and the JAXP interface, the value defined in the stylesheet is overwritten by the value set in the JAXP interface.
9If you perform transformation by using XSLTC, when you use URIResolver, which is implemented to return DOMSource created from DocumentFragment, the correct transformation is not performed.
10If you specify the HTML output for the output method, when {name()} or {name( . )} is specified for the name attribute of the xsl:element element, the NullPointerException occurs.