public class TransformTag extends ParseTag
body, context, parent| Constructor and Description |
|---|
TransformTag()
Constructor for TransformTag.
|
| Modifier and Type | Method and Description |
|---|---|
protected javax.xml.transform.Result |
createSAXResult(XMLOutput output)
Factory method to create a new SAXResult for the given
XMLOutput so that the output of an XSLT transform will go
directly into the XMLOutput that we are given.
|
protected javax.xml.transform.URIResolver |
createURIResolver()
Creates a new URI Resolver so that URIs inside the XSLT document can be
resolved using the JellyContext
|
protected org.xml.sax.XMLReader |
createXMLReader()
Factory method to create a new XMLReader for this tag
so that the input of the XSLT transform comes from
either the xml var, the nested tag or the tag body.
|
void |
doTag(XMLOutput output)
Process this tag instance
|
protected org.xml.sax.InputSource |
getInputSourceFromObj(java.lang.Object sourceObj)
Helper method to get an xml input source for the supplied object
|
protected javax.xml.transform.sax.SAXSource |
getObjAsSAXSource(java.lang.Object saxSourceObj)
Helper method to convert the specified object to a SAX source
|
protected org.xml.sax.InputSource |
getXMLInputSource()
Helper method to get the appropriate xml input source
so that the input of the XSLT transform comes from
either the xml var, the nested tag or the tag body.
|
java.lang.Object |
getXslt()
Gets the source of the XSL which is either a String URI, Reader or
InputStream
|
void |
setParameterValue(java.lang.String name,
java.lang.Object value) |
void |
setXslt(java.lang.Object xslt)
Sets the source of the XSL which is either a String URI, Reader or
InputStream
|
createSAXReader, getValidate, getXml, getXmlDocument, setValidate, setXmlgetSAXReader, getText, getVar, parse, parseBody, parseText, setSAXReader, setText, setVarfindAncestorWithClass, findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, getBody, getBodyText, getBodyText, getContext, getParent, invokeBody, isEscapeText, isTrim, setBody, setContext, setEscapeText, setParent, setTrim, trimBodypublic void doTag(XMLOutput output) throws MissingAttributeException, JellyTagException
doTag in interface TagdoTag in class ParseTagoutput - The pipeline for xml eventsjava.lang.Exception - - when required attributes are missingMissingAttributeExceptionJellyTagExceptionpublic java.lang.Object getXslt()
public void setXslt(java.lang.Object xslt)
xslt - The source of the xsltpublic void setParameterValue(java.lang.String name,
java.lang.Object value)
protected javax.xml.transform.URIResolver createURIResolver()
protected javax.xml.transform.Result createSAXResult(XMLOutput output)
output - The destination of the transform outputprotected org.xml.sax.XMLReader createXMLReader()
throws org.xml.sax.SAXException
org.xml.sax.SAXException - If the value of the "org.xml.sax.driver" system property
is null, or if the class cannot be loaded and instantiated.protected org.xml.sax.InputSource getXMLInputSource()
protected javax.xml.transform.sax.SAXSource getObjAsSAXSource(java.lang.Object saxSourceObj)
protected org.xml.sax.InputSource getInputSourceFromObj(java.lang.Object sourceObj)
Copyright © 2012. All Rights Reserved.