Subject: Re: Re: Re: Cannot process a result tree fragment as a node-set under XSLT 1.0 - My alternative don´t function
From: David Carlisle <davidc@xxxxxxxxx>
Date: Thu, 17 Apr 2008 13:53:46 +0100
|
<xsl:variable name="filter">
<xsl:for-each.... //Recurso[condition] (condition call to one
template!!)
</xsl:for-each>
</xsl:variable>
I can't fill that in as I don't know what program logic you need, but
that will make a result tree fragment containing some number of
variables.
I thought the question was to find the number of elements generated
which would be
<xsl:variable name="total" select="count(x:node-set($filter)/*)"/>
where you have defined xmlns:x="..." whatever namespace your xslt system
docuemnts is needed for this extension function.
David
|