org.apache.xalan.templates
Class ElemUse
- Document, Element, ExpressionNode, Node, NodeList, PrefixResolver, Serializable, SourceLocator, WhitespaceStrippingElementMatcher, XSLTVisitable
Implement xsl:use.
This acts as a superclass for ElemCopy, ElemAttributeSet,
ElemElement, and ElemLiteralResult, on order to implement
shared behavior the use-attribute-sets attribute.
ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE |
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, createAttribute, createAttributeNS, createCDATASection, createComment, createDocumentFragment, createElement, createElementNS, createEntityReference, createProcessingInstruction, createTextNode, deleteData, error, error, getAttribute, getAttributeNS, getAttributeNode, getAttributeNodeNS, getAttributes, getChildNodes, getDoctype, getDocumentElement, getElementById, getElementsByTagName, getElementsByTagNameNS, getEncoding, getFirstChild, getImplementation, getLastChild, getLength, getLocalName, getNamespaceURI, getNextSibling, getNodeName, getNodeType, getNodeValue, getOwnerDocument, getOwnerElement, getParentNode, getPrefix, getPreviousSibling, getSpecified, getStandalone, getStrictErrorChecking, getTagName, getVersion, hasAttribute, hasAttributeNS, hasAttributes, hasChildNodes, importNode, insertBefore, insertData, isSupported, item, normalize, removeAttribute, removeAttributeNS, removeAttributeNode, removeChild, replaceChild, replaceData, setAttribute, setAttributeNS, setAttributeNode, setAttributeNodeNS, setData, setEncoding, setNodeValue, setPrefix, setStandalone, setStrictErrorChecking, setValue, setVersion, splitText, substringData |
applyAttrSets
public void applyAttrSets(TransformerImpl transformer,
StylesheetRoot stylesheet)
throws TransformerException Add the attributes from the named attribute sets to the attribute list.
TODO: Error handling for: "It is an error if there are two attribute sets
with the same expanded-name and with equal import precedence and that both
contain the same attribute unless there is a definition of the attribute
set with higher import precedence that also contains the attribute."
transformer - non-null reference to the the current transform-time state.stylesheet - The owning root stylesheet
execute
public void execute(TransformerImpl transformer)
throws TransformerException Copy attributes specified by use-attribute-sets to the result tree.
Specifying a use-attribute-sets attribute is equivalent to adding
xsl:attribute elements for each of the attributes in each of the
named attribute sets to the beginning of the content of the element
with the use-attribute-sets attribute, in the same order in which
the names of the attribute sets are specified in the use-attribute-sets
attribute. It is an error if use of use-attribute-sets attributes
on xsl:attribute-set elements causes an attribute set to directly
or indirectly use itself.
- execute in interface ElemTemplateElement
transformer - non-null reference to the the current transform-time state.
getUseAttributeSets
public QName[] getUseAttributeSets()
Get the "use-attribute-sets" attribute.
Attribute sets are used by specifying a use-attribute-sets
attribute on xsl:element, xsl:copy (see [7.5 Copying]) or
xsl:attribute-set elements, or a xsl:use-attribute-sets attribute on
Literal Result Elements.
The value of the use-attribute-sets
attribute is a whitespace-separated list of names of attribute
sets. Each name is specified as a QName, which is expanded as
described in [2.4 Qualified Names].
- The value of the "use-attribute-sets" attribute.
setUseAttributeSets
public void setUseAttributeSets(Vector v)
Set the "use-attribute-sets" attribute.
Attribute sets are used by specifying a use-attribute-sets
attribute on xsl:element, xsl:copy (see [7.5 Copying]) or
xsl:attribute-set elements. The value of the use-attribute-sets
attribute is a whitespace-separated list of names of attribute
sets. Each name is specified as a QName, which is expanded as
described in [2.4 Qualified Names].
v - The value to set for the "use-attribute-sets" attribute.
setUseAttributeSets
public void setUseAttributeSets(QName[] v)
Set the "use-attribute-sets" attribute.
Attribute sets are used by specifying a use-attribute-sets
attribute on xsl:element, xsl:copy (see [7.5 Copying]) or
xsl:attribute-set elements. The value of the use-attribute-sets
attribute is a whitespace-separated list of names of attribute
sets. Each name is specified as a QName, which is expanded as
described in [2.4 Qualified Names].
v - The value to set for the "use-attribute-sets" attribute.
Copyright B) 2004 Apache XML Project. All Rights Reserved.