-
Notifications
You must be signed in to change notification settings - Fork 6
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Using arrow =>
with variables of type function(*)
seems to break a following check, where a function call is checked for availability.
XPath: Function: 'fun:test' with 2 arguments not found
The message above is put out for the following stylesheet - see lines 17 and 29:
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:array="http://www.w3.org/2005/xpath-functions/array"
xmlns:map="http://www.w3.org/2005/xpath-functions/map"
xmlns:math="http://www.w3.org/2005/xpath-functions/math"
xmlns:fun="urn:fun"
exclude-result-prefixes="#all"
expand-text="yes"
version="3.0">
<xsl:output method="xml" indent="yes"/>
<xsl:mode on-no-match="shallow-copy"/>
<xsl:template match="/*" mode="#all">
<xsl:variable name="test" as="function(*)" select="function($s){$s}"/>
<xsl:variable name="string" as="xs:string" select="'test' => $test()"/>
<out>
<xsl:value-of select="fun:test($string)"/>
</out>
</xsl:template>
<xsl:function name="fun:test">
<xsl:param name="prm1" as="xs:string"/>
<xsl:sequence select="$prm1"/>
</xsl:function>
</xsl:stylesheet>
v1.0.0
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working