[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Cannot process a result tree fragment as a node-se

Subject: Re: Cannot process a result tree fragment as a node-set under XSLT 1.0 - My alternative don´t function
From: "ALEXCONTINI@xxxxxxxx" <ALEXCONTINI@xxxxxxxx>
Date: Thu, 17 Apr 2008 15:34:08 +0200 (MEST)
Re:  Cannot process a result tree fragment as a node-se
Of course, but the filter is too into of <xsl:for-each. ...

<xsl:variable name="filter" select="//PATRIH-DescriptivoEx2"/>

<xsl:for-each select="$filter">
     <xsl:variable name="filter2">
             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>
     <xsl:if test="$filter2">
               <p><xsl:value-of select="TITULO"/></p>
    </xsl:if>
   </xsl:for-each>


I need to count only those records that meet with the filter2

Thank you so much,
Alexander



----Mensaje original----
De: davidc@xxxxxxxxx
Recibido: 17/04/2008 14:53
Para: <xsl-list@xxxxxxxxxxxxxxxxxxxxxx>
Asunto: Re: Re: Re:  Cannot process a result tree fragment as a
node-set under XSLT 1.0 - My alternative donB4t 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




Ahora tambiC)n puedes acceder a tu correo Terra desde el mC3vil.
InfC3rmate pinchando aquC-.

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.