com.caucho.xsl
Class StyleScript

java.lang.Object
  |
  +--com.caucho.xsl.AbstractStylesheetFactory
        |
        +--com.caucho.xsl.StyleScript
All Implemented Interfaces:
StylesheetFactory

public class StyleScript
extends AbstractStylesheetFactory

Public facade for creating StyleScript stylesheets.

 StylesheetFactory factory = new StyleScript();
 Stylesheet style = factory.newStylesheet("mystyle.xsl");

 StreamTransformer transformer = style.newStreamTransformer();

 WriteStream os = Vfs.openWrite("test.html");
 transformer.transform("test.xml", os);
 os.close();
 


Constructor Summary
StyleScript()
           
 
Method Summary
 Stylesheet newStylesheet(java.io.InputStream is)
          Creates a new stylesheet based on the StyleScript
 
Methods inherited from class com.caucho.xsl.AbstractStylesheetFactory
getClassLoader, getClassName, getScriptPath, getStylePath, loadStylesheet, newStylesheet, newStylesheet, newStylesheet, setClassLoader, setClassName, setScriptPath, setStylePath, transform, transform
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StyleScript

public StyleScript()
Method Detail

newStylesheet

public Stylesheet newStylesheet(java.io.InputStream is)
                         throws java.lang.Exception
Creates a new stylesheet based on the StyleScript
Overrides:
newStylesheet in class AbstractStylesheetFactory