This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re[2]: How to determine the 'first' time a template ha
- To: xsl-list at lists dot mulberrytech dot com
- Subject: Re[2]: [xsl] How to determine the 'first' time a template ha
- From: Steven dot C dot Kienle at am dot pnu dot com
- Date: Tue, 20 Mar 2001 07:29:22 -0500
- Reply-To: xsl-list at lists dot mulberrytech dot com
I would include the <script src=.../> automatically in the transform
and not in the named template. I realize that it may cause the script
to be included when it doesn't need to be, but doing so makes the XSLT
code simplier.
Steve
______________________________ Reply Separator _________________________________
Subject: Re: [xsl] How to determine the 'first' time a template has b
Author: Chris Gow <cgow@digitalfairway.com> at Internet-America
Date: 19-03-2001 4:03 PM
Sure...The template is going to need to reference an external JavaScript
file, and I figured instead of having a number of extra <script src=.../>
tags that would include the same file, I would only do the necessary
include the first time. Its not a problem that it doesn't work, it is just
an extra step that the users of this template are going to have to do.
--Chris
At 09:29 PM 3/19/01 +0100, you wrote:
>On Mon, Mar 19 '01 at 15:06, Chris Gow wrote:
> > I was wondering if it is possible to determine if a template has been
> > called previously. I would like to take a special action the first time
> > the template is called. By called, I mean through an <xsl:call-template>
> > tag. I would prefer not to use mode or a special parameter in this case.
>This is not possible, but if you would tell us, why you want to take
>this special cation, we might be able to offer you a working sollution
>...
>
>Cu,
> Goetz.
===============================================================================
The only person who ever got work done by Friday was Robinson Crusoe.
-------------------------------------------------------------------------------
Chris Gow Digital Fairway Corporation
Software Engineer 180 Attwell Drive Suite 360
cgow@digitalfairway.com Etobicoke, ON M9W 6A9
http://www.digitalfairway.com 416.628.7534
===============================================================================
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list