FileDocCategorySizeDatePackage
JAXPTransform.javaAPI DocExample553Thu Nov 22 15:42:58 GMT 2001None

JAXPTransform

public class JAXPTransform extends Object
Illustrate simplest use of JAXP to transform using XSL

Fields Summary
Constructors Summary
Methods Summary
public static voidmain(java.lang.String[] args)


		// Create a transformer object
		Transformer tx = TransformerFactory.newInstance().newTransformer(
			new StreamSource(new File("parents.xsl")));

		// Use its transform() method to perform the transformation
		tx.transform(
			new StreamSource(new File("parents+dtd.xml")),
			new StreamResult(System.out));