[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: Martin Honnen <Martin.Honnen@xxxxxx>
Date: Sat, 12 Apr 2008 14:32:59 +0200
Re:  Cannot process a result tree fragment as a node-se
Alejandro wrote:

<p>Number: <xsl:value-of select="count(exsl:node-set($filter))"/></p> <!-- DON'T FUNCTION -->

count should give 1. I guess you want to count the RecursoEx1 elements so you should use
count(exsl:node-set($filter)/RecursoEx1)
although with your sample document and stylesheet variables that count is 0.


<xsl:for-each select="exsl:node-set($filter)">

I guess you want to iterate over the RecursoEx1 elements so you would need <xsl:for-each select="exsl:node-set($filter)/RecursoEx1">


But it is not clear what you want to achieve and why you use xsl:copy-of and exsl:node-set, it looks to me as if that might not be necessary at all.



--


	Martin Honnen
	http://JavaScript.FAQTs.com/

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.