org.apache.xalan.templates
Class KeyDeclaration
- Document, Element, ExpressionNode, Node, NodeList, PrefixResolver, Serializable, SourceLocator, WhitespaceStrippingElementMatcher, XSLTVisitable
public class KeyDeclaration
Holds the attribute declarations for the xsl:keys element.
A stylesheet declares a set of keys for each document using
the xsl:key element. When this set of keys contains a member
with node x, name y and value z, we say that node x has a key
with name y and value z.
void | compose(StylesheetRoot sroot) - This function is called after everything else has been
recomposed, and allows the template to set remaining
values that may be based on some other property that
depends on recomposition.
|
XPath | getMatch() - Get the "match" attribute.
|
QName | getName() - Get the "name" attribute.
|
String | getNodeName() - Return the node name.
|
XPath | getUse() - Get the "use" attribute.
|
int | getXSLToken() - Get an int constant identifying the type of element.
|
void | recompose(StylesheetRoot root) - This function is called during recomposition to
control how this element is composed.
|
void | setMatch(XPath v) - Set the "match" attribute.
|
void | setName(QName name) - Set the "name" attribute.
|
void | setUse(XPath v) - Set the "use" attribute.
|
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 , 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 , getActualEncoding , getAttribute , getAttributeNS , getAttributeNode , getAttributeNodeNS , getAttributes , getBaseURI , getChildNodes , getDoctype , getDocumentElement , getDocumentURI , getDomConfig , getElementById , getElementsByTagName , getElementsByTagNameNS , getFeature , getFirstChild , getImplementation , getInputEncoding , getLastChild , getLength , getLocalName , getNamespaceURI , getNextSibling , getNodeName , getNodeType , getNodeValue , getOwnerDocument , getOwnerElement , getParentNode , getPrefix , getPreviousSibling , getSchemaTypeInfo , getSpecified , getStrictErrorChecking , getTagName , getTextContent , getUserData , getWholeText , getXmlEncoding , getXmlStandalone , getXmlVersion , hasAttribute , hasAttributeNS , hasAttributes , hasChildNodes , importNode , insertBefore , insertData , isDefaultNamespace , isEqualNode , isId , isSameNode , isSupported , isWhitespaceInElementContent , item , lookupNamespaceURI , lookupPrefix , normalize , normalizeDocument , removeAttribute , removeAttributeNS , removeAttributeNode , removeChild , renameNode , replaceChild , replaceData , replaceWholeText , setActualEncoding , setAttribute , setAttributeNS , setAttributeNode , setAttributeNodeNS , setData , setDocumentURI , setIdAttribute , setIdAttribute , setIdAttributeNS , setIdAttributeNode , setInputEncoding , setNodeValue , setPrefix , setStrictErrorChecking , setTextContent , setUserData , setValue , setXmlEncoding , setXmlStandalone , setXmlVersion , splitText , substringData |
KeyDeclaration
public KeyDeclaration(Stylesheet parentNode,
int docOrderNumber)
Constructs a new element representing the xsl:key. The parameters
are needed to prioritize this key element as part of the recomposing
process. For this element, they are not automatically created
because the element is never added on to the stylesheet parent.
compose
public void compose(StylesheetRoot sroot)
throws javax.xml.transform.TransformerException
This function is called after everything else has been
recomposed, and allows the template to set remaining
values that may be based on some other property that
depends on recomposition.
- compose in interface ElemTemplateElement
getMatch
public XPath getMatch()
Get the "match" attribute.
The match attribute is a Pattern; an xsl:key element gives
information about the keys of any node that matches the
pattern specified in the match attribute.
- Value of the "match" attribute.
getName
public QName getName()
Get the "name" attribute.
The name attribute specifies the name of the key. The value
of the name attribute is a QName, which is expanded as
described in [2.4 Qualified Names].
- Value of the "name" attribute.
getUse
public XPath getUse()
Get the "use" attribute.
The use attribute is an expression specifying the values
of the key; the expression is evaluated once for each node
that matches the pattern.
- Value of the "use" attribute.
getXSLToken
public int getXSLToken()
Get an int constant identifying the type of element.
- getXSLToken in interface ElemTemplateElement
- The token ID for this element
recompose
public void recompose(StylesheetRoot root)
This function is called during recomposition to
control how this element is composed.
- recompose in interface ElemTemplateElement
root
- The root stylesheet for this transformation.
setMatch
public void setMatch(XPath v)
Set the "match" attribute.
The match attribute is a Pattern; an xsl:key element gives
information about the keys of any node that matches the
pattern specified in the match attribute.
v
- Value to set for the "match" attribute.
setName
public void setName(QName name)
Set the "name" attribute.
The name attribute specifies the name of the key. The value
of the name attribute is a QName, which is expanded as
described in [2.4 Qualified Names].
name
- Value to set for the "name" attribute.
setUse
public void setUse(XPath v)
Set the "use" attribute.
The use attribute is an expression specifying the values
of the key; the expression is evaluated once for each node
that matches the pattern.
v
- Value to set for the "use" attribute.
Copyright © 2006 Apache XML Project. All Rights Reserved.