|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.xalan.utils.UnImplNode | +--org.apache.xalan.templates.ElemTemplateElement | +--org.apache.xalan.templates.Stylesheet | +--org.apache.xalan.templates.StylesheetComposed | +--org.apache.xalan.templates.StylesheetRoot
This class represents the root object of the stylesheet tree.
Fields inherited from class org.apache.xalan.templates.Stylesheet |
STYLESHEET_EXT |
Constructor Summary | |
StylesheetRoot()
Uses an XSL stylesheet document. |
Method Summary | |
ElemTemplate |
getDefaultRootRule()
**For advanced use only** Get the default template for a root node. |
ElemTemplate |
getDefaultRule()
**For advanced use only** Get the default template for elements. |
ElemTemplate |
getDefaultTextRule()
**For advanced use only** Get the default template for text. |
StylesheetComposed |
getGlobalImport(int i)
Get a stylesheet from the global import list. |
int |
getGlobalImportCount()
Get the total number of imports in the global import list. |
int |
getImportNumber(StylesheetComposed sheet)
Given a stylesheet, return the number of the stylesheet in the global import list. |
OutputFormat |
getOutputComposed()
Get the combined "xsl:output" property with the properties combined from the included stylesheets. |
OutputFormat |
getOutputFormat()
Get the properties for xsl:output. |
boolean |
isOutputMethodSet()
**For internal use only** Find out if an output method has been set by the user. |
boolean |
isRoot()
Tell if this is the root of the stylesheet tree. |
Transformer |
newTransformer()
Create a new transformation context for this Templates object. |
void |
recompose()
Recompose the values of all "composed" properties, meaning properties that need to be combined or calculated from the combination of imported and included stylesheets. |
void |
recomposeOutput()
Recompose the output format object from the included elements. |
Methods inherited from class org.apache.xalan.templates.ElemTemplateElement |
appendChild,
compose,
error,
execute,
getBaseIdentifier,
getChildNodes,
getColumnNumber,
getDeclaredPrefixes,
getDOMBackPointer,
getFirstChild,
getFirstChildElem,
getLastChild,
getLength,
getLineNumber,
getNamespaceForPrefix,
getNamespaceForPrefix,
getNextSibling,
getNextSiblingElem,
getOwnerDocument,
getParentElem,
getParentNode,
getPrefixes,
getPreviousSibling,
getPublicId,
getSystemId,
getTagName,
hasChildNodes,
isCompiledTemplate,
item,
removeChild,
replaceChild,
resolvePrefixTables,
runtimeInit,
setDOMBackPointer,
setPrefixes,
setPrefixes |
Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public StylesheetRoot() throws ProcessorException
transformer
- The XSLTProcessor implementation.baseIdentifier
- The file name or URL for the XSL stylesheet.Method Detail |
public boolean isRoot()
public Transformer newTransformer()
public OutputFormat getOutputFormat()
A stylesheet may contain multiple xsl:output elements and may include or import stylesheets that also contain xsl:output elements. All the xsl:output elements occurring in a stylesheet are merged into a single effective xsl:output element. For the cdata-section-elements attribute, the effective value is the union of the specified values. For other attributes, the effective value is the specified value with the highest import precedence. It is an error if there is more than one such value for an attribute. An XSLT processor may signal the error; if it does not signal the error, if should recover by using the value that occurs last in the stylesheet. The values of attributes are defaulted after the xsl:output elements have been merged; different output methods may have different default values for an attribute.
org.xml.org.apache.serialize.OutputFormat
public void recompose() throws SAXException
public OutputFormat getOutputComposed()
public void recomposeOutput()
public boolean isOutputMethodSet()
public StylesheetComposed getGlobalImport(int i)
public int getGlobalImportCount()
public int getImportNumber(StylesheetComposed sheet)
sheet
- The stylesheet which will be located in the
global import list.public final ElemTemplate getDefaultTextRule()
public final ElemTemplate getDefaultRule()
public final ElemTemplate getDefaultRootRule()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |