org.yestech.lib.xml
Class XslUtils

java.lang.Object
  extended by org.yestech.lib.xml.XslUtils

public final class XslUtils
extends java.lang.Object

Utility Methods for XSL Templating.


Field Summary
static javax.xml.transform.TransformerFactory TRANSFORMER_FACTORY
           
 
Method Summary
static java.io.File locateFileInApp(java.lang.String filePath)
           
static java.lang.String transformMessage(javax.xml.transform.Source xmlSource, javax.xml.transform.Source xslSource)
          Transforms an xml source using an xsl source and returns the result.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TRANSFORMER_FACTORY

public static final javax.xml.transform.TransformerFactory TRANSFORMER_FACTORY
Method Detail

transformMessage

public static java.lang.String transformMessage(javax.xml.transform.Source xmlSource,
                                                javax.xml.transform.Source xslSource)
Transforms an xml source using an xsl source and returns the result.

Parameters:
xmlSource - XML Source
xslSource - XSL Source
Returns:
The result
Throws:
java.lang.RuntimeException - if an error happens

locateFileInApp

public static java.io.File locateFileInApp(java.lang.String filePath)


Copyright © 2009 YES Technology Association. All Rights Reserved.