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

Subject: Re: [xsl] 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
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