You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xalan.apache.org by mk...@apache.org on 2002/11/05 21:20:33 UTC
cvs commit: xml-xalan/java/xdocs/sources/xalan commandline.xml commandline_xsltc.xml
mkwan 2002/11/05 12:20:32
Modified: java/xdocs/sources/xalan commandline.xml
commandline_xsltc.xml
Log:
xdocs update for XSLTC options in Process command line.
Revision Changes Path
1.22 +1 -1 xml-xalan/java/xdocs/sources/xalan/commandline.xml
Index: commandline.xml
===================================================================
RCS file: /home/cvs/xml-xalan/java/xdocs/sources/xalan/commandline.xml,v
retrieving revision 1.21
retrieving revision 1.22
diff -u -r1.21 -r1.22
--- commandline.xml 4 Nov 2002 19:15:25 -0000 1.21
+++ commandline.xml 5 Nov 2002 20:20:32 -0000 1.22
@@ -124,7 +124,7 @@
-XD destinationDirectory (specify a destination directory for translet)
-XJ jarfile (package translet classes into a jar file of name <jarfile>)
-XP package (specify a package name prefix for all generated translet classes)
--XN (enable template inlining)
+-XN (enable XSL template inlining into one big method)
-XX (turn on additional debugging message output)
-XT (use translet to transform if possible)
</source>
1.2 +9 -4 xml-xalan/java/xdocs/sources/xalan/commandline_xsltc.xml
Index: commandline_xsltc.xml
===================================================================
RCS file: /home/cvs/xml-xalan/java/xdocs/sources/xalan/commandline_xsltc.xml,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- commandline_xsltc.xml 4 Nov 2002 19:15:25 -0000 1.1
+++ commandline_xsltc.xml 5 Nov 2002 20:20:32 -0000 1.2
@@ -102,9 +102,9 @@
<li><code>-XP package_name</code><br/>
Specify a package name prefix for all generated translet classes</li>
<li><code>-XN</code><br/>
- Enables template inlining</li>
+ Enable XSL template inlining into one big method</li>
<li><code>-XX</code><br/>
- Turns on additional debugging message output</li>
+ Turn on additional debugging message output</li>
<li><code>-XT</code><br/>
Use translet to transform if possible</li>
</ul>
@@ -178,7 +178,7 @@
<p><em>Q:</em> I only want to compile the stylesheet. I don't want to do a transformation.</p>
<p><em>A:</em> TrAX has no notion of compiling a stylesheet. However, you can achieve the same effect by
running a dummy transformation and tell XSLTC to save the translet class. Example:</p>
-<p>> <code>java org.apache.xalan.xslt.Process -xsl test.xsl -xo</code></p>
+<p>> <code>java org.apache.xalan.xslt.Process -xsl test.xsl -xsltc <br/>-xo</code></p>
<p>This command runs a transformation on an empty input and generates the translet <code>test.class</code>.</p>
</s2>
@@ -186,7 +186,7 @@
<s2 title="Using the new options from TrAX">
<p>If you use the TrAX interface for XSLTC, you could not tell it to use translets before. It always compiled
-the xsl on the fly and used the bytecode im memory for transformation. Now you can use some of
+the xsl on the fly and used the bytecode in memory for transformation. Now you can use some of
the new attributes in XSLTC's <code>TransformerFactoryImpl</code> class to customize the translet behaviors from TrAX.</p>
<p>Here is the list of attributes in <code>org.apache.xalan.xsltc.trax.TransformerFactoryImpl</code> and their
@@ -244,6 +244,11 @@
The four attributes <code>translet-name, destination-directory, package-name and jar-name</code> are transient.
They only apply to the next <code>newTemplates()</code> or <code>newTransformer()</code> call. Their values are reset to
the default after the call.</p>
+
+<p>The <code>generate-translet</code> attribute does not have a corresponding command line option. This attribute is
+implied when the <code>-XO</code> or <code>-XJ</code> option is used. The purpose is to make the command line
+usage syntax a little bit simpler. Setting the <code>generate-attribute</code> attribute to true from TrAX is
+equivalent to using the <code>-XO</code> option without the optional translet name from the Process command line.</p>
<p>The following example shows you how to do the same thing from TrAX for the question 2 in the FAQ.</p>
---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-cvs-help@xml.apache.org