org.apache.commons.jelly.tags.jsl
Class StyleTag

java.lang.Object
  extended byorg.apache.commons.jelly.TagSupport
      extended byorg.apache.commons.jelly.xpath.XPathTagSupport
          extended byorg.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: 155420 $
Author:
James Strachan

Field Summary
 
Fields inherited from class org.apache.commons.jelly.TagSupport
body, context, hasTrimmed, parent, shouldTrim
 
Constructor Summary
StyleTag()
           
 
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, isEscapeText, isTrim, setBody, setContext, setEscapeText, setParent, setTrim, trimBody
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StyleTag

public StyleTag()
Method Detail

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


Copyright © 2002-2006 Apache Software Foundation. All Rights Reserved.