[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Comma operator returns a sequence of its items, or not

Subject: Comma operator returns a sequence of its items, or not?
From: Abel Braaksma <abel.online@xxxxxxxxx>
Date: Sun, 27 May 2012 16:56:37 +0200
 Comma operator returns a sequence of its items
Hi list,

I'm probably missing the obvious here, but I would expect the following
simplified code snippet:

<xsl:template match="/">
    <xsl:value-of select="
        my:overload(13)" separator=";" />       

<xsl:function name="my:overload">
    <xsl:param name="one" />
    <xsl:value-of select="$one"/>

to output "12;13". However, it outputs "1213" with Saxon 9.3. Is this my
misunderstanding of the comma operator, or am I missing something
obvious? I know that xsl:value-of does not return a sequence, but I'd
expect the comma operator to kick in, same as in <xsl:value-of
select="'12', '13'" separator=";" />, which outputs "12;13" as expected.


Current Thread


Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
First Name
Last Name
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.