dleslie 01/05/15 07:11:39
Modified: java/xdocs/sources/xalan usagepatterns.xml xsltc_usage.xml
Log:
Added info on using Crimson parser to usagepatterns.xml
Edited TrAX section in xsltc_usage.xml.
Revision Changes Path
1.34 +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.33
retrieving revision 1.34
diff -u -r1.33 -r1.34
--- usagepatterns.xml 2001/05/10 18:09:50 1.33
+++ usagepatterns.xml 2001/05/15 14:11:26 1.34
@@ -133,6 +133,8 @@
<li>Set the system property in jaxp.properties in the JAVA_HOME/lib
directory, where JAVA_HOME is the root of the JDK.<br/><br/></li>
<li>Revise the entry in src/META-INF/services and rebuild
xalan.jar.<br/><br/></li>
</ol>
+<p>For example, to use the Crimson XML parser in place of the Xerces XML
parser, place Crimson on the class path and set the
+<code>javax.xml.parsers.SAXParserFactory</code> system property to
<code>org.apache.crimson.jaxp.SAXParserFactoryImpl</code>.</p>
<p>For more information about the mechanism used to determine system
property values and how you can plug other implementations into your
applications, see "Section 3: Plugability Layer" in the <ref>Java API for XML
Processing</ref> at
<jump
href="http://java.sun.com/aboutJava/communityprocess/review/jsr063/index.html">JSR-000063
1.1</jump>.</p>
</s2><anchor name="outputprops"/>
1.6 +3 -3 xml-xalan/java/xdocs/sources/xalan/xsltc_usage.xml
Index: xsltc_usage.xml
===================================================================
RCS file: /home/cvs/xml-xalan/java/xdocs/sources/xalan/xsltc_usage.xml,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- xsltc_usage.xml 2001/05/14 21:36:26 1.5
+++ xsltc_usage.xml 2001/05/15 14:11:29 1.6
@@ -309,10 +309,10 @@
</s3>
</s2><anchor name="api"/>
<s2 title="Calling XSLTC with the TrAX/JAXP API">
-<p>G. Todd Miller has begun integrating the translet with the TrAX/JAXP API.
Accordingly, it is now possible to set a system property and use a
TransformerFactory to generate a Transformer that performs a transformation by
compiling and running a translet.</p>
+<p>G. Todd Miller has begun integrating the translet with the TrAX/JAXP 1.1
API. Accordingly, it is now possible to set a system property and use a
TransformerFactory to generate a Transformer that performs a transformation by
compiling and running a translet.</p>
-<p>When you use the JAXP 1.1 API to run &xslt4j;, the
<code>javax.xml.transformer.TransformerFactory</code> system property is set to
<code>org.apache.xalan.Processor.TransformerFactoryImpl</code>. As it currently
stands, this Xalan implementation of TransformerFactory always uses the Xalan
Transformer to perform transformations. To use translets to perform
transformations, set this system property to
<code>org.apache.xalan.xsltc.runtime.TransformerFactoryImpl</code>. For
information on setting this and related system properties, see <link
idref="usagepatterns" anchor="plug">Plugging in a Transformer and XML
parser</link>.</p>
+<p>When you use the JAXP 1.1 API to run &xslt4j;, the
<code>javax.xml.transformer.TransformerFactory</code> system property is set to
<code>org.apache.xalan.Processor.TransformerFactoryImpl</code>. As it currently
stands, this Xalan implementation of TransformerFactory always uses the Xalan
Transformer to perform transformations. To use translets to perform
transformations, set this system property to
<code>org.apache.xalan.xsltc.runtime.TransformerFactoryImpl</code>. For
information on setting this and related system properties designating XML
parsere and XSL transformer, see <link idref="usagepatterns"
anchor="plug">Plugging in a Transformer and XML parser</link>.</p>
<p>To Use the JAXP 1.1 API to perform transformations with translets do the
following:</p>
<ol>
<li>Set the <code>javax.xml.transformer.TransformerFactory</code> system
property as indicated above.<br/><br/></li>
@@ -324,7 +324,7 @@
transformation output.</li>
</ol>
<s3 title="Examples">
-<p><em>Example 1:</em> Using a transler/Templates object for multiple
transformations</p>
+<p><em>Example 1:</em> Using a translet/Templates object for multiple
transformations</p>
<source>java.util.Properties;
import javax.xml.transform.Transformer;
import javax.xml.transform.TransformerFactory;
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]