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

Re: Readonly, relevant attributes for trigger

From: David Landwehr <david.landwehr@picoforms.com>
Date: Wed, 14 Feb 2007 07:23:17 +0100
Message-Id: <CB75E793-ABCE-4523-81A8-0B2432A10144@picoforms.com>
Cc: <www-forms@w3.org>
To: "Klotz, Leigh" <Leigh.Klotz@xerox.com>

Hi Leigh,

As far as I can read from the XPath specification it is not legal to  
have a predicate after an abbreviated step (see the XPath  
specification gramma [4] and [12]). So even that your expression make  
perfect sense it will only work in implementations which supports  
this illegal but logical construct.

To be on the safe side I would recommend that you use self::node()[]  

Best regards,

On Feb 14, 2007, at 1:22 AM, Klotz, Leigh wrote:

> I use ref=".[condition]"  instead of ref="self::node()".
> Is that wrong?  Does it fail in case . is an attribute or something?
> Leigh.
> -----Original Message-----
> From: www-forms-request@w3.org [mailto:www-forms-request@w3.org] On
> Behalf Of David Landwehr
> Sent: Tuesday, February 13, 2007 1:04 PM
> To: Aaron Reed
> Cc: www-forms@w3.org
> Subject: Re: Readonly, relevant attributes for trigger
> ...
> <xf:trigger ref="self::node()[ condition=condition]"/>
Received on Wednesday, 14 February 2007 06:24:07 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:37:55 UTC