ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> xsl-list
xsl-list
Re: [xsl] Error xsl:param may not be used here
by Ryan Beesley other posts by this author
Oct 14 2002 2:41PM messages near this date
Re: [xsl] Error xsl:param may not be used here | Re: [xsl] Retrieving unknown attribute values
----- Original Message -----
From: "Vasu Chakkera" <vasucv@[...].com> 
To: <xsl-list@[...].com> 
Sent: Monday, October 14, 2002 4:08 AM
Subject: Re: [xsl] Error xsl:param may not be used here


>  Ryan,
>  The problem is that your <xsl:param> is wrongly placed.<xsl:param> is a
top
>  level element ie, child of <xsl:stylesheet> element or if it is in a
>  template then it must be the immediate child of the <xsl:template>
element.
>  so in your case, because you have an <xsl:variable> element before the
>  <xsl:param> element, its reporting the error message.

Vasu wins the prize, but only slightly ahead of Jarno.

The problem was stemming from the fact that I had a variable placed before
the param.  I changed my variable to a param as well, and it works perfectly
now.  I'm concerned about any performance hit that may cause though.  Is it
a problem to declare too many params?  I had to change many other former
variables to params in the complete XSLT to make this work.

Thank you everyone for the speedy response.

Ryan Beesley
Rbeesley@[...].org
Founder, Atum Innovations



 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
Thread:
Vasu Chakkera
Ryan Beesley

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved