Modifier | Constructor and Description |
---|---|
protected |
PreparedStyleSheet(TransformerFactoryImpl factory)
Constructor: deliberately protected
|
Modifier and Type | Method and Description |
---|---|
NamePool |
getNamePool()
Get the name pool in use
|
Properties |
getOutputProperties()
Get the properties for xsl:output.
|
StyleNodeFactory |
getStyleNodeFactory()
Get the StyleNodeFactory in use
|
DocumentImpl |
getStyleSheetDocument()
Get the root node of the principal stylesheet document
|
TransformerFactoryImpl |
getTransformerFactory()
Get the TransformerFactory used to create this PreparedStyleSheet
|
Transformer |
newTransformer()
Make a Transformer from this Templates object.
|
protected void |
prepare(SAXSource styleSource)
Prepare a stylesheet from an InputSource
|
void |
reportError(TransformerException err)
Report a compile time error.
|
void |
setNamePool(NamePool pool)
Set the name pool to be used
|
protected void |
setStyleSheetDocument(DocumentImpl doc)
Create a PreparedStyleSheet from a supplied DocumentInfo
Note: the document must have been built using the StyleNodeFactory
|
DocumentInfo |
stripWhitespace(Document doc)
Use the xsl:strip-space directives in this stylesheet to strip spaces from a
source document.
|
protected PreparedStyleSheet(TransformerFactoryImpl factory)
public Transformer newTransformer()
newTransformer
in interface Templates
public TransformerFactoryImpl getTransformerFactory()
public void setNamePool(NamePool pool)
public NamePool getNamePool()
public StyleNodeFactory getStyleNodeFactory()
protected void prepare(SAXSource styleSource) throws TransformerConfigurationException
protected void setStyleSheetDocument(DocumentImpl doc) throws TransformerConfigurationException
public DocumentImpl getStyleSheetDocument()
public Properties getOutputProperties()
getOutputProperties
in interface Templates
public void reportError(TransformerException err) throws TransformerException
TransformerException
public DocumentInfo stripWhitespace(Document doc) throws TransformerException
TransformerException