xml-xalan-j-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jean-guillaume.battag...@inexware.fr
Subject Where is org.apache.trax ?
Date Fri, 20 Jul 2001 11:12:22 GMT
<FONT face="Default Sans Serif, Verdana, Arial, Helvetica, sans-serif" size=2><div><DIV><FONT
face=Arial size=2>Hello.</FONT></DIV><DIV>&nbsp;</DIV><DIV><FONT
face=Arial size=2>I was using the code below to process a DOM Document with an XSL to generate
an HTML flow.</FONT></DIV><DIV><FONT face=Arial size=2>But with the
class org.apache.trax.Processor.</FONT></DIV><DIV>&nbsp;</DIV><DIV><FONT
face=Arial size=2>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.</FONT></DIV><DIV>&nbsp;</DIV><DIV><FONT
face=Arial>I suppose I should use jaxax.transform but how ?</FONT></DIV><DIV>&nbsp;</DIV><DIV><FONT
face=Arial size=2>Thanks for all.</FONT></DIV><DIV>&nbsp;</DIV><DIV><FONT
face=Arial size=2>Bye.</FONT></DIV><DIV>&nbsp;</DIV><DIV><FONT
face=Arial size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
Jean-Guillaume.</FONT></DIV><DIV>&nbsp;</DIV><DIV><FONT
face=Arial size=2>&nbsp;&nbsp; try<BR>&nbsp;&nbsp; {<BR>&nbsp;&nbsp;Document
doc = new Document(element);<BR>&nbsp;&nbsp;org.w3c.dom.Document docDom = new
org.jdom.output.DOMOutputter().output(doc); <BR>&nbsp;&nbsp;Processor processor
= Processor.newInstance("xslt");<BR>&nbsp;&nbsp; <BR>&nbsp;&nbsp;Templates
templates = processor.process(new InputSource("style.xsl"));</FONT></DIV><DIV>&nbsp;</DIV><DIV><FONT
face=Arial size=2>&nbsp;&nbsp;Transformer transformer = templates.newTransformer();<BR>&nbsp;&nbsp;
<BR>&nbsp;&nbsp;transformer.transformNode(docDom,new Result(out));<BR>&nbsp;}<BR></FONT></DIV></div></FONT>
Mime
View raw message