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 1777 - [FS] editorial: 8.2.3.1.1 (Static semantics of) Name Tests
Summary: [FS] editorial: 8.2.3.1.1 (Static semantics of) Name Tests
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-20 02:42 UTC by Michael Dyck
Modified: 2007-01-16 17:45 UTC (History)
0 users

See Also:


Attachments

Description Michael Dyck 2005-07-20 02:42:28 UTC
8.2.3.1.1 (Static semantics of) Name Tests

-- / rule (2|3|6|7|8|10|11|12|27)
various rules
"test ... with ... of element *:LocalPart TypeSpecifier?"
"test ... with ... of element Prefix:* TypeSpecifier?"
    "element Wildcard TypeSpecifier?" is not a valid Formal Type

-- / rule (15|16|19|20|21|23|24|25)
"test ... with ... of attribute *:LocalPart TypeReference?"
"test ... with ... of attribute Prefix:* TypeReference?"
    "attribute Wildcard TypeReference?" is not a valid Formal Type.

-- / rule 22 / premise 1
"fn:namespace-uri-from-QName(QName1)"
    "QName1" should be "expanded-QName1"
(leftover from last year, comment #216)

-- / rule 27 / premise 1
"[[ NameTest ]]_sequencetype"
    This is invalid: a NameTest is not a SequenceType.

-- / rule 27
"ElementNameOrWildcard TypeSpecifier"
    This is not a valid Formal Type.
Comment 1 Jerome Simeon 2006-04-13 18:36:05 UTC
Fixed the corresponding problems. Note that "element * OptTypeSpecifier" is a valid formal type according to the grammar in section 2.4.4.

Here are more details about how each comment has been addressed.

#1 Merged the rules to deal with the "element * ..." case only now.

#2 Merged the rules to deal with the "attribute * ..." case only now

#3 Fixed.

#4 Used a more direct construction of the element type, adding the following two preconditions:

ElementNameOrWildcard1 = NameTest
TypeSpecifier1 = of type xs:anyType

#5 Added the proper 'element ' in front.

- Jerome