W3C home > Mailing lists > Public > www-ws-desc@w3.org > May 2006

Re: Uniqueness of QNames in 'extends' attribute

From: Arthur Ryman <ryman@ca.ibm.com>
Date: Fri, 19 May 2006 09:23:46 -0400
To: woden-dev@ws.apache.org
Cc: "John Kaputin" <KAPUTIN@uk.ibm.com>, woden-dev@ws.apache.org, www-ws-desc@w3.org
Message-ID: <OF9DAA3A83.86CD6A03-ON85257173.0047DD8D-85257173.00499A10@ca.ibm.com>

Thx for the comment. I think that we should require uniqueness of 
interfaces at the XML infoset level since it makes no sense to extend from 
an interface twice. Therefore, a duplicate would be a programming error 
and raising it would be helpful to authors who may have forgotten to edit 
a QName after a copy and paste:

"Each QName in the extends attribute information item MUST be unique."

Arthur Ryman,
IBM Software Group, Rational Division

blog: http://ryman.eclipsedevelopersjournal.com/
phone: +1-905-413-3077, TL 969-3077
assistant: +1-905-413-2411, TL 969-2411
fax: +1-905-413-4920, TL 969-4920
mobile: +1-416-939-5063, text: 4169395063@fido.ca

"John Kaputin (gmail)" <jakaputin@gmail.com> 
05/18/2006 12:39 PM
Please respond to

www-ws-desc@w3.org, "John Kaputin" <KAPUTIN@uk.ibm.com>
Uniqueness of QNames in 'extends' attribute

When I implemented interface extension in Apache Woden recently I noticed 
that the WSDL 2.0 spec does not say that the QNames in the 'extends' 
attribute of the <interface> element have to be unique, although it seems 
sensible that they should be. Anyway, my implementation just checks for 
duplicate QNames before resolving them to Interface components. 

You may want to add a uniqueness constraint to this section.... extends attribute information item
The extends attribute information item lists the interfaces that this 
interface derives from. 
The extends attribute information item has the following Infoset 
A [local name] of extends 
A [namespace name] which has no value
The type of the extends attribute information item is a 
whitespace-separated list of xs:QName.

John Kaputin
Received on Friday, 19 May 2006 13:23:55 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 23:06:58 UTC