Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


passing parameters for predicate filter

From: "David Schwartz" <drs58@---.--->
To: NULL
Date: 3/2/2004 7:29:00 AM
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






transparent
Print
Mail
Digg
delicious
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent