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

Re: Visibility of parameters in templates

Subject: Re: Visibility of parameters in templates
From: "Tangi Vass" <tangivass@xxxxxxxxxxxxxx>
Date: Fri, 26 Nov 1999 11:20:47 +0100
template visibility parameters
I've got no problem with visibility of parameters in LotusXSL 0.18.5.
I can't help you very much as your stylesheet is incomplete and lacks the
definition of the 'Slide' named template.
Are you sure there is no mispelling in the declaration of the 'extension'
parameter?

Tangi

----- Original Message -----
From: <heiko.grussbach@xxxxxxxx>
To: <xsl-list@xxxxxxxxxxxxxxxx>
Sent: Friday, 26 November, 1999 10:13
Subject: Visibility of parameters in templates


>
> Assume I have the following XSL:
>
> <xsl:param name="right" select="//NAVIGATION//RIGHT_ICON/@REF"/>
>
> <xsl:template match="//SLIDE">
>      <xsl:variable name="extension">.html</xsl:variable>
>      <xsl:for-each select="document(@REF)/*">
>           <xsl:call-template name="Slide">
>                <xsl:with-param name="$extension"/>
>                <xsl:with-param name="$right"/>
>           </xsl:call-template>
>      </xsl:for-each>
> </xsl:template>
> </xsl:stylesheet>
>
> Now, inside the Slide template, I can access $right, but not $extension.
Why? Seems that extension is a local variable, but when I call the template
> "Slide", $extension
> should be well defined and not present any problem. So why do I get
VariableReference out of context (in Lotus 0.18.5).
> In this example, I could of course make extension global, but what if
$extension should select something relative to the currently processed SLIDE
> node?
>
> Any ideas?
>
> Regards
>
> Heiko Grussbach
> Heiko.Grussbach@xxxxxxxx
>
>
>  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.