org.apache.taglibs.xsl
Class ApplyTag

java.lang.Object
  |
  +--javax.servlet.jsp.tagext.TagSupport
        |
        +--javax.servlet.jsp.tagext.BodyTagSupport
              |
              +--org.apache.taglibs.xsl.ApplyTag
All Implemented Interfaces:
javax.servlet.jsp.tagext.BodyTag, java.io.Serializable, javax.servlet.jsp.tagext.Tag

public class ApplyTag
extends javax.servlet.jsp.tagext.BodyTagSupport

Apply an XSL stylesheet to an XML data source, rendering the output to the writer of our JSP page. This tag uses the Xalan XSLT processor, available at http://xml.apache.org.

Version:
$Revision: 1.1 $ $Date: 2000/07/03 19:30:00 $
Author:
Craig R. McClanahan
See Also:
Serialized Form

Fields inherited from class javax.servlet.jsp.tagext.BodyTagSupport
bodyContent
 
Fields inherited from class javax.servlet.jsp.tagext.TagSupport
id, pageContext
 
Fields inherited from interface javax.servlet.jsp.tagext.BodyTag
EVAL_BODY_TAG
 
Fields inherited from interface javax.servlet.jsp.tagext.Tag
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE
 
Constructor Summary
ApplyTag()
           
 
Method Summary
 int doAfterBody()
          Save the body content that has been processed, but do not iterate.
 int doEndTag()
          Finish up by performing the transformation and rendering the output.
 int doStartTag()
          Validate the attributes that were specified for consistency.
 java.lang.String getNameXml()
           
 java.lang.String getNameXsl()
           
 java.lang.String getPropertyXml()
           
 java.lang.String getPropertyXsl()
           
 java.lang.String getXml()
           
 java.lang.String getXsl()
           
 void release()
          Release any allocated resources.
 void setNameXml(java.lang.String nameXml)
           
 void setNameXsl(java.lang.String nameXsl)
           
 void setPropertyXml(java.lang.String propertyXml)
           
 void setPropertyXsl(java.lang.String propertyXsl)
           
 void setXml(java.lang.String xml)
           
 void setXsl(java.lang.String xsl)
           
 
Methods inherited from class javax.servlet.jsp.tagext.BodyTagSupport
doInitBody, getBodyContent, getPreviousOut, setBodyContent
 
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.servlet.jsp.tagext.Tag
getParent, setPageContext, setParent
 

Constructor Detail

ApplyTag

public ApplyTag()
Method Detail

getNameXml

public java.lang.String getNameXml()

setNameXml

public void setNameXml(java.lang.String nameXml)

getNameXsl

public java.lang.String getNameXsl()

setNameXsl

public void setNameXsl(java.lang.String nameXsl)

getPropertyXml

public java.lang.String getPropertyXml()

setPropertyXml

public void setPropertyXml(java.lang.String propertyXml)

getPropertyXsl

public java.lang.String getPropertyXsl()

setPropertyXsl

public void setPropertyXsl(java.lang.String propertyXsl)

getXml

public java.lang.String getXml()

setXml

public void setXml(java.lang.String xml)

getXsl

public java.lang.String getXsl()

setXsl

public void setXsl(java.lang.String xsl)

doStartTag

public int doStartTag()
               throws javax.servlet.jsp.JspException
Validate the attributes that were specified for consistency. Evaluate the body content of this tag if we will be using it as the XML data source; otherwise skip it.
Overrides:
doStartTag in class javax.servlet.jsp.tagext.BodyTagSupport
Throws:
javax.servlet.jsp.JspException - if a JSP error occurs

doAfterBody

public int doAfterBody()
                throws javax.servlet.jsp.JspException
Save the body content that has been processed, but do not iterate.
Overrides:
doAfterBody in class javax.servlet.jsp.tagext.BodyTagSupport
Throws:
javax.servlet.jsp.JspException - if a JSP error has occurred

doEndTag

public int doEndTag()
             throws javax.servlet.jsp.JspException
Finish up by performing the transformation and rendering the output.
Overrides:
doEndTag in class javax.servlet.jsp.tagext.BodyTagSupport
Throws:
javax.servlet.jsp.JspException - if a JSP exception occurs

release

public void release()
Release any allocated resources.
Overrides:
release in class javax.servlet.jsp.tagext.BodyTagSupport


Copyright ? 2000 Apache Software Foundation. All Rights Reserved.