- From: Norman Walsh <ndw@nwalsh.com>
- Date: Fri, 02 Sep 2011 13:51:42 -0400
- To: XProc Dev <xproc-dev@w3.org>
Received on Friday, 2 September 2011 17:52:19 UTC
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 UTC