4.3 How to use XSLT features

The JAXP standard defines how to use the XSLT transformer's optional functions by using features.

A feature name is a URI corresponding to an optional function of the XSLT transformer. The following table lists the XSLT features defined in JAXP.

Table 4-3 XSLT features defined in JAXP

No.Feature name
1http://javax.xml.transform.stream.StreamSource/feature
2http://javax.xml.transform.stream.StreamResult/feature
3http://javax.xml.transform.dom.DOMSource/feature
4http://javax.xml.transform.dom.DOMResult/feature
5http://javax.xml.transform.sax.SAXSource/feature
6http://javax.xml.transform.sax.SAXResult/feature
7http://javax.xml.transform.sax.SAXTransformerFactory/feature
8http://javax.xml.transform.sax.SAXTransformerFactory/feature/xmlfilter

For the meanings of the features, see the FEATURE field described in each class of Javadoc in the documentation JSR 206 Java API for XML Processing(JAXP) 1.4.

Organization of this section
(1) How to use the XSLT features

(1) How to use the XSLT features

You cannot set any XSLT features. To get an XSLT feature, use the getFeature method of the javax.xml.transform.TransformerFactory class. The result of getFeature is always true.