P
Philipp Kraus
Hello,
I have got a problem with a query, that is passend by a parameter.
See this two templates
<xsl:call-template name="section">
<xsl:with-param name="query">
<xsl:value-of select="sectiondef[@kind='public-func']"/>
</xsl:with-param>
</xsl:call-template>
<xsl:template name="section">
<xslaram name="query" required="yes"/>
<xsl:apply-templates select="sectiondef[@kind='public-func']">
<xsl:sort select="name"/>
</xsl:apply-templates>
do other things
</xsl:template>
I have set up the query on the second template equal / fixed, this
works, if I now
subsitute the select query on apply to
<xsl:template name="section">
<xslaram name="query" required="yes"/>
<xsl:apply-templates select="$query">
<xsl:sort select="name"/>
</xsl:apply-templates>
do other things
</xsl:template>
The apply results 0 nodes and this does not work anymore. So I would
push a query to the template and call in the template an apply with
this query.
Thanks
Phil
I have got a problem with a query, that is passend by a parameter.
See this two templates
<xsl:call-template name="section">
<xsl:with-param name="query">
<xsl:value-of select="sectiondef[@kind='public-func']"/>
</xsl:with-param>
</xsl:call-template>
<xsl:template name="section">
<xslaram name="query" required="yes"/>
<xsl:apply-templates select="sectiondef[@kind='public-func']">
<xsl:sort select="name"/>
</xsl:apply-templates>
do other things
</xsl:template>
I have set up the query on the second template equal / fixed, this
works, if I now
subsitute the select query on apply to
<xsl:template name="section">
<xslaram name="query" required="yes"/>
<xsl:apply-templates select="$query">
<xsl:sort select="name"/>
</xsl:apply-templates>
do other things
</xsl:template>
The apply results 0 nodes and this does not work anymore. So I would
push a query to the template and call in the template an apply with
this query.
Thanks
Phil