Note that there are some explanatory texts on larger screens.

plurals
  1. POexslt.org extensions
    text
    copied!<p>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.</p> <p>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...</p> <p>Cannot find a matching 1-argument function named {<a href="http://exslt.org/common" rel="nofollow noreferrer">http://exslt.org/common</a>}node-set() in variable step-concat (filename and line number are in here blah blah blah)</p> <p>I have no idea what is going wrong as I am quite new to this stuff. My xsl file is</p> <pre><code>&lt;xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:exsl="http://exslt.org/common" extension-element-prefixes="exsl"&gt; &lt;!-- STEP Files --&gt; &lt;xsl:variable name="step-output"&gt; &lt;xsl:for-each select="/index/file"&gt; &lt;xsl:copy-of select="document(.)" /&gt; &lt;/xsl:for-each&gt; &lt;/xsl:variable&gt; &lt;!-- STEP Files as one --&gt; &lt;xsl:variable name="step-concat" select="exsl:node-set($step-output)" /&gt; &lt;!-- Root Template --&gt; &lt;xsl:template match="/"&gt; &lt;xsl:element name="foo"&gt; &lt;xsl:apply-templates select="$step-concat/foo"/&gt; &lt;/xsl:element&gt; &lt;/xsl:template&gt; &lt;xsl:template match="foo"&gt; &lt;xsl:element name="text"&gt; &lt;xsl:value-of select="bar"/&gt; &lt;/xsl:element&gt; &lt;/xsl:template&gt; </code></pre> <p></p> <p>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...</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload