W3C home > Mailing lists > Public > www-forms@w3.org > February 2006

Re: XPath discrepancy

From: Swithun Crowe <swithun@swithun.servebeer.com>
Date: Mon, 27 Feb 2006 11:19:48 +0000 (GMT)
To: David Landwehr <david.landwehr@solidapp.com>
cc: www-forms@w3.org
Message-ID: <Pine.LNX.4.64.0602271104570.18493@shadrach.swithun.servebeer.com>

Hello

DL boolean(instance('inst')/teiHeader/fileDesc/editionStmt/edition[@n='closet']='true')

This works with formsPlayer, but not Mozilla.

DL boolean(instance('inst')/teiHeader/fileDesc/editionStmt/edition[@n='closet' 
DL and .='true'])

This works with both. Thanks. I was generating the XForms document 
serverside and was doing browser sniffing anyway, so it wasn't a show 
stopper. But it shaves a few lines off my XSLT script.

The first version returns boolean even without the boolean(), so it isn't 
so surprising that this doesn't change the result. But it is odd that 
formsPlayer doesn't do the conversion of nodeset to boolean and that 
Mozilla doesn't recognise a boolean when it sees one. I'll get onto the 
relevant people.

Swithun.
Received on Monday, 27 February 2006 11:25:51 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Saturday, 10 March 2012 06:22:03 GMT