org.apache.xalan.templates

Class ElemWhen

Implemented Interfaces:
Document, Element, ExpressionNode, Node, NodeList, PrefixResolver, Serializable, SourceLocator, WhitespaceStrippingElementMatcher, XSLTVisitable

public class ElemWhen
extends ElemTemplateElement

Implement xsl:when.
 <!ELEMENT xsl:when %template;>
 <!ATTLIST xsl:when
   test %expr; #REQUIRED
   %space-att;
 >
 
See Also:
XXX in XSLT Specification

Constructor Summary

ElemWhen()
Constructor ElemWhen

Method Summary

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.
String
getNodeName()
Return the node name.
XPath
getTest()
Get the "test" attribute.
int
getXSLToken()
Get an integer representation of the element type.
void
setTest(XPath v)
Set the "test" attribute.

Methods inherited from class org.apache.xalan.templates.ElemTemplateElement

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

Methods inherited from class org.apache.xml.utils.UnImplNode

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

Constructor Details

ElemWhen

public ElemWhen()
Constructor ElemWhen

Method Details

compose

public void compose(StylesheetRoot sroot)
            throws 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.
Overrides:
compose in interface ElemTemplateElement

getNodeName

public String getNodeName()
Return the node name.
Overrides:
getNodeName in interface ElemTemplateElement
Returns:
The node name

getTest

public XPath getTest()
Get the "test" attribute. Each xsl:when element has a single attribute, test, which specifies an expression.
Returns:
Value of the "test" attribute.

getXSLToken

public int getXSLToken()
Get an integer representation of the element type.
Overrides:
getXSLToken in interface ElemTemplateElement
Returns:
An integer representation of the element, defined in the Constants class.
See Also:
Constants

setTest

public void setTest(XPath v)
Set the "test" attribute. Each xsl:when element has a single attribute, test, which specifies an expression.
Parameters:
v - Value to set for the "test" attribute.

Copyright B) 2004 Apache XML Project. All Rights Reserved.