|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.xml.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(ErrorListener errorListener)
Uses an XSL stylesheet document. |
|
StylesheetRoot(XSLTSchema schema,
ErrorListener listener)
Creates a StylesheetRoot and retains a pointer to the schema used to create this StylesheetRoot. |
Method Summary | |
boolean |
canStripWhiteSpace()
Get information about whether or not whitespace can be stripped. |
java.util.Vector |
getAttributeSetComposed(QName name)
Get a list "xsl:attribute-set" properties that match the qname. |
java.util.Hashtable |
getAvailableElements()
Get the hashtable of available elements. |
java.text.DecimalFormatSymbols |
getDecimalFormatComposed(QName name)
Given a valid element decimal-format name, return the decimalFormatSymbols with that name. |
java.util.Properties |
getDefaultOutputProps()
|
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. |
ExtensionNamespacesManager |
getExtensionNamespacesManager()
Only instantiate an ExtensionNamespacesManager if one is called for (i.e., if the stylesheet contains extension functions and/or elements). |
java.util.Vector |
getExtensions()
Get the vector of extension namespaces. |
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. |
java.util.Vector |
getKeysComposed()
Get the composed "xsl:key" properties. |
NamespaceAlias |
getNamespaceAliasComposed(java.lang.String uri)
Get the "xsl:namespace-alias" property. |
OutputProperties |
getOutputComposed()
Get the combined "xsl:output" property with the properties combined from the included stylesheets. |
java.util.Properties |
getOutputProperties()
Get the static properties for xsl:output. |
ElemTemplate |
getStartRule()
**For advanced use only** Get the default template for a root node. |
ElemTemplate |
getTemplateComposed(QName qname)
Get an "xsl:template" property. |
ElemTemplate |
getTemplateComposed(XPathContext xctxt,
int targetNode,
QName mode,
boolean quietConflictWarnings,
DTM dtm)
Get an "xsl:template" property by node match. |
ElemTemplate |
getTemplateComposed(XPathContext xctxt,
int targetNode,
QName mode,
int maxImportLevel,
int endImportLevel,
boolean quietConflictWarnings,
DTM dtm)
Get an "xsl:template" property by node match. |
TemplateList |
getTemplateListComposed()
Accessor method to retrieve the TemplateList associated with
this StylesheetRoot. |
ElemVariable |
getVariableOrParamComposed(QName qname)
Get an "xsl:variable" property. |
java.util.Vector |
getVariablesAndParamsComposed()
Get all global "xsl:variable" properties in scope for this stylesheet. |
WhiteSpaceInfo |
getWhiteSpaceInfo(XPathContext support,
int targetElement,
DTM dtm)
Get information about whether or not an element should strip whitespace. |
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 |
setTemplateListComposed(TemplateList templateList)
Mutator method to set the TemplateList associated with this
StylesheetRoot. |
boolean |
shouldCheckWhitespace()
Check to see if the caller should bother with check for whitespace nodes. |
boolean |
shouldStripWhiteSpace(XPathContext support,
int targetElement)
Get information about whether or not an element should strip whitespace. |
Methods inherited from class org.apache.xalan.templates.StylesheetComposed |
getEndImportCountComposed,
getImportComposed,
getImportCountComposed,
getIncludeComposed,
getIncludeCountComposed,
isAggregatedType,
recompose,
recomposeTemplates |
Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public StylesheetRoot(ErrorListener errorListener) throws TransformerConfigurationException
public StylesheetRoot(XSLTSchema schema, ErrorListener listener) throws TransformerConfigurationException
schema
- The schema used to create this stylesheetMethod Detail |
public boolean isRoot()
public java.util.Hashtable getAvailableElements()
public ExtensionNamespacesManager getExtensionNamespacesManager()
public java.util.Vector getExtensions()
public Transformer newTransformer()
public java.util.Properties getDefaultOutputProps()
public java.util.Properties getOutputProperties()
For XSLT, Attribute Value Templates attribute values will be returned unexpanded (since there is no context at this point).
public void recompose() throws TransformerException
public StylesheetComposed getGlobalImport(int i)
i
- Index of stylesheet to get from global import listpublic int getGlobalImportCount()
public int getImportNumber(StylesheetComposed sheet)
sheet
- The stylesheet which will be located in the
global import list.public OutputProperties getOutputComposed()
public boolean isOutputMethodSet()
public java.util.Vector getAttributeSetComposed(QName name) throws java.lang.ArrayIndexOutOfBoundsException
name
- Qualified name of attribute set properties to getpublic java.text.DecimalFormatSymbols getDecimalFormatComposed(QName name)
It is an error to declare either the default decimal-format or a decimal-format with a given name more than once (even with different import precedence), unless it is declared every time with the same value for all attributes (taking into account any default values).
Which means, as far as I can tell, the decimal-format properties are not additive.
name
- Qualified name of the decimal format to findpublic java.util.Vector getKeysComposed()
public NamespaceAlias getNamespaceAliasComposed(java.lang.String uri)
uri
- non-null reference to namespace that is to be aliased.public final TemplateList getTemplateListComposed()
TemplateList
associated with
this StylesheetRoot.TemplateList
.public final void setTemplateListComposed(TemplateList templateList)
TemplateList
associated with this
StylesheetRoot. This method should only be used by the compiler. Normally,
the template list is built during the recompose process and should not be
altered by the user.templateList
- The new TemplateList
for this StylesheetRoot.public ElemTemplate getTemplateComposed(XPathContext xctxt, int targetNode, QName mode, boolean quietConflictWarnings, DTM dtm) throws TransformerException
xctxt
- non-null reference to XPath runtime execution context.targetNode
- non-null reference of node that the template must match.mode
- qualified name of the node, or null.quietConflictWarnings
- true if conflict warnings should not be reported.public ElemTemplate getTemplateComposed(XPathContext xctxt, int targetNode, QName mode, int maxImportLevel, int endImportLevel, boolean quietConflictWarnings, DTM dtm) throws TransformerException
xctxt
- non-null reference to XPath runtime execution context.targetNode
- non-null reference of node that the template must match.mode
- qualified name of the node, or null.maxImportLevel
- The maximum importCountComposed that we should consider or -1
if we should consider all import levels. This is used by apply-imports to
access templates that have been overridden.endImportLevel
- The count of composed importsquietConflictWarnings
- true if conflict warnings should not be reported.public ElemTemplate getTemplateComposed(QName qname)
qname
- non-null reference to qualified name of template.public ElemVariable getVariableOrParamComposed(QName qname)
qname
- Qualified name of variable or parampublic java.util.Vector getVariablesAndParamsComposed()
public boolean shouldCheckWhitespace()
public WhiteSpaceInfo getWhiteSpaceInfo(XPathContext support, int targetElement, DTM dtm) throws TransformerException
support
- The XPath runtime state.targetElement
- Element to checkpublic boolean shouldStripWhiteSpace(XPathContext support, int targetElement) throws TransformerException
support
- The XPath runtime state.targetElement
- Element to checkpublic boolean canStripWhiteSpace()
public final ElemTemplate getDefaultTextRule()
public final ElemTemplate getDefaultRule()
public final ElemTemplate getDefaultRootRule()
public final ElemTemplate getStartRule()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |