• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

XSLT questions

 
Ranch Hand
Posts: 105
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi guys, I have two questions.
1. If I want to transform my XML into HTML on the server, can I use Xalan?
2. If so, and I use my XML document as input, my XSL document for the transformation, and create an HTML file as output, how do you get rid of the HTML file after the client has used it?
For instance, if the client does a search and I use XSL to write the HTML file to display the results, then I have this HTML file left on the server. Will I have to go in manually every so often to delete them or is there a standard way to do this?
Obviously I am a beginner, so I must be missing some basic concepts.
Thanks for any help.
Howard
[This message has been edited by Howard Ralston (edited October 30, 2001).]
 
Author & Gold Digger
Posts: 7617
6
IntelliJ IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Howard
1. Yes you can. More info at http://xml.apache.org/xalan-j/index.html
2. It's not necessary to create a file on the server, you can directly send the output of the transformation to the outputstream of a Socket for example. By doing so, no HTML file are generated on the server's filesystem and thus no manual cleaning is necessary.
Here is an exerpt of what you could do:

HIH
------------------
Valentin Crettaz
Sun Certified Programmer for Java 2 Platform
 
Howard Ralston
Ranch Hand
Posts: 105
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks Valentin, that helps a lot!
Howard
reply
    Bookmark Topic Watch Topic
  • New Topic