Re: Options as strings. Blech.

<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,
                                          norm

-- 
Norman Walsh
Lead Engineer
MarkLogic Corporation
Phone: +1 413 624 6676
www.marklogic.com

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