W3C home > Mailing lists > Public > www-ql@w3.org > April to June 2005

Clarification needed on attribute names without namespace prefix

From: Henry Luo <henryluo@vibrasoft.net>
Date: Tue, 24 May 2005 12:42:00 +0800
Message-ID: <000801c5601a$ecf39610$6202a8c0@Handy>
To: <www-ql@w3.org>
I need some clarification on the attribute names without namespace prefix.

Current XML Namespace spec says that attribute without namespace are put under a per-element-type partition in Appendix A.2 and illustrate the point further with samples like:
 <ExpAName name='title' eltype="book" elns="urn:com:books-r-us" /> 
 <ExpAName name='title' eltype="author" elns="urn:com:books-r-us" /> 
So I'm not clear whether the above two attribute names under different elements are the same or not.

When related to XQuery, several things needs to be clarified:
1)  does @title retrieve both attributes?
2)  should book/@title be allowed to copied to author/@title?
3)  does fn:node-name(book/@title) return the same xs:Qname as fn:node-name(author/@title)?
If the answers are yes to all three questions, then I think the so called 
    expanded QName in XQuery for book/@title and author/@title are exactly the same.

Then the description of the ExpAName in XML Namespace is very confusing and seems to give the impression that they are different.

Regards

Henry
    
Received on Tuesday, 24 May 2005 04:43:11 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:17:17 UTC