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 2792 - attribute(*, xs:anyType)
Summary: attribute(*, xs:anyType)
Status: CLOSED WORKSFORME
Alias: None
Product: XPath / XQuery / XSLT
Classification: Unclassified
Component: XQuery 1.0 (show other bugs)
Version: Working drafts
Hardware: PC Windows XP
: P2 normal
Target Milestone: ---
Assignee: Don Chamberlin
QA Contact: Mailing list for public feedback on specs from XSL and XML Query WGs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-02-01 21:54 UTC by Jonathan Robie
Modified: 2007-02-25 23:49 UTC (History)
0 users

See Also:


Attachments

Description Jonathan Robie 2006-02-01 21:54:01 UTC
XML Schema requires that an attribute's declared type be a simple type. The
following is not a valid XML Schema declaration:

<attribute ... type="xs:anyType" ... />

I can not find any text in our document that tells me the following is not a
valid SequenceType:

attribute(*, xs:anyType)

I believe we should modify the text of 2.5.4.5 Attribute Test as follows:


In these forms, AttributeName need not be present in the in-scope attribute
declarations, but TypeName must be <add>a simple type which is</addd> present in
the in-scope schema types.
Comment 1 Michael Rys 2006-02-01 22:03:49 UTC
While this is not a valid type on an attribute, we should allow this 
expression since attribute(*, xs:anyType) matches the same nodes as attribute
(*, xs:anySimpleType) according to our type matching rules.

So I do not see a reason to be overly restrictive here....
Comment 2 Jonathan Robie 2006-03-06 21:13:56 UTC
I withdraw this - there's nothing really broken in the status quo.
Comment 3 Jim Melton 2007-02-25 23:49:05 UTC
Closing bug because commenter has not objected to the resolution posted and more than two weeks have passed.