You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-users@xalan.apache.org by Gary L Peskin <ga...@firstech.com> on 2001/07/20 16:46:08 UTC

Re: Where is org.apache.trax ?

org.apache.trax.Processor has been replaced by
javax.xml.transform.TransformerFactory.  Processor.process is now
TransformerFactory.newTemplates.  For examples on using JAXP, see
http://xml.apache.org/xalan-j/usagepatterns.html

Gary

jean-guillaume.battaglia@inexware.fr wrote:
> 
> Hello.
> 
> I was using the code below to process a DOM Document with an XSL to
> generate an HTML flow.
> But with the class org.apache.trax.Processor.
> 
> Since this class no longer exists in xalan.jar, i would like to know
> the last version of xalan where this package was and i also would like
> to know how to make the same thing (processing DOM with XSL) with
> xalan.jar 2.2 D6.
> 
> I suppose I should use jaxax.transform but how ?
> 
> Thanks for all.
> 
> Bye.
> 
>                              Jean-Guillaume.
> 
>    try
>    {
>   Document doc = new Document(element);
>   org.w3c.dom.Document docDom = new
> org.jdom.output.DOMOutputter().output(doc);
>   Processor processor = Processor.newInstance("xslt");
> 
>   Templates templates = processor.process(new
> InputSource("style.xsl"));
> 
>   Transformer transformer = templates.newTransformer();
> 
>   transformer.transformNode(docDom,new Result(out));
>  }