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:51:42 -0400
To: XProc Dev <xproc-dev@w3.org>
Message-ID: <m262la4ytt.fsf@nwalsh.com>
Andrew Welch <andrew.j.welch@gmail.com> writes:
> Ah ok sorry... I must admit I didn't know about the difference between:
>
> <xsl:if test="boolean('0')">aaa</xsl:if>
>
> vs
>
> <xsl:if test="xs:boolean('0')">bbb</xsl:if>
>
> (outputs 'aaa' but not 'bbb')
>
> I thought they both behaved the same....

No, XPath 2.0 preserves the 1.0 semantics for fn:boolean() because,
well, because there were lots of folks used to it. The semantics
of xs:boolean derive from XML Schema, I think.

                                        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:52:19 GMT

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