org.infoglue.deliver.taglib.common
Class XSLTransformTag

java.lang.Object
  extended by javax.servlet.jsp.tagext.TagSupport
      extended by org.infoglue.deliver.taglib.AbstractTag
          extended by org.infoglue.deliver.taglib.TemplateControllerTag
              extended by org.infoglue.deliver.taglib.common.XSLTransformTag
All Implemented Interfaces:
java.io.Serializable, javax.servlet.jsp.tagext.IterationTag, javax.servlet.jsp.tagext.Tag

public class XSLTransformTag
extends TemplateControllerTag

This tag help modifying texts in different ways. An example is to html-encode strings or replace all whitespaces with   or replacing linebreaks with

See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.servlet.jsp.tagext.TagSupport
pageContext
 
Fields inherited from interface javax.servlet.jsp.tagext.IterationTag
EVAL_BODY_AGAIN
 
Fields inherited from interface javax.servlet.jsp.tagext.Tag
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE
 
Constructor Summary
XSLTransformTag()
          Default constructor.
 
Method Summary
protected  void addParameter(java.lang.String name, java.lang.Object value)
           
 int doEndTag()
          Process the end tag.
 int doStartTag()
          Initializes the parameters to make it accessible for the children tags (if any).
 void setCacheStyle(boolean cacheStyle)
           
 void setOutputFormat(java.lang.String outputFormat)
           
 void setSource(java.lang.String source)
           
 void setStyleFile(java.lang.String styleFile)
           
 void setStyleString(java.lang.String styleString)
           
 void setXml(java.lang.String xml)
           
 void setXmlFile(java.lang.String xmlFile)
           
 void setXmlString(java.lang.String xmlString)
           
 
Methods inherited from class org.infoglue.deliver.taglib.TemplateControllerTag
getController
 
Methods inherited from class org.infoglue.deliver.taglib.AbstractTag
evaluate, evaluateCollection, evaluateInteger, evaluateList, evaluateString, produceResult, setId, setResultAttribute, write
 
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
doAfterBody, findAncestorWithClass, getId, getParent, getValue, getValues, release, removeValue, setPageContext, setParent, setValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XSLTransformTag

public XSLTransformTag()
Default constructor.

Method Detail

doStartTag

public int doStartTag()
               throws javax.servlet.jsp.JspException
Initializes the parameters to make it accessible for the children tags (if any).

Specified by:
doStartTag in interface javax.servlet.jsp.tagext.Tag
Overrides:
doStartTag in class javax.servlet.jsp.tagext.TagSupport
Returns:
indication of whether to evaluate the body or not.
Throws:
javax.servlet.jsp.JspException - if an error occurred while processing this tag.

doEndTag

public int doEndTag()
             throws javax.servlet.jsp.JspException
Process the end tag. Modifies the string according to settings made.

Specified by:
doEndTag in interface javax.servlet.jsp.tagext.Tag
Overrides:
doEndTag in class javax.servlet.jsp.tagext.TagSupport
Returns:
indication of whether to continue evaluating the JSP page.
Throws:
javax.servlet.jsp.JspException - if an error occurred while processing this tag.

setXml

public void setXml(java.lang.String xml)
            throws javax.servlet.jsp.JspException
Throws:
javax.servlet.jsp.JspException

setXmlFile

public void setXmlFile(java.lang.String xmlFile)
                throws javax.servlet.jsp.JspException
Throws:
javax.servlet.jsp.JspException

setXmlString

public void setXmlString(java.lang.String xmlString)
                  throws javax.servlet.jsp.JspException
Throws:
javax.servlet.jsp.JspException

setSource

public void setSource(java.lang.String source)
               throws javax.servlet.jsp.JspException
Throws:
javax.servlet.jsp.JspException

setStyleFile

public void setStyleFile(java.lang.String styleFile)
                  throws javax.servlet.jsp.JspException
Throws:
javax.servlet.jsp.JspException

setStyleString

public void setStyleString(java.lang.String styleString)
                    throws javax.servlet.jsp.JspException
Throws:
javax.servlet.jsp.JspException

setCacheStyle

public void setCacheStyle(boolean cacheStyle)
                   throws javax.servlet.jsp.JspException
Throws:
javax.servlet.jsp.JspException

setOutputFormat

public void setOutputFormat(java.lang.String outputFormat)
                     throws javax.servlet.jsp.JspException
Throws:
javax.servlet.jsp.JspException

addParameter

protected final void addParameter(java.lang.String name,
                                  java.lang.Object value)


Copyright © 2005 InfoGlue.org All Rights Reserved.