To transform documents with XSL on the command line use the com.caucho.xsl.Xsl class. The CLASSPATH needs to include the following jar files: lib/dom.jar lib/resin-xml.jar lib/resin-xsl.jar The following trivial example just replaces the tag <hello/> with . <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:template match="hello"> <html> <body> <xsl:text>Hello, World</xsl:text> </body> </html> </xsl:template> </xsl:stylesheet> <hello/> By default, the command-line XSL prints to standard out. So a command-line invocation with CLASSPATH already configured might look like: unix> <!DOCTYPE html PUBLIC "-//W3C/DTD HTML 4.0 Frameset//EN" "http://www.w3c.org/TR/REC-html40/frameset.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> </head> <body>Hello, World</body> </html> -xsl Select a stylesheet -o Sets the result file or directory to -stylescriptUses the StyleScript syntax instead of strict XSL -conf Select a different resin.conf -suffix Sets the replacement suffix to