[xslt] XPath functions arguments



Hello.

Is such concat() function behavior correct?

>cat test.xsl
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"; version="1.0" >

<xsl:template match="/">
        <xsl:value-of select="concat('a', 'b', )"/>
<!--                                       ^^^^^ -->
</xsl:template>

</xsl:stylesheet>
>
>xslproc test.xsl d1.xml
<?xml version="1.0"?>
ab
>
>xsltproc --version
Using libxml 20501, libxslt 10023 and libexslt 714
xsltproc was compiled against libxml 20428, libxslt 10023 and libexslt 714
libxslt 10023 was compiled against libxml 20428
libexslt 714 was compiled against libxml 20428

http://www.w3.org/TR/xpath#NT-FunctionCall says:
---
[16]    FunctionCall    ::=    FunctionName '(' ( Argument ( ',' Argument )* )? ')'
---

but http://www.w3.org/TR/xpath#concat-func:
---
Function: string concat(string, string, string*)
---

With msxml I have an error message:
"Expression expected. concat('a', 'b', -->)<--"

Sorry, I cannot create a patch (if it's a bug) -- xpath.c is not fully
clear for me yet ;)

With best regards, Alexey.




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]