Re: Uniqueness of QNames in 'extends' attribute

John,

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
woden-dev@ws.apache.org


To
www-ws-desc@w3.org, "John Kaputin" <KAPUTIN@uk.ibm.com>
cc
woden-dev@ws.apache.org
Subject
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....

2.2.2.2 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 
properties: 
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.

regards,
John Kaputin

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