This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 1747 - [FS] editorial: 7.1.6 The fs:distinct-doc-order-or-atomic-sequence function
Summary: [FS] editorial: 7.1.6 The fs:distinct-doc-order-or-atomic-sequence function
Status: CLOSED FIXED
Alias: None
Product: XPath / XQuery / XSLT
Classification: Unclassified
Component: Formal Semantics 1.0 (show other bugs)
Version: Last Call drafts
Hardware: All All
: P2 minor
Target Milestone: ---
Assignee: Jerome Simeon
QA Contact: Mailing list for public feedback on specs from XSL and XML Query WGs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-07-19 05:41 UTC by Michael Dyck
Modified: 2008-08-18 05:46 UTC (History)
0 users

See Also:


Attachments

Description Michael Dyck 2005-07-19 05:41:08 UTC
7.1.6 The fs:distinct-doc-order-or-atomic-sequence function

"$item as node *"
    s/node/item/, surely.

STA / rule 1 / premise 2
Type <: node*
    node* is not a valid Formal Type.
    Change to [[ node()* ]]_sequencetype ?
Comment 1 Michael Dyck 2005-07-19 21:38:55 UTC
(In reply to comment #0)
>
> STA / rule 1 / premise 2
> Type <: node*
>     node* is not a valid Formal Type.
>     Change to [[ node()* ]]_sequencetype ?

Or (italicized) NodeType*, as in 7.2.4.

Comment 2 Jerome Simeon 2006-03-29 22:06:45 UTC
Fixed as suggested, using the NodeType* option.
Comment 3 Michael Dyck 2006-10-05 19:28:24 UTC
On second thought, NodeType* probably isn't what you want.
E.g., it can't derive a type that matches a sequence of different kinds of nodes.
So I fall back to my first suggestion,
    [[ node()* ]]_sequencetype
(or you could use its expansion).
Comment 4 Jerome Simeon 2007-01-16 18:00:01 UTC
Alright, back to the other option.
- Jerome
Comment 5 Michael Dyck 2008-08-18 05:44:19 UTC
(In reply to comment #3)
> "The fn:boolean function as described in the [Functions and Operators] document
> takes an empty sequence, a sequence of one or more nodes, or a singleton value
> of type .... All other values are illegal."
>     No, fn:boolean <em>as described in the F+O doc</em> handles a wider set of
>     inputs. If you want the static typing to accept a narrower set of types,
>     fine, but don't make it sound like they're in agreement. 

I have clarified the distinction between the dynamic and static type restrictions.

>     Also, the list of singleton types is missing xs:anyURI.

The Rec fixed this in the inference rule, but not in the preceding prose.

>     Also, NodeType+ probably isn't what you want. See Bug 1747, comment #3.

Changed to [[ node()+ ]]_sequencetype.

Comment 6 Michael Dyck 2008-08-18 05:46:45 UTC
Sorry, wrong Bug.