W3C home > Mailing lists > Public > www-forms@w3.org > August 2002

RE: absolute/relative ref and model-ref 'inheritance'

From: Tomayko, Ryan <Ryan_Tomayko@stercomm.com>
Date: Tue, 27 Aug 2002 07:32:45 -0400
Message-ID: <D037B3982A54D611BA5E0006293835400100B366@scidubmsg02.amr.stercomm.com>
To: Kurt George Gjerde <kurt.gjerde@intermedia.uib.no>
Cc: www-forms@w3.org

Yes, nice catch. 

> "ancestor-or-self::xforms:*/@model"

Is that legal XPath? For some reason I'm thinking that may not be valid
(even though it makes perfect sense). If not, you could also use:

ancestor-or-self::*[ namespace-uri(.) =
'http://www.w3.org/2002/08/xforms/cr' ]/@model

At any rate, only elements in the XForms namespace should be included since
some other elements may have a model attribute.

- Ryan

-----Original Message-----
From: Kurt George Gjerde [mailto:kurt.gjerde@intermedia.uib.no] 
Sent: Tuesday, August 27, 2002 6:54 AM
To: Tomayko, Ryan
Cc: www-forms@w3.org
Subject: RE: absolute/relative ref and model-ref 'inheritance'

On Tue, 27 Aug 2002, Tomayko, Ryan wrote:
> If evaluation of the expression "ancestor-or-self::*/@model" produces 
> a zero length nodeset, the form control should default to the first 
> model in document order.

That's "ancestor-or-self::xforms:*/@model", right?

kurt george gjerde <kurt.gjerde@intermedia.uib.no>
intermedia uib, university of bergen
Received on Tuesday, 27 August 2002 07:33:13 UTC

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