|
BEA Systems, Inc. | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--weblogic.apache.xml.utils.UnImplNode | +--weblogic.apache.xalan.templates.ElemTemplateElement | +--weblogic.apache.xalan.templates.Stylesheet | +--weblogic.apache.xalan.templates.StylesheetComposed | +--weblogic.apache.xalan.templates.StylesheetRoot
This class represents the root object of the stylesheet tree.
This class is based on an implementation from the Apache XML Project. In future releases the XML parser, XSLT processor, and associated classes will likely be updated to be based on a later version of the Apache implementations. Since Apache does not guarantee backwards compatibility between versions of their software, we cannot guarantee backwards compatibility of any of the classes contained in the weblogic.apache package or sub-packages.
Fields inherited from class weblogic.apache.xalan.templates.Stylesheet |
STYLESHEET_EXT |
Fields inherited from class weblogic.apache.xalan.templates.ElemTemplateElement |
m_docOrderNumber,
m_parentNode |
Constructor Summary | |
StylesheetRoot(javax.xml.transform.ErrorListener errorListener)
Uses an XSL stylesheet document. |
|
StylesheetRoot(XSLTSchema schema,
javax.xml.transform.ErrorListener listener)
Creates a StylesheetRoot and retains a pointer to the schema used to create this StylesheetRoot. |
Method Summary | |
protected void |
addImports(Stylesheet stylesheet,
boolean addToList,
java.util.Vector importList)
Add the imports in the given sheet to the working importList vector. |
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()
Get the default template for a root node. |
ElemTemplate |
getDefaultRule()
Get the default template for elements. |
ElemTemplate |
getDefaultTextRule()
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. |
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 |
getTemplateComposed(QName qname)
Get an "xsl:template" property. |
ElemTemplate |
getTemplateComposed(XPathContext xctxt,
org.w3c.dom.Node targetNode,
QName mode,
int maxImportLevel,
boolean quietConflictWarnings)
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,
org.w3c.dom.Element targetElement)
Get information about whether or not an element should strip whitespace. |
boolean |
isOutputMethodSet()
Find out if an output method has been set by the user. |
boolean |
isRoot()
Tell if this is the root of the stylesheet tree. |
javax.xml.transform.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,
org.w3c.dom.Element targetElement)
Get information about whether or not an element should strip whitespace. |
Methods inherited from class weblogic.apache.xalan.templates.StylesheetComposed |
getImportComposed,
getImportCountComposed,
getIncludeComposed,
getIncludeCountComposed,
isAggregatedType,
recompose,
recomposeTemplates |
Methods inherited from class weblogic.apache.xalan.templates.ElemTemplateElement |
appendChild,
compareTo,
compose,
error,
error,
execute,
getBaseIdentifier,
getChildNodes,
getColumnNumber,
getDeclaredPrefixes,
getDOMBackPointer,
getFirstChild,
getFirstChildElem,
getLastChild,
getLength,
getLineNumber,
getNamespaceForPrefix,
getNamespaceForPrefix,
getNextSibling,
getNextSiblingElem,
getOwnerDocument,
getParentElem,
getParentNode,
getPrefixes,
getPreviousSibling,
getPublicId,
getSystemId,
getTagName,
getUid,
getXmlSpace,
hasChildNodes,
isCompiledTemplate,
isValidNCName,
item,
recompose,
removeChild,
replaceChild,
resolvePrefixTables,
runtimeInit,
setDOMBackPointer,
setPrefixes,
setPrefixes,
setUid,
setXmlSpace |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public StylesheetRoot(javax.xml.transform.ErrorListener errorListener) throws javax.xml.transform.TransformerConfigurationException
public StylesheetRoot(XSLTSchema schema, javax.xml.transform.ErrorListener listener) throws javax.xml.transform.TransformerConfigurationException
schema
- The schema used to create this stylesheetMethod Detail |
public boolean isRoot()
public java.util.Hashtable getAvailableElements()
public javax.xml.transform.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 javax.xml.transform.TransformerException
protected void addImports(Stylesheet stylesheet, boolean addToList, java.util.Vector importList)
For example, suppose
stylesheet A imports stylesheets B and C in that order;
stylesheet B imports stylesheet D;
stylesheet C imports stylesheet E.
Then the order of import precedence (highest first) is A, C, E, B, D.
stylesheet
- Stylesheet to examine for imports.addToList
- true
if this template should be added to the import listimportList
- The working import list. Templates are added here in the reverse
order of priority. When we're all done, we'll reverse this to the correct
priority in an array.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, org.w3c.dom.Node targetNode, QName mode, int maxImportLevel, boolean quietConflictWarnings) throws javax.xml.transform.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.quietConflictWarnings
- 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, org.w3c.dom.Element targetElement) throws javax.xml.transform.TransformerException
support
- The XPath runtime state.targetElement
- Element to checkpublic boolean shouldStripWhiteSpace(XPathContext support, org.w3c.dom.Element targetElement) throws javax.xml.transform.TransformerException
support
- The XPath runtime state.targetElement
- Element to checkpublic boolean canStripWhiteSpace()
public final ElemTemplate getDefaultTextRule()
public final ElemTemplate getDefaultRule()
public final ElemTemplate getDefaultRootRule()
|
Documentation is available at http://download.oracle.com/docs/cd/E13222_01/wls/docs61 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |