dleslie 00/10/20 05:52:35
Modified: java/xdocs/sources/xalan samples.xml usagepatterns.xml
Log:
Added TraceListener and stylesheet PI samples.
Revision Changes Path
1.13 +17 -1 xml-xalan/java/xdocs/sources/xalan/samples.xml
Index: samples.xml
===================================================================
RCS file: /home/cvs/xml-xalan/java/xdocs/sources/xalan/samples.xml,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -r1.12 -r1.13
--- samples.xml 2000/10/18 20:55:23 1.12
+++ samples.xml 2000/10/20 12:52:34 1.13
@@ -59,6 +59,7 @@
<s1 title="&xslt4j2; Samples">
<ul>
<li><link anchor="simpletransform">SimpleTransform</link></li>
+<li><link anchor="usestylesheetpi">UseStylesheetPI</link></li>
<li><link anchor="transformtodom">TransformToDom</link></li>
<li><link anchor="usestylesheetparam">UseStylesheetParam</link></li>
<li><link anchor="sax2sax">SAX2SAX</link></li>
@@ -68,6 +69,7 @@
<li><link anchor="appletxmltohtml">AppletXMLtoHTML</link></li>
<li><link anchor="servlet">Servlet</link></li>
<li><link anchor="extensions">Extensions</link></li>
+<li><link anchor="trace">Trace</link></li>
</ul>
<s2 title="Samples to help you get started">
<p>Each of the subdirectories in the &xslt4j; java/samples directory
contains the source files for one or more
@@ -99,6 +101,13 @@
output to System.out.</p>
<p>You can run it from the SimpleTransform subdirectory with</p>
<p><code>java SimpleTransform</code></p>
+ </s2><anchor name="usestylesheetpi"/>
+ <s2 title="UseStylesheetPI">
+ <p>What it does: The UseStylesheetPI class uses the styesheet processing
insturction in the XML source document to determine
+ which stylesheet to use to perform the transformation.</p>
+ <p>You can run it from the UseStylesheetPI subdirectory with</p>
+ <p><code>java UseStylesheetPI</code></p>
+ <p>For more information, see <link idref="usagepatterns"
anchor="embed">Working with embedded stylesheets</link>.</p>
</s2><anchor name="transformtodom"/>
<s2 title="TransformToDom">
<p>What it does: The TransformToDom class uses the foo.xsl stylesheet to
transform foo.xml, produces an output
@@ -259,5 +268,12 @@
<p><code> java org.apache.xalan.xslt.Process -in numlist.xml</code>
<br/> <code>-xsl 5-numlistJscript.xsl</code></p>
</s3>
- </s2>
+ </s2><anchor name="trace"/>
+ <s2 title="Trace">
+ <p>What it does: Trace uses the TraceListener and TraceManager classes
to log transformation events.</p>
+ <p>Run this sample from the Trace subdirectory with</p>
+ <p><code>java Trace</code></p>
+ <p>and examine the result in events.log. For more information, see
<link idref="usagepatterns" anchor="debugging">Debugger
+ Interface</link></p>
+ </s2>
</s1>
1.13 +2 -0 xml-xalan/java/xdocs/sources/xalan/usagepatterns.xml
Index: usagepatterns.xml
===================================================================
RCS file: /home/cvs/xml-xalan/java/xdocs/sources/xalan/usagepatterns.xml,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -r1.12 -r1.13
--- usagepatterns.xml 2000/10/19 11:57:13 1.12
+++ usagepatterns.xml 2000/10/20 12:52:34 1.13
@@ -168,6 +168,7 @@
transformer.transform
(new
org.xml.sax.InputSource("foo.xml"),
new
org.apache.trax.Result(new java.io.FileWriter("foo.out")));</source>
+<p>For a sample that uses this technique, see <link idref="samples"
anchor="usestylesheetpi">UseStylesheetPI</link>.</p>
<p>You can also instruct the <link idref="commandline">command-line
utility</link> to use stylesheet processing
instructions:</p>
<ol>
@@ -341,5 +342,6 @@
// Close the PrintWriter and FileWriter.
pw.close();
fw.close();</source>
+<p>For a sample application that uses this technique, see <link
idref="samples" anchor="trace">Trace</link>.</p>
</s2>
</s1>