org.apache.xalan.templates

Class ElemWhen

public class ElemWhen extends ElemTemplateElement

Implement xsl:when.
 
 
 

See Also: XXX in XSLT Specification

UNKNOWN: advanced

Constructor Summary
ElemWhen()
Constructor ElemWhen
Method Summary
voidcompose(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.
StringgetNodeName()
Return the node name.
XPathgetTest()
Get the "test" attribute.
intgetXSLToken()
Get an integer representation of the element type.
voidsetTest(XPath v)
Set the "test" attribute.

Constructor Detail

ElemWhen

public ElemWhen()
Constructor ElemWhen

Method Detail

compose

public 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.

getNodeName

public String getNodeName()
Return the node name.

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.

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) 2005 Apache XML Project. All Rights Reserved.