[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

[xsl] applying same XSL to different XMLs


Subject: [xsl] applying same XSL to different XMLs
From: "Najmi, Jamal" <Jamal.Najmi@xxxxxxxxxxx>
Date: Tue, 16 Apr 2002 16:26:44 -0400

Hi, 

I want to be able to apply a spepicifc XSL to various XML via JSP.  In other
words I want to do something like:

%@taglib uri="xsl.tld" prefix="discovery" %>

<discovery:apply xsl="/xsl/GenericXSL5.xsl">
    <%@ include file="/xml/GenericXSL5.xml" %>
</discovery:apply> 

But the problem is that reference to the XML is hardcoded in JSP.  Is there
another way where I can apply the same XSL to various XMLs on the server and
send the output to the web client. 

What do you think about hardcoding the reference in the XMLs to the XSL file
and let the web browser so the transformation?  What are the drawbacks in
this solution?  

Thanks

Jamal

-----Original Message-----
From: Ming [mailto:myu@xxxxxxxx]
Sent: Tuesday, April 16, 2002 7:49 PM
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: [xsl] pass HttpServletRequest from xslt to java function


Hi,

In my stylesheet, I need to call a java function,
xmljsp:getXsltName(HttpServletRequest req). So, the method getXsltName needs
the
variable HttpServletRequest. Do you know any way that I can pass the request
from
my stylesheet to my java function?

I remember in Java Server Pages, the variable is just definded as request.
But
I don't know how to do it in XSLT stylesheet.

Thanks a lot for your help.

Ming


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

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



Current Thread
Keywords