W3C home > Mailing lists > Public > xproc-dev@w3.org > September 2011

Re: Options as strings. Blech.

From: Norman Walsh <ndw@nwalsh.com>
Date: Fri, 02 Sep 2011 13:50:07 -0400
To: XProc Dev <xproc-dev@w3.org>
Message-ID: <m2aaam4ywg.fsf@nwalsh.com>
<vojtech.toman@emc.com> writes:
> At the risk of making a fool of myself again, how come that the value
> of test is "12" and not just "1" in the expression below?
> <p:with-option name="test" select="(1,2)"/>

Uh. That's interesting. That could be a bug. Maybe it should be "1 2".
Or maybe it should raise an error. XPath 2.0 doesn't impose "first
value" semantics for lists the way XPath 1.0 does, but I don't recall
the exact rules off the top of my head.

<xsl:value-of select="(1,2)"/> => "1 2"
<xsl:value-of select="string((1,2))"/> => err:XPTY004

Not sure which of those we should be doing.

                                        Be seeing you,

Norman Walsh
Lead Engineer
MarkLogic Corporation
Phone: +1 413 624 6676

Received on Friday, 2 September 2011 17:50:36 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 2 September 2011 17:50:37 GMT