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

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.
__________
kurt george gjerde <kurt.gjerde@intermedia.uib.no>
intermedia uib, university of bergen

Received on Tuesday, 27 August 2002 07:33:13 UTC