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 17476 - [XQuery 3.0] validate type xs:untyped {...}
Summary: [XQuery 3.0] validate type xs:untyped {...}
Status: RESOLVED FIXED
Alias: None
Product: XPath / XQuery / XSLT
Classification: Unclassified
Component: XQuery 3.0 (show other bugs)
Version: Last Call drafts
Hardware: PC All
: P2 normal
Target Milestone: ---
Assignee: Jonathan Robie
QA Contact: Mailing list for public feedback on specs from XSL and XML Query WGs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-06-13 07:42 UTC by Michael Kay
Modified: 2012-07-25 14:55 UTC (History)
0 users

See Also:


Attachments

Description Michael Kay 2012-06-13 07:42:23 UTC
It appears to be legal to say

validate type xs:untyped {...}

but we don't say what it might mean.

I suggest that we explicitly allow this construct and define it to have the same meaning as XSLT's

<xsl:copy-of select="..." validation="strip"/>

that is, it converts a typed document to an untyped one by removing all type annotations. There are a number of use cases where this is handy, for example before doing a deep-equal comparison.
Comment 1 Michael Kay 2012-07-23 19:22:33 UTC
The WG agreed with this proposal.