dleslie 01/05/17 09:42:06
Modified: java/samples/translets
JAXPTransletMultipleTransformations.java
JAXPTransletOneTransformation.java
Log:
Fixed key name for TransformerFactory system property.
Revision Changes Path
1.4 +2 -2
xml-xalan/java/samples/translets/JAXPTransletMultipleTransformations.java
Index: JAXPTransletMultipleTransformations.java
===================================================================
RCS file:
/home/cvs/xml-xalan/java/samples/translets/JAXPTransletMultipleTransformations.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- JAXPTransletMultipleTransformations.java 2001/05/17 16:08:24 1.3
+++ JAXPTransletMultipleTransformations.java 2001/05/17 16:41:59 1.4
@@ -85,7 +85,7 @@
static void doTransform(Templates translet, String xmlInURI, String
htmlOutURI)
throws TransformerException
{
- // For each transformation, instantiate a new Transformer, and perform
+ // For each transformation, instantiate a new Transformer, and perform
// the transformation from a StreamSource to a StreamResult;
Transformer transformer = translet.newTransformer();
transformer.transform( new StreamSource(xmlInURI),
@@ -98,7 +98,7 @@
{
// Set the TransformerFactory system property to generate and use
translets.
- String key = "javax.xml.transformer.TransformerFactory";
+ String key = "javax.xml.transform.TransformerFactory";
String value = "org.apache.xalan.xsltc.runtime.TransformerFactoryImpl";
Properties props = System.getProperties();
props.put(key, value);
1.4 +2 -1
xml-xalan/java/samples/translets/JAXPTransletOneTransformation.java
Index: JAXPTransletOneTransformation.java
===================================================================
RCS file:
/home/cvs/xml-xalan/java/samples/translets/JAXPTransletOneTransformation.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- JAXPTransletOneTransformation.java 2001/05/17 16:08:26 1.3
+++ JAXPTransletOneTransformation.java 2001/05/17 16:42:01 1.4
@@ -87,7 +87,7 @@
{
// Set the TransformerFactory system property to generate and use a
translet.
- String key = "javax.xml.transformer.TransformerFactory";
+ String key = "javax.xml.transform.TransformerFactory";
String value = "org.apache.xalan.xsltc.runtime.TransformerFactoryImpl";
Properties props = System.getProperties();
props.put(key, value);
@@ -99,6 +99,7 @@
// Instantiate the TransformerFactory, and use it along with a
SteamSource
// XSL stylesheet to create a Transformer.
TransformerFactory tFactory = TransformerFactory.newInstance();
+ System.out.println(tFactory.getClass().getName());
Transformer transformer = tFactory.newTransformer(new
StreamSource(xslInURI));
// Perform the transformation from a StreamSource to a StreamResult;
transformer.transform(new StreamSource(xmlInURI),
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]