[Bug 12127] "Root element" in assertion testing

http://www.w3.org/Bugs/Public/show_bug.cgi?id=12127

Mukul Gandhi <gandhi.mukul@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |gandhi.mukul@gmail.com

--- Comment #1 from Mukul Gandhi <gandhi.mukul@gmail.com> 2011-02-19 03:31:01 UTC ---
I agree with Mike that this particular ambiguity is obvious.

Here's a quick proposal to resolve this ambiguity,

1) We may change description in section "3.13.1 The Assertion Schema Component"
somewhat and the new wording might be:
"To check an assertion, an instance of the XPath 2.0 data model ([XDM]) is
constructed, in which the element information item being ·assessed· is the
context item of the XPath 2.0 dynamic context, and elements and attributes ..."

instead of the phrase cited by Mike. This then also becomes consistent with
section "3.13.4.2 XPath Evaluation" of the spec which says:
1 The context item is E.

2) We modify the test case cited by Mike to have the expression,
count(.//ele1) eq 1

instead of,
count(//ele1) eq 1

Thanks.

-- 
Configure bugmail: http://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.

Received on Saturday, 19 February 2011 03:31:03 UTC