Parses an XSLT stylesheet document (which may include and import other stylesheet documents) and produces a StylesheetRoot (a TRaX Templates object).
StylesheetProcessor implements the TRaX {@link javax.xml.transform.TransformerFactory} interface, as well as the {@link javax.xml.transform.sax.SAXTransformerFactory} interface.
See: Description
| Class Summary | |
|---|---|
| ProcessorCharacters | This class processes character events for a XSLT template element. |
| ProcessorExsltFuncResult | This class processes parse events for an exslt func:result element. |
| ProcessorExsltFunction | This class processes parse events for an exslt func:function element. |
| ProcessorImport | This class processes parse events for an xsl:import element. |
| ProcessorInclude | TransformerFactory class for xsl:include markup. |
| ProcessorLRE | Processes an XSLT literal-result-element, or something that looks like one. |
| ProcessorStylesheetDoc | This class processes the xsl:stylesheet element. |
| ProcessorStylesheetElement | TransformerFactory for xsl:stylesheet or xsl:transform markup. |
| ProcessorTemplateElem | This class processes parse events for an XSLT template element. |
| ProcessorText | Process xsl:text. |
| ProcessorUnknown | This class processes an unknown template element. |
| StylesheetHandler | Initializes and processes a stylesheet via SAX events. |
| TransformerFactoryImpl | The TransformerFactoryImpl, which implements the TRaX TransformerFactory interface, processes XSLT stylesheets into a Templates object (a StylesheetRoot). |
| WhitespaceInfoPaths | |
| XSLProcessorVersion | Administrative class to keep track of the version number of the Xalan release. |
| XSLTAttributeDef | This class defines an attribute for an element in a XSLT stylesheet, is meant to reflect the structure defined in http://www.w3.org/TR/xslt#dtd, and the mapping between Xalan classes and the markup attributes in the element. |
| XSLTElementDef | This class defines the allowed structure for an element in a XSLT stylesheet, is meant to reflect the structure defined in http://www.w3.org/TR/xslt#dtd, and the mapping between Xalan classes and the markup elements in the XSLT instance. |
| XSLTElementProcessor | This class acts as the superclass for all stylesheet element processors, and deals with things that are common to all elements. |
| XSLTSchema | This class defines the allowed structure for a stylesheet, and the mapping between Xalan classes and the markup elements in the stylesheet. |
Parses an XSLT stylesheet document (which may include and import other stylesheet documents) and produces a StylesheetRoot (a TRaX Templates object).
StylesheetProcessor implements the TRaX {@link javax.xml.transform.TransformerFactory} interface, as well as the {@link javax.xml.transform.sax.SAXTransformerFactory} interface. It registers the {@link org.apache.xalan.processor.StylesheetHandler} object (a TrAX {@link javax.xml.transform.sax.TemplatesHandler} implementation) as the SAX ContentHandler for an XMLReader, and uses the XMLReader to parse the stylesheet document.
Before parsing the XSLT input, StylesheetHandler assembles an {@link org.apache.xalan.processor.XSLTSchema}, which uses {@link org.apache.xalan.processor.XSLTElementDef} and {@link org.apache.xalan.processor.XSLTAttributeDef} objects to recursively define the elements and attributes that an XSLT stylesheet may contain. The StylesheetHandler then passes on each parse event to the {@link org.apache.xalan.processor.XSLTElementProcessor} which the XSLTElementDef assigned to the element associated with that event.