Philipp Kraus wrote:
> 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>
I think you simply want to use the "select" attribute of "with-param", as in
<xsl:with-param name="query"
select="sectiondef[@kind='public-func']"/>
Then the below template should work.
> <xsl:template name="section">
> <xsl:param name="query" required="yes"/>
> <xsl:apply-templates select="$query">
> <xsl:sort select="name"/>
> </xsl:apply-templates>
>
> do other things
> </xsl:template>
But seeing all those named template being called with parameters I
wonder whether you could not simply use template matching, perhaps with
modes instead, to leverage the power of XSLT.