I am trying to use an exslt extension in one of my transformations. I got an example off this site about how to concatenate xml files into one.
I have implemented the namespace and the element prefix correctly, but every time I try and run it from my command line I recieve the following error...
Cannot find a matching 1-argument function named {http://exslt.org/common}node-set() in variable step-concat (filename and line number are in here blah blah blah)
I have no idea what is going wrong as I am quite new to this stuff. My xsl file is
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:exsl="http://exslt.org/common"
extension-element-prefixes="exsl">
<!-- STEP Files -->
<xsl:variable name="step-output">
<xsl:for-each select="/index/file">
<xsl:copy-of select="document(.)" />
</xsl:for-each>
</xsl:variable>
<!-- STEP Files as one -->
<xsl:variable name="step-concat" select="exsl:node-set($step-output)" />
<!-- Root Template -->
<xsl:template match="/">
<xsl:element name="foo">
<xsl:apply-templates select="$step-concat/foo"/>
</xsl:element>
</xsl:template>
<xsl:template match="foo">
<xsl:element name="text">
<xsl:value-of select="bar"/>
</xsl:element>
</xsl:template>
What am I doing wrong? I have tried downloading the module from exslt.org, but it doesn't make any sense to me at all...