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

Re: sending parameters with apply-templates doesn't wo

Subject: Re: sending parameters with apply-templates doesn't work?
From: "Mattias Konradsson" <preacher@xxxxxxxxxxx>
Date: Wed, 17 Jul 2002 20:17:57 +0200
Re:  sending parameters with apply-templates doesn't wo

> The syntax is valid and should work, but I think
> you're running into problems because of document()
> in the select -- this matches the root node of
> the document in $querystr, *not* the bookmarkedcategories
> nodes. Do you have a template
> for the root node that also has the param?
> Something like this:
>
> <xsl:template match="/">
>  <xsl:param name="selectedcategory">
>  <xsl:apply-templates>
>   <xsl:with-param name="selectedcategory" select="$selectedcategory"/>
>  </xsl:apply-templates>
> </xsl:templates>
>
> If not, what is happening is that the param isn't getting
> passed to the template for bookmarkedcategories.
>
> Sara

That shouldn't be a problem, the document function returns  a nodeset with
bookmarkedcategories as root... and the rest of that template gets rendered
correctly, and
there's no collision of parameters either... sigh I sure hope this is human
error rather than the parser :)

best regards
---
Mattias Konradsson


 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.