Subject: Re: [xsl] Cannot process a result tree fragment as a node-set under XSLT 1.0 - My alternative don´t function From: "Alejandro" <alexcontini@xxxxxxxx> Date: Sat, 12 Apr 2008 14:27:33 +0100 |
I want to iterate over the RecursoEx1 elements <xsl:for-each select="exsl:node-set($filter)/RecursoEx1"> OK!!
and exsl:node-set, it looks to me as if that might not be necessary at all.But it is not clear what you want to achieve and why you use xsl:copy-of
<xsl:for-each select="$filter"> <p><xsl:value-of select="TITULO"/></p> </xsl:for-each>
Fine Thanks, Alexander
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 |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Cannot process a result t, Martin Honnen | Thread | RE: [xsl] Cannot process a result t, Michael Kay |
RE: [xsl] Cannot process a result t, Michael Kay | Date | Re: [xsl] Cannot process a result t, Alejandro |
Month |