📄 command-line.xtp
字号:
<s1 title="Command Line"><p>To transform documents with XSL on the command line use thecom.caucho.xsl.Xsl class.</p><p>The CLASSPATH needs to include the following jar files:</p><ul><li>lib/dom.jar<li>lib/resin-xml.jar<li>lib/resin-xsl.jar</ul><p>The following trivial example just replaces the tag <hello/> with<var/Hello, World/>.</p><example title="hello.xsl"><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></example><example title="hello.xml"><hello/></example><p>By default, the command-line XSL prints to standard out.So a command-line invocation with CLASSPATH already configuredmight look like:</p><example>unix> <var/java com.caucho.xsl.Xsl -xsl hello.xsl hello.xml/><!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></example><deftable title="command-line options"><tr><td>-xsl <var/stylesheet/><td>Select a stylesheet<tr><td>-o <var/path/><td>Sets the result file or directory to <var/path/><tr><td>-stylescript<td>Uses the StyleScript syntax instead of strict XSL<tr><td>-conf <var/resin.conf/><td>Select a different resin.conf<tr><td>-suffix <var/html/><td>Sets the replacement suffix to <var/html/></deftable></s1>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -