Quantcast

[Bug 26844] New: [XP31] Wrong error code

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
7 messages Options
Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[Bug 26844] New: [XP31] Wrong error code

Bugzilla from bugzilla@jessica.w3.org
https://www.w3.org/Bugs/Public/show_bug.cgi?id=26844

            Bug ID: 26844
           Summary: [XP31] Wrong error code
           Product: XPath / XQuery / XSLT
           Version: Working drafts
          Hardware: PC
               URL: https://www.w3.org/XML/Group/qtspecs/specifications/xq
                    uery-31/html/xpath-31.html#id-atomization
                OS: Windows NT
            Status: NEW
          Severity: normal
          Priority: P2
         Component: XPath 3.1
          Assignee: [hidden email]
          Reporter: [hidden email]
        QA Contact: [hidden email]

Under atomization, XPath 3.1 says:

"If the item is a functionDM30 [err:FOTY0012] is raised."

but F&O says:

"A type error is raised [err:FOTY0013] if an item in the sequence $arg is a
function item."

--
You are receiving this mail because:
You are the QA Contact for the bug.

Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[Bug 26844] [XP31] Wrong error code

Bugzilla from bugzilla@jessica.w3.org
https://www.w3.org/Bugs/Public/show_bug.cgi?id=26844

--- Comment #1 from Tim Mills <[hidden email]> ---
f the item is a functionDM31 or map a type error [err:FOTY0012] is raised.

If the item is an array $a, atomization is defined as $a?* ! fn:data(.), which
is equivalent to atomizing the members of the array.

--
You are receiving this mail because:
You are the QA Contact for the bug.

Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[Bug 26844] [XP31] Wrong error code

Bugzilla from bugzilla@jessica.w3.org
In reply to this post by Bugzilla from bugzilla@jessica.w3.org
https://www.w3.org/Bugs/Public/show_bug.cgi?id=26844

--- Comment #2 from Jonathan Robie <[hidden email]> ---
I will change the language spec to use the F&O error code.

--
You are receiving this mail because:
You are the QA Contact for the bug.

Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[Bug 26844] [XP31] Wrong error code

Bugzilla from bugzilla@jessica.w3.org
In reply to this post by Bugzilla from bugzilla@jessica.w3.org
https://www.w3.org/Bugs/Public/show_bug.cgi?id=26844

--- Comment #3 from Tim Mills <[hidden email]> ---
I propose swapping the order to:

* If the item is an array $a, atomization is defined as $a?* ! fn:data(.),
which is equivalent to atomizing the members of the array.

* f the item is a functionDM31 or map a type error [err:FOTY0012] is raised.

--
You are receiving this mail because:
You are the QA Contact for the bug.

Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[Bug 26844] [XP31] Wrong error code

Bugzilla from bugzilla@jessica.w3.org
In reply to this post by Bugzilla from bugzilla@jessica.w3.org
https://www.w3.org/Bugs/Public/show_bug.cgi?id=26844

--- Comment #4 from Jonathan Robie <[hidden email]> ---
(In reply to Tim Mills from comment #3)
> I propose swapping the order to:
>
> * If the item is an array $a, atomization is defined as $a?* ! fn:data(.),
> which is equivalent to atomizing the members of the array.
>
> * If the item is a functionDM31 or map a type error [err:FOTY0012] is raised.

We assume the issue is that an array is a function.  But these bullet points do
not imply sequence, so a better fix is:

* If the item is a functionDM31 (other than an array) or map a type error
[err:FOTY0012] is raised.

--
You are receiving this mail because:
You are the QA Contact for the bug.

Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[Bug 26844] [XP31] Wrong error code

Bugzilla from bugzilla@jessica.w3.org
In reply to this post by Bugzilla from bugzilla@jessica.w3.org
https://www.w3.org/Bugs/Public/show_bug.cgi?id=26844

--- Comment #5 from Jonathan Robie <[hidden email]> ---
The Working Group agreed to resolve this as proposed in comment #4.

--
You are receiving this mail because:
You are the QA Contact for the bug.

Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[Bug 26844] [XP31] Wrong error code

Bugzilla from bugzilla@jessica.w3.org
In reply to this post by Bugzilla from bugzilla@jessica.w3.org
https://www.w3.org/Bugs/Public/show_bug.cgi?id=26844

Andrew Coleman <[hidden email]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |[hidden email]
         Resolution|---                         |FIXED

--
You are receiving this mail because:
You are the QA Contact for the bug.

Loading...