|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.servlet.jsp.tagext.TagSupport
javax.servlet.jsp.tagext.BodyTagSupport
org.apache.taglibs.xtags.xslt.StyleTag
public class StyleTag
A tag which performs an XSLT transformation on a given XML document
| Field Summary |
|---|
| 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_BUFFERED, EVAL_BODY_TAG |
| 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 | |
|---|---|
StyleTag()
|
|
| Method Summary | |
|---|---|
protected void |
configure(javax.xml.transform.Transformer transformer)
Configures the Transformer before use |
protected javax.xml.transform.URIResolver |
createURIResolver()
Creates a URI resolver capable of resolving URIs when used in XSLT includes or imports |
int |
doAfterBody()
Extract the body if required for either the XML or XSLT |
int |
doEndTag()
Perform the transformation and render the output. |
int |
doStartTag()
Evaluate the body content of this tag if we need to for either the XML or XSLT data; otherwise we skip it. |
protected javax.xml.transform.Result |
getResult()
Construct and return a JAXP Result |
protected javax.xml.transform.Source |
getSource(java.lang.Object source)
Construct and return a JAXP Source to read the XML data to be styled. |
protected void |
handleException(java.lang.Exception e)
Handles non-JspExceptions thrown in this instance |
void |
release()
Release any allocated resources. |
void |
setDocument(org.dom4j.Document document)
Sets the dom4j document to be styled |
void |
setOutputMethod(java.lang.String outputMethod)
|
void |
setParameter(java.lang.String name,
java.lang.Object value)
Sets the given parameter name and value |
void |
setResult(javax.xml.transform.Result result)
Sets the JAXP Result instance to |
void |
setResultHandler(org.xml.sax.ContentHandler handler)
Sets the SAX ContentHandler that the output is written to |
void |
setTransformer(javax.xml.transform.Transformer transformer)
Sets the XSLT transformer used to transform the document |
void |
setWriter(java.io.Writer writer)
Sets where the output is written to |
void |
setXml(java.lang.String xml)
Sets the XML URL that the input document is read from |
void |
setXmlReader(java.io.Reader reader)
|
void |
setXmlSource(javax.xml.transform.Source source)
Sets the source of the XML document |
void |
setXsl(java.lang.String xsl)
Sets the XSL URL that the stylesheet is read from |
void |
setXslReader(java.io.Reader reader)
|
void |
setXslSource(javax.xml.transform.Source source)
Sets the source of the XML document |
| 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 |
|---|
public StyleTag()
| Method Detail |
|---|
public void setParameter(java.lang.String name,
java.lang.Object value)
ParameterAcceptingTag
setParameter in interface ParameterAcceptingTag
public int doStartTag()
throws javax.servlet.jsp.JspException
doStartTag in interface javax.servlet.jsp.tagext.TagdoStartTag in class javax.servlet.jsp.tagext.BodyTagSupportjavax.servlet.jsp.JspException - if a JSP error occurs
public int doAfterBody()
throws javax.servlet.jsp.JspException
doAfterBody in interface javax.servlet.jsp.tagext.IterationTagdoAfterBody in class javax.servlet.jsp.tagext.BodyTagSupportjavax.servlet.jsp.JspException - if a JSP error has occurred
public int doEndTag()
throws javax.servlet.jsp.JspException
doEndTag in interface javax.servlet.jsp.tagext.TagdoEndTag in class javax.servlet.jsp.tagext.BodyTagSupportjavax.servlet.jsp.JspException - if a JSP exception occurspublic void release()
release in interface javax.servlet.jsp.tagext.Tagrelease in class javax.servlet.jsp.tagext.BodyTagSupportpublic void setOutputMethod(java.lang.String outputMethod)
public void setDocument(org.dom4j.Document document)
public void setTransformer(javax.xml.transform.Transformer transformer)
public void setResult(javax.xml.transform.Result result)
public void setWriter(java.io.Writer writer)
public void setResultHandler(org.xml.sax.ContentHandler handler)
public void setXml(java.lang.String xml)
public void setXmlSource(javax.xml.transform.Source source)
public void setXmlReader(java.io.Reader reader)
public void setXsl(java.lang.String xsl)
public void setXslReader(java.io.Reader reader)
public void setXslSource(javax.xml.transform.Source source)
protected void configure(javax.xml.transform.Transformer transformer)
protected javax.xml.transform.Source getSource(java.lang.Object source)
throws javax.servlet.jsp.JspException
source - is the object to be converted into a JAXP Source
javax.servlet.jsp.JspException - if a JSP error occurs
protected javax.xml.transform.Result getResult()
throws javax.servlet.jsp.JspException
javax.servlet.jsp.JspException - if a JSP error occursprotected javax.xml.transform.URIResolver createURIResolver()
protected void handleException(java.lang.Exception e)
throws javax.servlet.jsp.JspException
javax.servlet.jsp.JspException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||