My explanation might have been a little unclear.
The second xsl markup is not part of the same source file.
The variables might not have the same names but they are supposed to do exactly
same thing.

If you prefer the second xsl would go as follows:

<xsl:variable name="rtf">
<xsl:value-of select="liste-compagnie:getListeIter()"/>
</xsl:variable>

However I noticed that doing as you say and declaring my variables on one line

<xsl:variable name="rtf" select="liste-compagnie:getListeIter()"/>

resolves my NullPointerException.

However I still can't iterate over the content.
The result is either a String with all my Text nodes concatenated together.
Or when I explicitly call xalan:nodeset($rtf) only the last text node of the set is present.

Would you happen to have an example that works.

Thanks again.


Which either

It looks like you are indeed returning a nodeset. However, you are then
assigning that to an RTF in:

> <xsl:variable name="testcies">
> <xsl:value-of select="liste-compagnie:getListeIter()"/>
> </xsl:variable>

Try:

<xsl:variable name="testcies"
select="liste-compagnie:getListeIter()"/>

HTH,
Gary

Reply via email to