Hi,
I think this should be asked on [EMAIL PROTECTED]
(XSLT questions) - there is far more people to ask..
> <xsl:template name="someTemplate">
>
> <xsl:call-template name="callMe">
> <xsl:with-param
> name="location">/section/data/stuff</xsl:with-param>
> </xsl:call-template>
>
> </xsl:template>
>
>
> <xsl:template name="callMe">
> <xsl:param name="location"/>
>
> <xsl:for-each select="$location">
> <!-- some content -->
>
> </xsl:for-each>
> </xsl:template>
>
>
> ---- what's wrong; the "location" parameter is passed
> correctly and can be debugged using a value-of
> instruction, however if I want to use it within a
> for-each, it isn't allowed for some reason - why?
>
I don't know it exactly, but I have had similar problem and this is what I
think:
for-each takes a 'node-set-expression' in atribute 'select', and it does it
in one step -- so one and only thing is that '$location' is transformed into
the parameter value ('/selection/data/stuff', in this case).
There is an extending function node-set() (or similar, look at the spec.) in
Xalan2. So:
> <xsl:for-each select="node-set($location)">
> <!-- some content -->
>
> </xsl:for-each>
will return a node-set for your expression.
It worked for me (but it was a time ago), so please check for details for
yourself. I hope this will help you.
Bye,
Roman
---------------------------------------------------------------------
In case of troubles, e-mail: [EMAIL PROTECTED]
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]