![]() |
![]() | ![]() | ![]() | Altova Mailing List Archives>Archive Index >microsoft.public.xsl Archive Home >Recent entries >Thread Prev - Re: passing parameters for predicate filter [Thread Next] Re: passing parameters for predicate filterTo: NULL Date: 3/2/2004 4:41:00 PM ... and (as Oleg pointed out) the 'not so obvious' issues with the XPath statements. If you get Xselerator you'll be able to step through the stylesheet execution and inspect the XPath matches and parameter values. Chris. "Chris Barber" <chris@b...> wrote in message news:%23fhJT1GAEHA.3184@T...... Place your param as a child of the stylesheet so that the param value will be set (if you are passing params to the stylesheet). You can then reference it from within any template. Chris. "David Schwartz" <drs58@m...> wrote in message news:%23yeZrsGAEHA.2348@T...... I'm calling a template and passing it parameters for it to use in a predicate filter. Bottomline, nothing happens: no errors and no output. When I replace the variables with literals in just the filter, it works just fine. Here's the beginning of the called template where I'm attempting to use variables in the filter: <xsl:template name="photo_viewer"> <xsl:param name="sport_id">s_01</xsl:param> <xsl:param name="current_day">monday</xsl:param> <xsl:for-each select="sport[@id='{$sport_id}']/pict[day = '{$current_day}']"> ******* this isn't working <xsl:variable name="current_position" select="position()"/> <xsl:variable name="last_position" select="last()"/> <redirect:write file="../html/{$sport_id}_{$current_day}_{$current_position}.html"> <html lang="en-us"> Any thoughts? Thanks in advance, David | ![]() | ![]() | ![]() |
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | |||||
|
