Hi,
the extension don't function, what´s up?
The namespace for xslt system document is:
<xsl:stylesheet xmlns:java="http://xml.apache.org/xslt/java" exclude-
result-prefixes="java" xmlns:i18n="http://apache.org/cocoon/i18n/2.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:dt="http:
//xsltsl.org/date-time" xmlns:str="http://xsltsl.org/string" xmlns:
exsl="http://exslt.org/common" extension-element-prefixes="exsl"
version="1.0">
<xsl:output method="html" media-type="text/html;charset=iso-8859-1"
indent="yes" encoding="ISO-8859-1" omit-xml-declaration="yes"/>
........
<xsl:variable name="aux2">
<xsl:call-template name="str:to-upper">
<xsl:with-param name="text" select="$titulo"></xsl:with-
param>
</xsl:call-template>
</xsl:variable>
<xsl:variable name="filtro">
<xsl:for-each select="//PATRIH-DescriptivoEx2
[(($desde>=concat(substring(F_INICIO_PUB,1,8), '000000') and $desde<
=concat(substring(F_FIN_PUB,1,8), '000000')) or ($hasta >= concat
(substring(F_INICIO_PUB,1,8), '000000') and $hasta <= concat
(substring(F_FIN_PUB,1,8), '000000')) or ($desde<=concat(substring
(F_INICIO_PUB,1,8), '000000') and $hasta>=concat(substring(F_INICIO_PUB,
1,8), '000000'))) and (CODCATEGORIA=$conferencias or
CODCATEGORIA=$exposiciones or CODCATEGORIA=$cursos or
CODCATEGORIA=$dia_libro or CODCATEGORIA=$ferias or
CODCATEGORIA=$jornadas or CODCATEGORIA=$premios or
CODCATEGORIA=$seminarios or CODCATEGORIA=$becas or
CODCATEGORIA=$otros)] | //PATRIH-DescriptivoEx2[(($desde>=concat
(substring(F_INICIO_PUB,1,8), '000000') and $desde<=concat(substring
(F_FIN_PUB,1,8), '000000')) or ($hasta >= concat(substring(F_INICIO_PUB,
1,8), '000000') and $hasta <= concat(substring(F_FIN_PUB,1,8),
'000000')) or ($desde<=concat(substring(F_INICIO_PUB,1,8), '000000')
and $hasta>=concat(substring(F_INICIO_PUB,1,8), '000000'))) and (not
($conferencias) and not($exposiciones) and not($cursos) and not
($dia_libro) and not($ferias) and not($jornadas) and not($premios) and
not($seminarios) and not($becas) and not($otros))]">
<xsl:variable name="aux1">
<xsl:call-template name="str:to-upper">
<xsl:with-param name="text" select="DESCRIPCION_COMUN"
</xsl:with-param>
</xsl:call-template>
</xsl:variable>
<xsl:if test="contains($aux1,$aux2)">
<xsl:copy-of select="." />
</xsl:if>
</xsl:for-each>
</xsl:variable>
<xsl:variable name="total" select="count(exsl:node-set($filtro)/PATRIH-
DescriptivoEx2)"></xsl:variable> !!Don´t function!!
Thank you very much,
----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>
--~--