Consider the JSTL.

JSTL supports XML and XSLT processing.


Cheers,

Kunal

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, 14 April 2004 16:14
To: [EMAIL PROTECTED]
Subject: redirecting XML/XSLT to JSP or Vice Versa

Hi
In the application I am working with data is in the form of XML for some
screens .But since the architecture uses beans and jsp.I was wondering how
to integrate JSP/Struts Architecture with XSLT/XML.
My requirement is either transform the xsl template to JSP or vice versa.
XSL/XML -> JSP -> HTML or  JSP -> XSL/XML -> HTML
is this possible??
also I was planning to use the <jsp:include> tag eg <jsp:include
page="http://127.0.0.1:9080/XSLTServlet"; />
This would give a transformed page.
is this ok?? 
Now when i started doing the basic transformation on an xsl derived from a
JSP PAge came across an error 
"The prefix "bean" for element "bean:message" is not bound."
can this be resolved.
regards
Alan


The XSL is as follows

<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
    version="1.0"
    xmlns:xalan="http://xml.apache.org/xslt"; >
    <xsl:output method="html"/>
<xsl:template match="/">
<html>
    <head><title></title></head>
    <body><table>

<tr valign="bottom">
<td style="width: 145 px;"><span class="labelitem">
<bean:message key="label.views"/></span><br/>
<td valign="top" style="width: 85 px; padding-left: 2 px;"><span
class="labelitem">
<bean:message key="label.dateRated"/>
</span><br/> <span class="normalitem"><xsl:value-of
select="/DATA/DATE"/></span></td>
        <td valign="top" style="width: 216 px;"><span
class="labelitem"><bean:message key="label.ratingCo"/></span><br/>
    <span class="normalitem"><xsl:value-of
select="/DATA/COMPANY"/></span></td>
        <td valign="top" style="width: 126 px;"><span
class="labelitem"><bean:message key="label.username"/></span><br/>
    <span class="normalitem"><xsl:value-of select="/DATA/USER"/></span></td>
        <td valign="top" style="width: 146 px;"><span
class="labelitem"><bean:message key="label.expiringContractNo"/></span><br/>
    <span class="normalitem"><xsl:value-of
select="/DATA/NUMBER"/></span></td>
        </tr>


</table>

</body>
</html>

</xsl:template>
</xsl:stylesheet>


MASTEK
"Making a valuable difference"
Mastek in NASSCOM's 'India Top 20' Software Service Exporters List.
In the US, we're called MAJESCO

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Opinions expressed in this e-mail are those of the individual and not that
of Mastek Limited, unless specifically indicated to that effect. Mastek
Limited does not accept any responsibility or liability for it. This e-mail
and attachments (if any) transmitted with it are confidential and/or
privileged and solely for the use of the intended person or entity to which
it is addressed. Any review, re-transmission, dissemination or other use of
or taking of any action in reliance upon this information by persons or
entities other than the intended recipient is prohibited. This e-mail and
its attachments have been scanned for the presence of computer viruses. It
is the responsibility of the recipient to run the virus check on e-mails and
attachments before opening them. If you have received this e-mail in error,
kindly delete this e-mail from all computers.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to