xsl-list
[Top] [All Lists]

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

2008-04-12 05:33:26
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/

--~------------------------------------------------------------------
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>
--~--