org.ofbiz.base.util.template
Class XslTransform

java.lang.Object
  extended by org.ofbiz.base.util.template.XslTransform

public final class XslTransform
extends java.lang.Object

XslTransform This utility takes an input document and a XSL stylesheet and performs the transform, returning the output document. The input for both the input document and stylesheet can be in one of three forms - a URL to the doc, the doc in string form and the doc in DOM Document form. It keeps its own cache for storing the compiled transforms.


Field Summary
static java.lang.String module
           
static UtilCache<java.lang.String,javax.xml.transform.Templates> xslTemplatesCache
           
 
Constructor Summary
XslTransform()
           
 
Method Summary
static org.w3c.dom.Document transform(java.util.Map<java.lang.String,java.lang.Object> context, java.util.Map<java.lang.String,java.lang.Object> params)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

module

public static final java.lang.String module

xslTemplatesCache

public static UtilCache<java.lang.String,javax.xml.transform.Templates> xslTemplatesCache
Constructor Detail

XslTransform

public XslTransform()
Method Detail

transform

public static org.w3c.dom.Document transform(java.util.Map<java.lang.String,java.lang.Object> context,
                                             java.util.Map<java.lang.String,java.lang.Object> params)
                                      throws GeneralException,
                                             java.io.IOException,
                                             javax.xml.transform.TransformerConfigurationException,
                                             javax.xml.transform.TransformerException
Throws:
GeneralException
java.io.IOException
javax.xml.transform.TransformerConfigurationException
javax.xml.transform.TransformerException