SunQuest
           XML Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreXML Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
  #1  
Old October 24th, 2003, 09:00 AM
Sm00ve Sm00ve is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Posts: 78 Sm00ve User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 6
xml/xslt/jsp usage patterns.

Hello,
I have a question regarding xml, xlst, and jsp.

I'm using...
WebSphere 4.04
Xerces 2.5.1
Xalan 2.5.1

I am currently developing an application that retreives an xml document from a database, applies any of several different xslt documents to the xml file and displays it inside of a jsp. I have done some research and found that most people have the xml and xsl documents as files and use a Transform.transform(Source, OutputStream) to display the transformed xml document.

My questions are...

1. Since my xml document lives in a database is there a way to pass the xml document object to the transformer, or do I HAVE to save it as a file to the server's file system and then pass the path to the 'temporary' document as an argument?

2. The all of the transformer examples I have looked at create an output stream to get the transformed data to the client. Is there anyway I can capture the output and store it into a String or StringBuffer? I realize this is more of an IO issue but I am trying to generate this output to an object that can placed into the session and displayed inside of a jsp page.

Based on what I seen I have to treat the generation of the transformed document as I would the generation of an image. (i.e. I create a jsp with an include tag that calls a url with arguments. That url is to a servlet/action class combo that retrieves the xml transforms it and just spits the data back to the client via the output stream.)

3. Is this a "best practice", acceptable solution or am I going down a wrong path?

Just looking for validation and/or other options.

Thanks for your time.

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreXML Programming > xml/xslt/jsp usage patterns.


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway