Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: [xsl] Repart generation with XSL Stylesheet

From: "Swati" <Swati@-------------->
To:
Date: 7/2/2002 1:50:00 AM
You could probably use custom taglibraries to apply stylesheets to 
      your xml data at server side
       
      -swati
      -------Original Message-------
       
      
      <DIV dir=ltr style="FONT-SIZE: 11pt" From: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
      <DIV dir=ltr style="FONT-SIZE: 11pt" Date: Tuesday, July 02, 
      2002 14:58:11
      <DIV dir=ltr style="FONT-SIZE: 11pt" To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
      <DIV dir=ltr style="FONT-SIZE: 11pt" Subject: Re: [xsl] 
      Repart generation with XSL Stylesheet
       Ranjith Kodikara wrote:

>We are developing a 
      information selling system for a chamber of commerce and
>we want to 
      generate reports for user requests. First we let users to select
>a 
      query criteria. Then I hope to generate an xml document; which is a 
      jsp
>file generated from the database, with xml content type. Then 
      at the moment
>my idea is to generate an html document by parsing 
      that xml file via an xsl
>stylesheet.
>

if you want the 
      browser to transform the XML into HTML, then no problem. 
If you want 
      to do that server side, you'll be in a bit more trouble 
because you're 
      doing that in JSP.

>Do you think this method is suitable? Then 
      can I write an xsl stylesheet
>with jsp.
>
What 
      for?

>If I generate html's with xml files using Xalan , when 
      users are generating
>reports doesnt the folder in the web server 
      get filled with html files?
>
No, if you don't save them to disk. 
      You just need to send the HTML to 
the browser.

However, I 
      insist that if you generate XML with your JSP and want to 
transform 
      the XML into HTML server side, you may have a hard time, 
especially if 
      you are a newbie to the JAXP API.

Tip: Generate the XML in a 
      StringBuffer, but do not output it. Transform 
it using whatever XSLT 
      engine you like, and then output the HTML. 
Content-type: 
      text/html.

Otherwise, you can send your XML and XSL to the browser 
      (use 
<?xsl-stylesheet ...?>) and let the browser do the 
      transform. This will 
work with Mozilla and IE6.0 
      only.


Antonio Fiol



XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list

.





	
	
	
	
	
	
	




____________________________________________________
  IncrediMail - Email has finally evolved - 
Click 
Here


transparent
Print
Mail
Digg
delicious
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent