Altova Mailing List Archives>Archive Index >comp.text.xml Archive Home >Recent entries >Thread Prev - Re: Specify an element in a nodeset directly >Thread Next - Re: Specify an element in a nodeset directly Re: Specify an element in a nodeset directlyTo: NULL Date: 10/3/2006 11:28:00 AM
Martin Honnen wrote:
> eric.goforth@g... wrote:
>
>
> > <xsl:value-of
> > select="$myblahs/blah[/xpath1/xpath2/someintegervalue]/yada"/>
>
> $myblahs/blah[/xpath1/xpath2/someintegervalue = position()]/yada
>
> --
>
> Martin Honnen
> http://JavaScript.FAQTs.com/
Martin,
Hmmm, that's not working for me. If I put in a "1" or a "2" it works,
but not with the "variable".
In my case
<xsl:apply-templates select="thingsummary">
<xsl:with-param name="furballs"
select="/xpath1/xpath2/furballssummary"></xsl:with-param>
</xsl:apply-templates>
</xsl:template>
<xsl:template match="thingsummary">
<xsl:param name="furballs"/>
<xsl:apply-templates select="thing[(position() mod 2)=1]">
<xsl:with-param name="furballs"
select="$furballs"></xsl:with-param>
</xsl:apply-templates>
</xsl:template>
<xsl:template match="thing[(position() mod 2)=1]">
<xsl:param name="furballs"/>
<!-- This works-->
<xsl:value-of select="thingintegerfield1"/>
<!-- This works-->
<xsl:value-of select="$furballs/furball[1]/furballmember"/>
<!-- This works-->
<xsl:value-of select="$furballs/furball[1=
position()]/furballmember"/>
<!-- This does not work-->
<xsl:value-of
select="$furballs/furball[1=thingintegerfield1]/furballmember"/>
</xsl:template>
Thanks
Eric
| ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
