Subject: Re: Use of data() function
From: "Mukul Gandhi" <gandhi.mukul@xxxxxxxxx>
Date: Sun, 2 Mar 2008 22:45:37 +0530
|
Thanks Florent for useful pointers ... I do have some difference of
opinion to the below point. Kindly see my remarks below.
On Sun, Mar 2, 2008 at 6:32 PM, Florent Georges <lists@xxxxxxxxxxxx> wrote:
For instance
> test="@married" would be an error; you should say
> test="exists(@married)" or test="xs:boolean(@married)" instead.
I think, as others explained, test="@married" is correctly written
(Andrew, infact said test="@married" and test="exists(@married)" would
result in same behaviour.
As written in spec, and you also wrote in this mail, "for non empty
sequence of nodes, EBV is true". test="@married" returns true if an
attribute 'married' exists. Please correct me, if I am wrong.
--
Regards,
Mukul Gandhi
|