• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Devaka Cooray
  • Knute Snortum
  • Paul Clapham
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Frits Walraven
Bartenders:
  • Ganesh Patekar
  • Tim Holloway
  • salvin francis

XML /XSL/SERVLET  RSS feed

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
xalan has been downloaded. while compiling it shows that the XSLTProcessor has not been compiled. Any sample programmes are available covering the above topic
 
Ranch Hand
Posts: 103
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ) );
 
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
No matter. Try again. Fail again. Fail better. This time, do it with this tiny ad:
how do I do my own kindle-like thing - without amazon
https://coderanch.com/t/711421/engineering/kindle-amazon
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!