Here is the script to use the new Xalan engine for XSL transforms:
This goes in system.script.xml in the get() method.
===
   tFactory = Packages.javax.xml.transform.TransformerFactory.newInstance();

   xmlSource = new Packages.javax.xml.transform.dom.DOMSource(xml);
   url = new Packages.java.net.URL(layout);
   stream = url.openStream();
   xslSource = new Packages.javax.xml.transform.stream.StreamSource(stream);

   // Generate the transformer.
   transformer = tFactory.newTransformer(xslSource);
   // Perform the transformation, sending the output to the response.
   transformer.transform(xmlSource,new
Packages.javax.xml.transform.stream.StreamResult(doc));




----- Original Message -----
From: Jason Prescott Wohlford


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to