Re: [xslt] concat fails with zero or one parameter
- From: Frans Englich <frans englich telia com>
- To: The Gnome XSLT library mailing-list <xslt gnome org>
- Subject: Re: [xslt] concat fails with zero or one parameter
- Date: Mon, 4 Sep 2006 07:53:49 +0000
On Sunday 03 September 2006 22:34, Tim Van Holder wrote:
> William Krick wrote:
> > The concat function doesn't work with zero or one parameter
> >
> > According to the w3 spec...
> >
> > http://www.w3.org/TR/2002/WD-xquery-operators-20020816/#func-concat
> >
> > ...these should be valid....
> >
> > <xsl:value-of select="concat()" />
> > <xsl:value-of select="concat('abc')" />
> >
> > Is this a known bug or am I interpreting the spec wrong?
>
[...]
> It is odd that the XPath 2.0 document suggests that the
> 0-or-more-arguments system is used for compatibility with XPath 1.0;
> perhaps they originally considered making it a 2-argument function,
> but decided to make it fully variadic instead.
An obsolete spec was referenced. In the current one, fn:concat() is as you
describe:
http://www.w3.org/TR/xpath-functions/#func-concat
Cheers,
Frans
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]