BEA WebLogic Server 9.1 API Reference
weblogicx.xml.tags
Class XsltTag
java.lang.Object
javax.servlet.jsp.tagext.TagSupport
javax.servlet.jsp.tagext.BodyTagSupport
weblogicx.xml.tags.XsltTag
- All Implemented Interfaces:
- BodyTag, EntityResolver, IterationTag, JspTag, Serializable, Tag
- public class XsltTag
- extends BodyTagSupport
- implements EntityResolver
The XSL tag processes an XML string using the style sheet
contained in the tag body or included from another servlet.
You must specify a processor which are accessed through the
generic Processor interface. Current implementations include
xalan, xt, and saxon. Remember to specify text if you don't
want all the extra XML version tags, etc.
- See Also:
- Serialized Form
- Copyright © 2005 BEA Systems, Inc. All Rights Reserved.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XsltTag
public XsltTag()
doAfterBody
public int doAfterBody()
throws JspException
- Specified by:
doAfterBody
in interface IterationTag
- Throws:
JspException
doEndTag
public int doEndTag()
throws JspException
- Specified by:
doEndTag
in interface Tag
- Throws:
JspException
doStartTag
public int doStartTag()
throws JspException
- Specified by:
doStartTag
in interface Tag
- Throws:
JspException
getContent
public byte[] getContent(weblogic.servlet.internal.ServletRequestImpl request,
String uri)
throws IOException,
ServletException
- Utility method for pulling content from another servlet.
- Throws:
IOException
ServletException
getDefault
protected String getDefault()
getMedia
public String getMedia()
getPIs
protected void getPIs(Node document)
throws SAXException
- Throws:
SAXException
getStylesheet
public String getStylesheet()
getXml
public String getXml()
getXslPage
protected String getXslPage(String media)
parse
protected Map parse(String data)
putXslIs
public Object putXslIs(String media,
InputStream xslis)
putXslURI
public Object putXslURI(String media,
String uri)
release
public void release()
- Release back to original state.
- Specified by:
release
in interface Tag
resolveEntity
public InputSource resolveEntity(String pid,
String sid)
throws SAXException
- Entity resolver
- Specified by:
resolveEntity
in interface EntityResolver
- Throws:
SAXException
setDefault
protected void setDefault(String defaultXslPage)
setDefaultXslIs
public void setDefaultXslIs(InputStream defaultXslIs)
setMedia
public void setMedia(String media)
setStylesheet
public void setStylesheet(String stylesheet)
setXml
public void setXml(String xml)
setXmlInputStream
public void setXmlInputStream(InputStream xmlis)
setXslInputStream
public void setXslInputStream(InputStream xmlis)