xsl-list
[Top] [All Lists]

Re: Re: Re: [xsl] Cannot process a result tree fragment as a node-set under XSLT 1.0 - My alternative don´t function

2008-04-17 05:55:02


<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

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>