org.apache.commons.jelly.tags.jsl
Class StyleTag
java.lang.Object
org.apache.commons.jelly.TagSupport
org.apache.commons.jelly.xpath.XPathTagSupport
org.apache.commons.jelly.tags.jsl.StyleTag
- All Implemented Interfaces:
- org.apache.commons.jelly.Tag
- public class StyleTag
- extends org.apache.commons.jelly.xpath.XPathTagSupport
This tag performs a JSL stylesheet which was previously
created via an <stylesheet> tag.
- Version:
- $Revision: 1.8 $
- Author:
- James Strachan
Field Summary |
private org.apache.commons.logging.Log |
log
The Log to which logging calls will be made. |
private org.jaxen.XPath |
select
The XPath expression to evaluate. |
private org.dom4j.rule.Stylesheet |
stylesheet
Holds the stylesheet which will be applied to the source context. |
Fields inherited from class org.apache.commons.jelly.TagSupport |
body, context, hasTrimmed, parent, shouldTrim |
Method Summary |
void |
doTag(org.apache.commons.jelly.XMLOutput output)
|
protected java.lang.Object |
getSource()
|
org.dom4j.rule.Stylesheet |
getStylesheet()
|
void |
setSelect(org.jaxen.XPath select)
Sets the XPath expression to evaluate. |
void |
setStylesheet(org.dom4j.rule.Stylesheet stylesheet)
Sets the stylesheet to use to style this tags body |
Methods inherited from class org.apache.commons.jelly.xpath.XPathTagSupport |
getXPathContext |
Methods inherited from class org.apache.commons.jelly.TagSupport |
findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, getBody, getBodyText, getBodyText, getContext, getParent, invokeBody, isTrim, setBody, setContext, setParent, setTrim, trimBody |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
log
private org.apache.commons.logging.Log log
- The Log to which logging calls will be made.
stylesheet
private org.dom4j.rule.Stylesheet stylesheet
- Holds the stylesheet which will be applied to the source context.
select
private org.jaxen.XPath select
- The XPath expression to evaluate.
StyleTag
public StyleTag()
doTag
public void doTag(org.apache.commons.jelly.XMLOutput output)
throws org.apache.commons.jelly.MissingAttributeException,
org.apache.commons.jelly.JellyTagException
- Throws:
org.apache.commons.jelly.MissingAttributeException
org.apache.commons.jelly.JellyTagException
getStylesheet
public org.dom4j.rule.Stylesheet getStylesheet()
setStylesheet
public void setStylesheet(org.dom4j.rule.Stylesheet stylesheet)
- Sets the stylesheet to use to style this tags body
setSelect
public void setSelect(org.jaxen.XPath select)
- Sets the XPath expression to evaluate.
getSource
protected java.lang.Object getSource()
throws org.jaxen.JaxenException
- Returns:
- the source on which the stylesheet should run
- Throws:
org.jaxen.JaxenException