You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by Stefano Mazzocchi <st...@apache.org> on 2000/05/18 15:51:53 UTC

Xalan bug?

Since many people recently complained about my cocoon slideshow example
that were not functional, I tested it and found something puzzling. In
my stylesheet I previously used

 <xsl:apply-templates select="//section[$section]"/>

where $section is an xsl:param got from the request parameter. This
doesn't seem to work anymore since it applies the templates on _ALL_
sections, ignoring the position restriction.

I changed this to 

 <xsl:apply-templates select="//section[position() = $section]"/>

and works as expected and so it does

 <xsl:apply-templates select="//section[1]"/>

so, it appears that Xalan is ignoring variable expansion in the reduced
xpath syntax.

Hope this helps.

-- 
Stefano Mazzocchi      One must still have chaos in oneself to be
                          able to give birth to a dancing star.
<st...@apache.org>                             Friedrich Nietzsche
--------------------------------------------------------------------
 Missed us in Orlando? Make it up with ApacheCON Europe in London!
------------------------- http://ApacheCon.Com ---------------------