curcuru 01/09/13 11:43:20
Modified: java/xdocs/sources/xalan usagepatterns.xml
xsltc_constraints.xml xsltc_usage.xml
java/xdocs/sources/xsltc xsltc_trax.xml
Log:
Fix Bugzilla 3423: documentation updates for proper class, property names
(two of two checkins)
PR:3423
Submitted by:[EMAIL PROTECTED]
Revision Changes Path
1.41 +1 -1 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.40
retrieving revision 1.41
diff -u -r1.40 -r1.41
--- usagepatterns.xml 2001/07/27 18:13:52 1.40
+++ usagepatterns.xml 2001/09/13 18:43:20 1.41
@@ -86,7 +86,7 @@
<p>The following example illustrates the three basic steps involved in
performing a transformation.</p>
<source>// 1. Instantiate a TransformerFactory.
javax.xml.transform.TransformerFactory tFactory =
- javax.xml.transformerTransformerFactory.newInstance();
+ javax.xml.transform.TransformerFactory.newInstance();
// 2. Use the TransformerFactory to process the stylesheet Source and
// generate a Transformer.
1.17 +1 -1 xml-xalan/java/xdocs/sources/xalan/xsltc_constraints.xml
Index: xsltc_constraints.xml
===================================================================
RCS file: /home/cvs/xml-xalan/java/xdocs/sources/xalan/xsltc_constraints.xml,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -r1.16 -r1.17
--- xsltc_constraints.xml 2001/08/29 15:12:26 1.16
+++ xsltc_constraints.xml 2001/09/13 18:43:20 1.17
@@ -324,7 +324,7 @@
The Translet API has been extended to conform with the JAXP1.1 TrAX model.
This release contains the first implementation of that extension. Two
new classes have been added to the Translet XSLT codebase, they are:</p>
-<p>(1) <code>org.apache.xalan.xsltc.runtime.TransformerFactoryImpl</code> -<br/>
+<p>(1) <code>org.apache.xalan.xsltc.trax.TransformerFactoryImpl</code> -<br/>
the Translet implementation of a SAXTransformerFactory.</p>
<p>(2) <code>org.apache.xalan.xsltc.runtime.TransletTemplates</code> -
the Translet implementation of a Templates object.</p>
1.19 +4 -4 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.18
retrieving revision 1.19
diff -u -r1.18 -r1.19
--- xsltc_usage.xml 2001/07/27 20:59:18 1.18
+++ xsltc_usage.xml 2001/09/13 18:43:20 1.19
@@ -312,10 +312,10 @@
<p>G. Todd Miller has begun integrating the translet with the TrAX/JAXP 1.1 API.
See <jump href="xsltc/xsltc_trax.html">The Translet API & TrAX</jump>.
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 designating XML parsere and XSL
transformer, 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.transform.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.trax.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>
+ <li>Set the <code>javax.xml.transform.TransformerFactory</code> system property
as indicated above.<br/><br/></li>
<li>Instantiate a TransformerFactory.<br/><br/></li>
<li>Assuming you want to perform a series of transformations with the same
translet, use the TransformerFactory and a
StreamSource XSL stylesheet to generate a Templates object (the translet). If
you are performing a single
@@ -336,7 +336,7 @@
// Set the TransformerFactory system property.
// Note: For more flexibility, load properties from a properties file.
String key = "javax.xml.transform.TransformerFactory";
-String value = "org.apache.xalan.xsltc.runtime.TransformerFactoryImpl";
+String value = "org.apache.xalan.xsltc.trax.TransformerFactoryImpl";
Properties props = System.getProperties();
props.put(key, value);
System.setProperties(props);
@@ -368,7 +368,7 @@
// Set the TransformerFactory system property.
// Note: For more flexibility, load properties from a properties file.
String key = "javax.xml.transform.TransformerFactory";
-String value = "org.apache.xalan.xsltc.runtime.TransformerFactoryImpl";
+String value = "org.apache.xalan.xsltc.trax.TransformerFactoryImpl";
Properties props = System.getProperties();
props.put(key, value);
System.setProperties(props);
1.4 +2 -2 xml-xalan/java/xdocs/sources/xsltc/xsltc_trax.xml
Index: xsltc_trax.xml
===================================================================
RCS file: /home/cvs/xml-xalan/java/xdocs/sources/xsltc/xsltc_trax.xml,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- xsltc_trax.xml 2001/08/10 16:35:58 1.3
+++ xsltc_trax.xml 2001/09/13 18:43:20 1.4
@@ -166,8 +166,8 @@
<s2 title="Translet Integration">
<p>The crux of the integration strategy is the pluggable TransformerFactory class.
The
JAXP specifies that the actual TransformerFactory implementation be controlled by
the
-a Java system property (javax.xml.transformer.TransformerFactory) . This system
property can be specified in the usual ways, for
-example in a properties file or on the command line as a -D optionpassed to thejava
+a Java system property (javax.xml.transform.TransformerFactory) . This system
property can be specified in the usual ways, for
+example in a properties file or on the command line as a -D option passed to the
java
engine itself. The strategy involves writing a TransformerFactory for Translets.
In the JAXP the TransformerFactory is an abstract class. In Xalan, the system
property specifies the implementation class TransformerFactoryImpl
(org.apache.xalan.processor.TransformerFactoryImpl).
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]