Return-Path: Delivered-To: apmail-xml-xalan-cvs-archive@xml.apache.org Received: (qmail 37036 invoked by uid 500); 13 Sep 2001 18:48:01 -0000 Mailing-List: contact xalan-cvs-help@xml.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: Delivered-To: mailing list xalan-cvs@xml.apache.org Received: (qmail 37020 invoked from network); 13 Sep 2001 18:48:01 -0000 Date: 13 Sep 2001 18:43:20 -0000 Message-ID: <20010913184320.40017.qmail@icarus.apache.org> From: curcuru@apache.org To: xml-xalan-cvs@apache.org Subject: cvs commit: xml-xalan/java/xdocs/sources/xsltc xsltc_trax.xml X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N 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:gthb@dimon.is 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 @@

The following example illustrates the three basic steps involved in performing a transformation.

// 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:

-

(1) org.apache.xalan.xsltc.runtime.TransformerFactoryImpl -
+

(1) org.apache.xalan.xsltc.trax.TransformerFactoryImpl -
    the Translet implementation of a SAXTransformerFactory.

(2) org.apache.xalan.xsltc.runtime.TransletTemplates -     the Translet implementation of a Templates object.

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 @@

G. Todd Miller has begun integrating the translet with the TrAX/JAXP 1.1 API. See The Translet API & TrAX. 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.

-

When you use the JAXP 1.1 API to run &xslt4j;, the javax.xml.transformer.TransformerFactory system property is set to org.apache.xalan.processor.TransformerFactoryImpl. 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 org.apache.xalan.xsltc.runtime.TransformerFactoryImpl. For information on setting this and related system properties designating XML parsere and XSL transformer, see Plugging in a Transformer and XML parser.

+

When you use the JAXP 1.1 API to run &xslt4j;, the javax.xml.transform.TransformerFactory system property is set to org.apache.xalan.processor.TransformerFactoryImpl. 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 org.apache.xalan.xsltc.trax.TransformerFactoryImpl. For information on setting this and related system properties designating XML parsere and XSL transformer, see Plugging in a Transformer and XML parser.

To Use the JAXP 1.1 API to perform transformations with translets do the following:

    -
  1. Set the javax.xml.transformer.TransformerFactory system property as indicated above.

  2. +
  3. Set the javax.xml.transform.TransformerFactory system property as indicated above.

  4. Instantiate a TransformerFactory.

  5. 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 @@

    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: xalan-cvs-unsubscribe@xml.apache.org For additional commands, e-mail: xalan-cvs-help@xml.apache.org