[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: XALAN - obtaining the -XSL stylesheet name?

Subject: RE: XALAN - obtaining the -XSL stylesheet name?
From: "Tim Watts" <timw@xxxxxxx>
Date: Thu, 29 Mar 2001 14:01:03 +1000
xsl name
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:  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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.