File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes XML and Related Technologies and the fly likes XML /XSL/SERVLET Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of Practical Unit Testing with TestNG and Mockito this week in the Testing forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Reply Bookmark "XML /XSL/SERVLET" Watch "XML /XSL/SERVLET" New topic
Author

XML /XSL/SERVLET

jijo kan
Greenhorn

Joined: Jun 20, 2001
Posts: 1
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
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
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..

This should help you,
Regards
KrisVs

SCJP2, IBM XMLC, SCWCD
 
IntelliJ Java IDE
 
subject: XML /XSL/SERVLET
 
Threads others viewed
OOP-2
Upgrade today - Sunday the 10th at 2pm to 5pm
Charlotte, NC - J2EE/Weblogic/Web Services Java developer
Journal Signup Broken?
2 dates per post?
IntelliJ Java IDE