org.apache.xalan.templates
Class StylesheetComposed
- Document, Element, Serializable, ExpressionNode, Node, NodeList, PrefixResolver, SourceLocator, WhitespaceStrippingElementMatcher, XSLTVisitable
public class StylesheetComposed
Represents a stylesheet that has methods that resolve includes and
imports. It has methods on it that
return "composed" properties, which mean that:
- Properties that are aggregates, like OutputProperties, will
be composed of properties declared in this stylsheet and all
included stylesheets.
- Properties that aren't found, will be searched for first in
the includes, and, if none are located, will be searched for in
the imports.
- Properties in that are not atomic on a stylesheet will
have the form getXXXComposed. Some properties, like version and id,
are not inherited, and so won't have getXXXComposed methods.
In some cases getXXXComposed methods may calculate the composed
values dynamically, while in other cases they may store the composed
values.
containsExcludeResultPrefix , containsExtensionElementURI , getAttributeSet , getAttributeSetCount , getCompatibleMode , getDecimalFormat , getDecimalFormat , getDecimalFormatCount , getExcludeResultPrefix , getExcludeResultPrefixCount , getExtensionElementPrefix , getExtensionElementPrefixCount , getHref , getId , getImport , getImportCount , getInclude , getIncludeCount , getKey , getKeyCount , getNamespaceAlias , getNamespaceAliasCount , getNodeName , getNodeType , getNonXslTopLevel , getOutput , getOutputCount , getParam , getPreserveSpace , getPreserveSpaceCount , getStripSpace , getStripSpaceCount , getStylesheet , getStylesheetComposed , getStylesheetParent , getStylesheetRoot , getTemplate , getTemplateCount , getVariable , getVariableOrParam , getVariableOrParam , getVariableOrParamCount , getVersion , getXSLToken , getXmlnsXsl , isAggregatedType , isRoot , replaceTemplate , setAttributeSet , setDecimalFormat , setExcludeResultPrefixes , setExtensionElementPrefixes , setHref , setId , setImport , setInclude , setKey , setLocaterInfo , setNamespaceAlias , setNonXslTopLevel , setOutput , setParam , setPreserveSpaces , setStripSpaces , setStylesheetParent , setStylesheetRoot , setTemplate , setVariable , setVersion , setXmlnsXsl |
appendChild , appendChild , callVisitors , canAcceptVariables , canStripWhiteSpace , compareTo , compose , containsExcludeResultPrefix , endCompose , error , error , execute , exprAddChild , exprGetChild , exprGetNumChildren , exprGetParent , exprSetParent , getBaseIdentifier , getChildNodes , getColumnNumber , getDOMBackPointer , getDeclaredPrefixes , getEndColumnNumber , getEndLineNumber , getFirstChild , getFirstChildElem , getLastChild , getLastChildElem , getLength , getLineNumber , getLocalName , getNamespaceForPrefix , getNamespaceForPrefix , getNextSibling , getNextSiblingElem , getNodeName , getNodeType , getOwnerDocument , getOwnerXSLTemplate , getParentElem , getParentNode , getParentNodeElem , getPrefixes , getPreviousSibling , getPreviousSiblingElem , getPublicId , getStylesheet , getStylesheetComposed , getStylesheetRoot , getSystemId , getTagName , getUid , getXSLToken , getXmlSpace , handlesNullPrefixes , hasChildNodes , hasTextLitOnly , hasVariableDecl , insertBefore , isCompiledTemplate , item , recompose , removeChild , replaceChild , replaceChild , resolvePrefixTables , runtimeInit , setDOMBackPointer , setEndLocaterInfo , setLocaterInfo , setParentElem , setPrefixes , setPrefixes , setUid , setXmlSpace , shouldStripWhiteSpace |
adoptNode , appendChild , appendData , cloneNode , compareDocumentPosition , createAttribute , createAttributeNS , createCDATASection , createComment , createDocumentFragment , createElement , createElementNS , createEntityReference , createProcessingInstruction , createTextNode , deleteData , error , error , getAttribute , getAttributeNS , getAttributeNode , getAttributeNodeNS , getAttributes , getBaseURI , getChildNodes , getDoctype , getDocumentElement , getDocumentURI , getDomConfig , getElementById , getElementsByTagName , getElementsByTagNameNS , getEncoding , getFeature , getFirstChild , getImplementation , getInputEncoding , getLastChild , getLength , getLocalName , getNamespaceURI , getNextSibling , getNodeName , getNodeType , getNodeValue , getOwnerDocument , getOwnerElement , getParentNode , getPrefix , getPreviousSibling , getSchemaTypeInfo , getSpecified , getStandalone , getStrictErrorChecking , getTagName , getTextContent , getUserData , getVersion , getXmlEncoding , getXmlStandalone , getXmlVersion , hasAttribute , hasAttributeNS , hasAttributes , hasChildNodes , importNode , insertBefore , insertData , isDefaultNamespace , isEqualNode , isSameNode , isSupported , item , lookupNamespaceURI , lookupPrefix , normalize , normalizeDocument , removeAttribute , removeAttributeNS , removeAttributeNode , removeChild , renameNode , replaceChild , replaceData , setAttribute , setAttributeNS , setAttributeNode , setAttributeNodeNS , setData , setDocumentURI , setEncoding , setIdAttribute , setIdAttributeNS , setIdAttributeNode , setNodeValue , setPrefix , setStandalone , setStrictErrorChecking , setTextContent , setUserData , setValue , setVersion , setXmlStandalone , setXmlVersion , splitText , substringData |
StylesheetComposed
public StylesheetComposed(Stylesheet parent)
Uses an XSL stylesheet document.
parent
- The including or importing stylesheet.
getEndImportCountComposed
public int getEndImportCountComposed()
Get the number of import in this stylesheet's composed list.
- the number of imports in this stylesheet's composed list.
getImportComposed
public StylesheetComposed getImportComposed(int i)
throws ArrayIndexOutOfBoundsException
Get a stylesheet from the "import" list.
i
- Index of stylesheet in import list
- The stylesheet at the given index
getImportCountComposed
public int getImportCountComposed()
Get the precedence of this stylesheet in the global import list.
The lowest precedence is 0. A higher number has a higher precedence.
- the precedence of this stylesheet in the global import list.
getIncludeComposed
public Stylesheet getIncludeComposed(int i)
throws ArrayIndexOutOfBoundsException
Get an "xsl:include" property.
i
- Index of stylesheet in "include" list
- The stylesheet at the given index in the "include" list
getIncludeCountComposed
public int getIncludeCountComposed()
Get the number of included stylesheets.
- the number of included stylesheets.
isAggregatedType
public boolean isAggregatedType()
Tell if this can be cast to a StylesheetComposed, meaning, you
can ask questions from getXXXComposed functions.
- isAggregatedType in interface Stylesheet
- True since this is a StylesheetComposed
recompose
public void recompose(Vector recomposableElements)
throws TransformerException
Adds all recomposable values for this precedence level into the recomposableElements Vector
that was passed in as the first parameter. All elements added to the
recomposableElements vector should extend ElemTemplateElement.
recomposableElements
- a Vector of ElemTemplateElement objects that we will add all of
our recomposable objects to.
recomposeTemplates
public void recomposeTemplates(boolean flushFirst)
throws TransformerException
For compilation support, we need the option of overwriting
(rather than appending to) previous composition.
We could phase out the old API in favor of this one, but I'm
holding off until we've made up our minds about compilation.
ADDED 9/5/2000 to support compilation experiment.
NOTE: GLP 29-Nov-00 I've left this method in so that CompilingStylesheetHandler will compile. However,
I'm not sure why it's needed or what it does and I've commented out the body.
flushFirst
- Flag indicating the option of overwriting
(rather than appending to) previous composition.
Copyright B) 2004 Apache XML Project. All Rights Reserved.