xml-xalan-j-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gary L Peskin <ga...@firstech.com>
Subject Re: Where is org.apache.trax ?
Date Fri, 20 Jul 2001 14:46:08 GMT
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));
>  }

Mime
View raw message