Hi
ok....here is a brief explanation...
- you have to write your own JSP Custom tags that fetches its body (the XML
content of the page) and sends it to an XSLT processor
- ideally, your JSP Tag has an attribute that specifies which stylesheet to
use....
then, everything is ready for writing JSP in XML....below is a simple
example
<marco:xmltag xsl="myfile.xsl">
<?xml version="1.0"?>
<page>
<content>A Simple Example</content>
</page>
</marco:xmltag>
in the java code of your JSP Tag you have to write the code for fetching the
content (getBodyContent() )
then you instantiate an XSLTProcessor (XSLTProcessor proc = new
XSLTProcessor() )
then the processor does the rest (proc.process(xml,xsl,out) ) where out is
JspWriter (you got it using JspWriter writer =
getBodyContent().getEnclosingWriter()
and that's it
hope that this helps
anyway, you can check also this sites:
- http://jsptags.com
- http://jakarta.apache.org
they have much staff about JSP Custom Tags
regards
marco
> -----Original Message-----
> From: EXT Ganesh N.M [mailto:[EMAIL PROTECTED]]
> Sent: 27. October 2000 0:49
> To: [EMAIL PROTECTED]
> Subject: Please Give Samples for JSP-XML-XSL
>
>
> Hi All,
>
> Please help me out by giving me some sample codes and
> explanations for the
> use of XML, XSL in JSP.
>
> Thanx in Advance.
>
>
> Ganesh
>
> ==============================================================
> =============
> To unsubscribe: mailto [EMAIL PROTECTED] with body:
> "signoff JSP-INTEREST".
> 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".
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