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

xsl:param may not be used here

Subject: xsl:param may not be used here
From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx (by way of B. Tommie Usdin)
Date: Mon, 27 Aug 2001 16:16:36 -0400
pass param to msxml script
From: "Manny Hellstern" <mhellste@xxxxxxxxxxx>
To: XSL-List@xxxxxxxxxxxxxxxxxxxxxx
Subject: xsl:param may not be used here
Date: Mon, 27 Aug 2001 19:36:32 
Mime-Version: 1.0
Content-Type: text/plain; format=flowed
Message-ID: <F14Yj7XGeFaatao8KK800006ac7@xxxxxxxxxxx>
X-OriginalArrivalTime: 27 Aug 2001 19:36:32.0808 (UTC) FILETIME=[9385EA80:01C12F2F]


Can anyone tell me why I get the message shown in the email subject line?  
In the XSL snippet below, my goal is to pass in the value for the the 
parameter "filter" based on selections made from an HTML page and have the 
XSL file select and transform a sub-set of XML nodes to fill in the 
"innerHTML" property of a DIV tag. The XSL file works without the 
<xsl:param> tag:

<xsl:apply-templates select="//SECTION[@Id='Terms']" />

but as soon as I try to introduce <xsl:param ... it dies.

I haven't figured out how I'm going to set the parameter from the HTML page 
just yet since I can't get the parameter to work when it is hard coded.  Any 
insight into how to do that would also be welcome.

XSL file:

<xsl:stylesheet xmlns:xsl="http://www.w3.org/TR/WD-xsl">
<xsl:param name="filter" select="//SECTION[@Id='Terms']" />
<xsl:template match="/">
  <xsl:apply-templates select="$filter" />
  I have templates in this section

Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list

Current Thread


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.
First Name
Last Name
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.