xsl-list
[Top] [All Lists]

[xsl] Comma operator returns a sequence of its items, or not?

2012-05-27 09:56:56
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(12),
        my:overload(13)" separator=";" />       
</xsl:template>

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

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.

Thanks,
Abel

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>