Skip navigation links


com.essbase.eas.server
Class XslTransformer

java.lang.Object
  extended by com.essbase.eas.server.XslTransformer


public class XslTransformer
extends java.lang.Object

Wrap the javax.xml.transformTrax API and provide a mechanism to use XSLT on XML objects. There are 2 main uses. One is to tranform an object subclassed from com.essbase.eas.net.xml.XMLTransferObject and the other is to transform any DOM tree to html output. Many more options are possible


Constructor Summary
XslTransformer()
          Construct an XslTransformer object
XslTransformer(XMLTransferObject xmlObject)
          Constructor for transforming an object subclasssed from XMLTransferObject

 

Method Summary
 void transform(org.w3c.dom.Document doc, java.io.InputStream stylesheet, java.io.Writer out)
          Transform a DOM document into an HTML document stored in the Writer
 java.lang.String transformXmlObject(java.io.InputStream stylesheet)
          Perform an XSL transformation on the xml object
 void transformXmlObject(java.io.InputStream stylesheet, java.io.Writer out)
          Transform an xml object and have the html result in the specified Writer

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Constructor Detail

XslTransformer

public XslTransformer()
Construct an XslTransformer object

XslTransformer

public XslTransformer(XMLTransferObject xmlObject)
Constructor for transforming an object subclasssed from XMLTransferObject
Parameters:
xmlObject - object subclassed from XMLTransferObject

Method Detail

transformXmlObject

public java.lang.String transformXmlObject(java.io.InputStream stylesheet)
Perform an XSL transformation on the xml object
Parameters:
stylesheet - as an InputStream
Returns:
String the html result of the transformation

transformXmlObject

public void transformXmlObject(java.io.InputStream stylesheet,
                               java.io.Writer out)
Transform an xml object and have the html result in the specified Writer
Parameters:
stylesheet - the xsl stylesheet as an InputStream
out - the Writer where the html output is stored

transform

public void transform(org.w3c.dom.Document doc,
                      java.io.InputStream stylesheet,
                      java.io.Writer out)
Transform a DOM document into an HTML document stored in the Writer
Parameters:
doc - the DOM document
stylesheet - the stylesheet
out - the Writer where the result is stored

Skip navigation links


Copyright © 2001, 2012, Oracle. All rights reserved.