xalan has been downloaded. while compiling it shows that the XSLTProcessor has not been compiled. Any sample programmes are available covering the above topic
Caroline Iux
Ranch Hand
Joined: May 14, 2001
Posts: 103
posted
0
Not sure what you want to know. If you need a code snippet to transform xml, here is something: ByteArrayOutputStream output = new ByteArrayOutputStream(); XSLTResultTarget resultTarget = new XSLTResultTarget( output ); XSLTProcessor processor = XSLTProcessorFactory.getProcessor(); StylesheetRoot parsedStylesheet = processor.processStylesheet( new XSLTInputSource( styleSheet ) ); processor.setStylesheet( parsedStylesheet ); processor.process( new XSLTInputSource( inputSource ), null, new XSLTResultTarget( output ) );
manj ananda
Greenhorn
Joined: Jun 14, 2001
Posts: 16
posted
0
You got a command line compiler, checked with it? before you move further. java org.apache.xalan.xslt.Processor -in filename -xsl filename if it works fine, then yours should,(are you processing them within servlets right?) i feel better to set path to xalanxxx_xxl.jar(class jar pack.) & not to the source path. You didn't mention the servlet engine etc., be bit more clear if needed more..