Subject: RE: [xsl] XALAN - obtaining the -XSL stylesheet name? From: "Tim Watts" <timw@xxxxxxx> Date: Thu, 29 Mar 2001 14:01:03 +1000 |
Robert, Do you mean calling a template contained in an external stylesheet with a parameter of the current xslt's name? I can't see how this would be different from the normal passing of params, such as <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:include href="external-stylesheet.xsl" /> <xsl:template name="internal-template-name"> ... <xsl:call-template name="external-template-name"> <xsl:with-param name="xsl-name">current-xsl-name.xsl</xsl:with-param> </xsl:call-template> ... </xsl:template> </xsl:stylesheet> which calls... <xsl:template name="external-template-name"> <xsl:param name="xsl-name" /> ... </xsl:template> from the external template Tim Watts -----Original Message----- From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx]On Behalf Of Robert Nicholson Sent: Thursday, 29 March 2001 1:13 PM To: Xsl-List Subject: [xsl] XALAN - obtaining the -XSL stylesheet name? I have some common xsl templates factored into one stylesheet but in here I need to generate HTML that uses the specific XSL stylesheet name. In this case it will be the stylesheet who is importing the common stylesheet. So with xalan is there any way in a stylesheet to know which is the -XSL stylesheet parameter? is there a stylesheet parameter set for this? Basically my common stylesheet defines a body tag and I want to use an onLoad event that references the current stylesheet name and passes that to a javascript event function. 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 |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] XALAN - obtaining the -XSL st, Robert Nicholson | Thread | RE: [xsl] XALAN - obtaining the -XS, Robert Nicholson |
RE: [xsl] Parameter in "xsl:include, Joshua . Kuswadi | Date | RE: [xsl] XALAN - obtaining the -XS, Robert Nicholson |
Month |