Ok, but the filter is too into xsl:for-each sentence
<xsl:variable name="filter" select="//RecursoEx1"/>
<xsl:for-each select="$filter">
<xsl:variable_1>
<xsl:call-template name="str:to-upper"><xsl:with-param name="text"
select="$titulo"></xsl:with-param></xsl:call-template>
</xsl:variable_1>
<xsl:variable_2>
<xsl:call-template name="str:to-upper"><xsl:with-param name="text"
select="TITULO"></xsl:with-param></xsl:call-template>)
</xsl:variable_2>
<xsl:if test="contains($variable_1,$variable_2)">
<p><xsl:value-of select="TITULO"></p>
</xsl:if>
</xsl:for-each>
I need to count only those records that meet with the condition
contains(<xsl:call-template name="str:to-upper"><xsl:with-param
name="text" select="$titulo"></xsl:with-param></xsl:call-template>,<xsl:
call-template name="str:to-upper"><xsl:with-param name="text" select="
TITULO"></xsl:with-param></xsl:call-template>)
<xsl:variable name="total" select="count(x:node-set($filter)/*)"/>
will count all records ......
Thank you so much,
Alexander
----Mensaje original----
De: davidc(_at_)nag(_dot_)co(_dot_)uk
Recibido: 17/04/2008 14:53
Para: <xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com>
Asunto: Re: Re: Re: [xsl] Cannot process a result tree fragment as a
node-set under XSLT 1.0 - My alternative don´t function
<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>
--~--
Ahora también puedes acceder a tu correo Terra desde el móvil.
Infórmate pinchando aquí.
--~------------------------------------------------------------------
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>
--~--