use JSP custom tag
you write a JSP tag
you put your XML file in the body of the tag
then, in the implementation of hte Tag you instantiate an XSLT processor
you can specify the XSL either harcoding it in the implementation of hte tag
or as an attribute of your tag, like htis:
<marco:xmltag xslfile="myxsl.xsl">
<?xml version="1.0" encoding="ISO-8859-1"?>
<books>
<book isbn="123">
<title>Web Servers for Fun and Profit</title>
<quantity>10</quantity>
<price>$17.95</price>
</book>
<book isbn="456">
<title>Web Programming for Mobile
Devices</title>
<quantity>2</quantity>
<price>$38.95</price>
</book>
<book isbn="789">
<title>Duke: A Biography of the Java
Evangelist</title>
<quantity>25</quantity>
<price>$15.00</price>
</book>
</books>
</marco:xmltag>
i have done it long time ago (july 2000)...if you need help just give me a
call
br
marco
> -----Original Message-----
> From: ext Panos Konstantinidis [mailto:[EMAIL PROTECTED]]
> Sent: 04. January 2001 12:37
> To: [EMAIL PROTECTED]
> Subject: Re: Using XML Data in JSP File
>
>
> Why do you need to use jsp to do it? It would be easier to
> use XSL. If you
> want you can use XSL commands and save it in a .jsp file (I
> guess this would
> work - I am not entirely sure though). Then call this .jsp
> file as if you
> were calling a proper .jsp file. If you need any more help of how to
> transform XML into HTML usign XSLT send me an e-mail. This
> mailing list is
> only for jsp related stuff.
>
> Hope this helps.
>
>
> >From: Deepak Kumar <[EMAIL PROTECTED]>
> >Reply-To: A mailing list about Java Server Pages specification and
> > reference <[EMAIL PROTECTED]>
> >To: [EMAIL PROTECTED]
> >Subject: Using XML Data in JSP File
> >Date: Thu, 4 Jan 2001 02:28:52 -0800
> >
> >Hi,
> >
> >Suppose the follwing XML Document.
> >
> ><?xml version="1.0" encoding="ISO-8859-1"?>
> > <books>
> > <book isbn="123">
> > <title>Web Servers for Fun and Profit</title>
> > <quantity>10</quantity>
> > <price>$17.95</price>
> > </book>
> > <book isbn="456">
> > <title>Web Programming for Mobile
> >Devices</title>
> > <quantity>2</quantity>
> > <price>$38.95</price>
> > </book>
> > <book isbn="789">
> > <title>Duke: A Biography of the Java
> >Evangelist</title>
> > <quantity>25</quantity>
> > <price>$15.00</price>
> > </book>
> > </books>
> >
> >Now if want to user this data in JSP file to generate
> >the HTML page. If anybody knows how to use it in JSP
> >file please tell me. My idea is generate the XML
> >document using servlet and then user this data in JSP
> >file to generate the HTML page.
> >
> >Thanks in advance
> >Deepak Kumar
> >
> >
> >
> >__________________________________________________
> >Do You Yahoo!?
> >Yahoo! Photos - Share your holiday photos online!
> >http://photos.yahoo.com/
> >
> >=============================================================
> ==============
> >To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> >JSP-INTEREST".
> >For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
> >DIGEST".
> >Some relevant FAQs on JSP/Servlets can be found at:
> >
> > http://java.sun.com/products/jsp/faq.html
> > http://www.esperanto.org.nz/jsp/jspfaq.html
> > http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
> > http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>
> ______________________________________________________________
> ___________
> Get Your Private, Free E-mail from MSN Hotmail at
http://www.hotmail.com.
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets