W3C home > Mailing lists > Public > www-ws-desc@w3.org > April 2005

RE: Proposed resolution to LC 77a

From: Rogers, Tony <Tony.Rogers@ca.com>
Date: Fri, 8 Apr 2005 07:45:37 +1000
Message-ID: <7997F38251504E43B38435DAF917887F40C42C@ausyms23.ca.com>
To: "David Orchard" <dorchard@bea.com>, "Hugo Haas" <hugo@w3.org>
Cc: <www-ws-desc@w3.org>
Jonathan made a good point during the call.
 
Suppose w have a schema document which contains:
 
<a xmlns="A"/>
<b xmlns="B"/>
 
so both a and b have been defined with no namespace prefix, but with different namespaces.
 
What happens here? Or with:
 
<a xmlns:c="A"/>
<a xmlns:c="B"/>
 
How do I disambiguate "a"?

	-----Original Message----- 
	From: www-ws-desc-request@w3.org on behalf of David Orchard 
	Sent: Fri 08-Apr-05 5:01 
	To: Hugo Haas 
	Cc: www-ws-desc@w3.org 
	Subject: RE: Proposed resolution to LC 77a
	
	


	The WSDL/schema author says that a:c and b:c mean something.  Maybe they
	are author:title and book:title.  If you then invert them, such that you
	are sending author titles in book titles and vice versa, you are not
	going to "GET" the resource you are thinking of, except perhaps in the
	case of where Mr has author the Mr book.
	
	The point being, the schema author says a: means authors and b: books
	for the purposes of the particular URI that is described.  Use them as
	the schema author says to use them.
	
	Cheers,
	Dave
	
	> -----Original Message-----
	> From: Hugo Haas [mailto:hugo@w3.org]
	> Sent: Thursday, April 07, 2005 8:16 AM
	> To: David Orchard
	> Cc: www-ws-desc@w3.org
	> Subject: Re: Proposed resolution to LC 77a
	>
	> * David Orchard <dorchard@bea.com> [2005-04-07 07:29-0700]
	> > The point of namespaces is to disambiguate names.  That is, you can
	have
	> 2 identical local names with different namespace names.  The purpose
	of
	> serializing the prefix is to preserve that disambiguation.
	>
	> But nothing prevents me from doing something like a first message:
	>
	>   <foo xmlns:a="http://example.com/1"
	>        xmlns:b="http://example.com/2">
	>     <a:c>1</a:c>
	>     <b:c>2</b:c>
	>   </foo>
	>
	> serialized as a:c=1&b:c=2
	>
	> and then a second:
	>
	>   <foo xmlns:b="http://example.com/1"
	>        xmlns:a="http://example.com/2">
	>     <b:c>1</b:c>
	>     <a:c>2</a:c>
	>   </foo>
	>
	> serialized as b:c=1&a:c=2
	>
	> IOW, the prefixes only make sense to the person who has the complete
	> instance data in his hand.
	>
	> I have the feeling I'm still missing the use case.
	>
	> --
	> Hugo Haas - W3C
	> mailto:hugo@w3.org - http://www.w3.org/People/Hugo/
	
	
	
Received on Thursday, 7 April 2005 21:45:43 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 7 December 2009 10:58:35 GMT