|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--com.caucho.xsl.AbstractStylesheetFactory
|
+--com.caucho.xsl.Xsl
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 |
public Xsl()
| Method Detail |
public Stylesheet newStylesheet(java.io.InputStream is)
throws java.lang.Exception
newStylesheet in class AbstractStylesheetFactorypublic static void main(java.lang.String[] args)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||