Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: passing parameters for predicate filter

From: "Chris Barber" <chris@----------.--.--.------>
To: 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








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