org.exolab.adaptx.xslt
public class XSLIf extends XSLObject implements Conditional
Version: $Revision: 3633 $ $Date: 2003-03-01 02:38:44 -0500 (Sat, 01 Mar 2003) $
Constructor Summary | |
---|---|
XSLIf()
Creates a new XSLIf object
|
Method Summary | |
---|---|
BooleanResult | evaluate(XPathContext context)
Evaluates this Conditional using the given XPathContext.
|
XPathExpression | getExpression()
Returns the XPath Expression of this xsl:if
|
void | setAttribute(String name, String value)
Sets the attribute with the given name to the given value. |
void | setExpression(XPathExpression expr)
Sets the test expression for this xsl:if
|
Parameters: context the XPathContext to evaluate this conditional with.
Returns: the resulting BooleanResult
Returns: the XPath Expression of this xsl:if
Parameters: name the name of the attribute to set value the value to set the attribute to
Throws: XSLException if this XSLObject does not allow attributes with the given name, or if the attribute is read only
Parameters: expr the XPathExpression for this xsl:if