I am a novice using Eclipse for XSLT transforms using xalan engine I have xml file:
<?xml version="1.0" encoding="UTF-8"?> <test>Test</test> and xsl file <?xml version="1.0"?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0" xmlns:exsl="http://exslt.org/common"> <xsl:template match="/"> <out> <xsl:variable name="rtf"> <docelem> <elem1> <elem1a>ELEMENT1A</elem1a> <elem1b>,ELEMENT1B</elem1b> </elem1> </docelem> </xsl:variable> <xsl:choose> <xsl:when test="function-available('exsl:node-set')"> <xsl:text>Accepted exsl:node-set in test but produced </xsl:text> </xsl:when> <xsl:otherwise> <xsl:text>Not Accepted exsl:node-set in test but produced </xsl:text> </xsl:otherwise> </xsl:choose> <xsl:for-each select="exsl:node-set($rtf)/docelem//*"> <xsl:value-of select="name(.)" /> <xsl:text>,</xsl:text> </xsl:for-each> using the exsl:node-set function</out> </xsl:template> </xsl:stylesheet> Produces output <?xml version="1.0" encoding="UTF-8"?> <out xmlns:exsl="http://exslt.org/common">Not Accepted exsl:node-set in test but produced elem1,elem1a,elem1b, using the exsl:node-set function</out> I don't understand! Thanks for any help -- View this message in context: http://old.nabble.com/function-available%28%27exsl%3Anode-set%27%29-give-false-result-in-test-tp27808084p27808084.html Sent from the Xalan - J - Users mailing list archive at Nabble.com.