public class TransformTag extends ParseTag
body, context, parent
Constructor and Description |
---|
TransformTag()
Constructor for TransformTag.
|
Modifier and Type | Method and Description |
---|---|
protected 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 URIResolver |
createURIResolver()
Creates a new URI Resolver so that URIs inside the XSLT document can be
resolved using the JellyContext
|
protected 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 InputSource |
getInputSourceFromObj(Object sourceObj)
Helper method to get an xml input source for the supplied object
|
protected SAXSource |
getObjAsSAXSource(Object saxSourceObj)
Helper method to convert the specified object to a SAX source
|
protected 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.
|
Object |
getXslt()
Gets the source of the XSL which is either a String URI, Reader or
InputStream
|
void |
setParameterValue(String name,
Object value) |
void |
setXslt(Object xslt)
Sets the source of the XSL which is either a String URI, Reader or
InputStream
|
createSAXReader, getValidate, getXml, getXmlDocument, setValidate, setXml
getSAXReader, getText, getVar, parse, parseBody, parseText, setSAXReader, setText, setVar
findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, getBody, getBodyText, getBodyText, getContext, getParent, invokeBody, isEscapeText, isTrim, setBody, setContext, setEscapeText, setParent, setTrim, trimBody
public void doTag(XMLOutput output) throws MissingAttributeException, JellyTagException
doTag
in interface Tag
doTag
in class ParseTag
output
- The pipeline for xml eventsException
- - when required attributes are missingMissingAttributeException
JellyTagException
public Object getXslt()
public void setXslt(Object xslt)
xslt
- The source of the xsltprotected URIResolver createURIResolver()
protected Result createSAXResult(XMLOutput output)
output
- The destination of the transform outputprotected XMLReader createXMLReader() throws SAXException
SAXException
- If the value of the "org.xml.sax.driver" system property
is null, or if the class cannot be loaded and instantiated.protected InputSource getXMLInputSource()
protected SAXSource getObjAsSAXSource(Object saxSourceObj)
protected InputSource getInputSourceFromObj(Object sourceObj)
Copyright © 2014. All rights reserved.