org.exolab.adaptx.xslt
Class XSLIf
- Conditional
Represents an XSLIf Object (xsl:if)
Version:
- Keith Visco
APPLY_IMPORTS , APPLY_TEMPLATES , ARG , ATTRIBUTE , ATTRIBUTE_SET , CALL_TEMPLATE , CDATA , CHOOSE , COMMENT , CONTENTS , COPY , COPY_OF , ELEMENT , ENTITY_REF , FOR_EACH , FUNCTIONS , ID , IF , IMPORT , INCLUDE , KEY , LITERAL , LOCALE , MESSAGE , NUMBER , OTHERWISE , OUTPUT , PARAM , PI , PRESERVE_SPACE , SCRIPT , SORT , STRIP_SPACE , STYLESHEET , TEMPLATE , TEXT , VALUE_OF , VARIABLE , WHEN , WITH_PARAM |
XSLIf() - Creates a new XSLIf object
|
appendAction , appendText , appendText , getActions , getAttribute , getAttributes , getNearestAncestor , getNodeValue , getStylesheet , getText , getType , getTypeFromName , getTypeName , resolveNamespace , setAllowActions , setAttribute , setTypeName |
XSLIf
public XSLIf()
Creates a new XSLIf object
getExpression
public XPathExpression getExpression()
throws XPathException
Returns the XPath Expression of this xsl:if
- the XPath Expression of this xsl:if
setAttribute
public void setAttribute(String name,
String value)
throws XSLException
Sets the attribute with the given name to the given value.
- setAttribute in interface XSLObject
name
- the name of the attribute to setvalue
- the value to set the attribute to
XSLException
- if this XSLObject does not allow attributes
with the given name, or if the attribute is read only
setExpression
public void setExpression(XPathExpression expr)
Sets the test expression for this xsl:if
expr
- the XPathExpression for this xsl:if