pulse - the web application framework Get pulse at SourceForge.net. Fast, secure and Free Open Source software downloads Ohloh project report for pulse-java

org.torweg.pulse.util.xml.transform
Class XSLCompileUtils

java.lang.Object
  extended by org.torweg.pulse.util.xml.transform.XSLCompileUtils

public final class XSLCompileUtils
extends java.lang.Object

utility class for XSLHandleImpl which takes care of the actual XSL import/include analysis and the stylesheet compilation.

Version:
$Revision: 2026 $
Author:
Thomas Weber

Method Summary
static javax.xml.transform.Templates compileTemplates(java.io.File base, java.util.Set<FileResource> resources)
          compiles a XSL template with Saxon.
static javax.xml.transform.Templates compileTemplates(java.lang.String stylesheet)
          compiles a XSL template with Saxon.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

compileTemplates

public static javax.xml.transform.Templates compileTemplates(java.io.File base,
                                                             java.util.Set<FileResource> resources)
compiles a XSL template with Saxon.

Parameters:
base - the base XSL file.
resources - records the file resources building the compiled template
Returns:
the compiled Templates

compileTemplates

public static javax.xml.transform.Templates compileTemplates(java.lang.String stylesheet)
compiles a XSL template with Saxon.

Parameters:
stylesheet - the XSL stylesheet as a String
Returns:
the compiled Templates