Oracle

weblogicx.xml.tags
Class XsltTag

java.lang.Object
  extended by BodyTagSupport
      extended by weblogicx.xml.tags.XsltTag
All Implemented Interfaces:
EntityResolver

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.


Constructor Summary
XsltTag()
           
 
Method Summary
 int doAfterBody()
           
 int doEndTag()
           
 int doStartTag()
           
 byte[] getContent(weblogic.servlet.internal.ServletRequestImpl request, String uri)
          Utility method for pulling content from another servlet.
protected  String getDefault()
           
 String getMedia()
           
protected  void getPIs(Node document)
           
 String getStylesheet()
           
 String getXml()
           
protected  String getXslPage(String media)
           
protected  Map parse(String data)
           
 Object putXslIs(String media, InputStream xslis)
           
 Object putXslURI(String media, String uri)
           
 void release()
          Release back to original state.
 InputSource resolveEntity(String pid, String sid)
          Entity resolver
protected  void setDefault(String defaultXslPage)
           
 void setDefaultXslIs(InputStream defaultXslIs)
           
 void setMedia(String media)
           
 void setStylesheet(String stylesheet)
           
 void setXml(String xml)
           
 void setXmlInputStream(InputStream xmlis)
           
 void setXslInputStream(InputStream xmlis)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XsltTag

public XsltTag()
Method Detail

getXml

public String getXml()

setXml

public void setXml(String xml)

getMedia

public String getMedia()

setMedia

public void setMedia(String media)

getStylesheet

public String getStylesheet()

setStylesheet

public void setStylesheet(String stylesheet)

setXmlInputStream

public void setXmlInputStream(InputStream xmlis)

setXslInputStream

public void setXslInputStream(InputStream xmlis)

doStartTag

public int doStartTag()
               throws JspException
Throws:
JspException

doAfterBody

public int doAfterBody()
                throws JspException
Throws:
JspException

doEndTag

public int doEndTag()
             throws JspException
Throws:
JspException

setDefaultXslIs

public void setDefaultXslIs(InputStream defaultXslIs)

putXslIs

public Object putXslIs(String media,
                       InputStream xslis)

putXslURI

public Object putXslURI(String media,
                        String uri)

getDefault

protected String getDefault()

setDefault

protected void setDefault(String defaultXslPage)

getXslPage

protected String getXslPage(String media)

parse

protected Map parse(String data)

getPIs

protected void getPIs(Node document)
               throws SAXException
Throws:
SAXException

resolveEntity

public InputSource resolveEntity(String pid,
                                 String sid)
                          throws SAXException
Entity resolver

Specified by:
resolveEntity in interface EntityResolver
Throws:
SAXException

release

public void release()
Release back to original state.


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

Documentation is available at
http://download.oracle.com/docs/cd/E12839_01/web.1111
Copyright 1996,2009, Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners.

Part Number E13941-01
Oracle WebLogic Server 10.3.1 API Reference