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>


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.

Received on Monday, 27 February 2006 11:25:51 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:36:16 UTC