com.caucho.xsl
Class Xsl

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

public class Xsl
extends AbstractStylesheetFactory

Public facade for creating stylesheets. The Xsl factory creates standard XSL stylesheets. A Stylesheet object represents a compiled stylesheet. You'll need to create a Transformer to actually perform any transformations.

 import java.io.*;
 import org.xml.sax.*;
 import com.caucho.vfs.*;
 import com.caucho.transform.*;
 import com.caucho.xsl.*;

 ...

 StylesheetFactory factory = new Xsl();
 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
Xsl()
           
 
Method Summary
static void main(java.lang.String[] args)
           
 Stylesheet newStylesheet(java.io.InputStream is)
          Create a new stylesheet from an input stream.
 
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

Xsl

public Xsl()
Method Detail

newStylesheet

public Stylesheet newStylesheet(java.io.InputStream is)
                         throws java.lang.Exception
Create a new stylesheet from an input stream.
Overrides:
newStylesheet in class AbstractStylesheetFactory

main

public static void main(java.lang.String[] args)