- From: Jacek Kopecky <jacek.kopecky@deri.org>
- Date: Fri, 22 Apr 2005 15:55:35 +0200
- To: David Orchard <dorchard@bea.com>
- Cc: WS-Description WG <www-ws-desc@w3.org>
David, would it be incorrect to have the namespaces there if only one namespace was present? I'm thinking with an implementor hat on now - checking if there's only one namespace in the complex type and if so, implementing ignoring or putting the namespaces there, I'd rather drop the ignoring and checking and put the namespaces there at all times, thus destroying the intent of this proposal. Anyway, you try to go in all this complexity where I don't think it's so useful: I believe we already have a restriction that the complex type must be a sequence with simple type elements in it, so it's unlikely people will come from arbitrary schemas (that somehow fulfill this restriction) and try to bind to GET; they'll rather come from a set of GET parameters and build the schema for that, and here's where we can safely disallow multiple namespaces without any harm. Just my 2c, Jacek On Thu, 2005-04-21 at 14:19 -0700, David Orchard wrote: > My updated proposal is similar to hugo's, except that I propose ignoring the namespace when only a single ns is present in the instance data and I'd like to suggest a couple different lexical forms of the binding. > > A simple case without namespaces would be serialized simple: > > <foo> > <c>1<c> > <c>2<c> > </foo> > > → c=1&c=2 > > Single namespace is serialized by ignoring the namespace the same way: > > <a:foo xmlns:a="http://example.com/1"> > <a:c>1</a:c> > <a:c>2</a:c> > </a:foo> > > → c=1&c=2 > > Multiple namespaces are serialized with full ns: > > <foo xmlns:a="http://example.com/1" > xmlns:b="http://example.com/2"> > <a:c>1</a:c> > <b:c>2</b:c> > </foo> > > → xmlns:a=http://example.com/1&xmlns:b=http://example.com/2&a:c=1&b:c=2 > (this is option #15 in [1]) > > Another reasonable option is to do a lexical form of the qname, like using parenthesis > → &(http://example.com/1)c=1&(http://example.com/2)c=2 > (this is option #10 in [1]) > > Or period separated with ns trailing > → &c.http://example.com/1=1&c.http://example.com/2=2 > (option #11) > > Cheers, > Dave > > [1] http://www.pacificspirit.com/blog/2004/04/29/binding_qnames_to_uris > > > > -----Original Message----- > > From: www-ws-desc-request@w3.org [mailto:www-ws-desc-request@w3.org] On > > Behalf Of Hugo Haas > > Sent: Tuesday, April 12, 2005 7:42 AM > > To: www-ws-desc@w3.org > > Subject: Re: Proposed resolution to LC 77a > > > > * Hugo Haas <hugo@w3.org> [2005-04-08 12:04+0200] > > > The application/x-www-form-urlencoded serialization could have a rule > > > which says to use the same namespace prefixes than the ones you found > > > in the schema. > > > > > > However, the schema itself could exist in different equivalent > > > versions, with different prefixes used, so we'd need to be sure we > > > know what schema document we're talking about, which I'm not sure we > > > can achieve with the abstraction of {element declarations} in our > > > component model. > > > > Having investigated this a little more, because of this abstraction > > and the fact that schema doesn't know about prefixes in the component > > model, it seems that we can't express the constraints that proposed > > option #3 would need. > > > > An XPointer-like solution would probably be the simplest way to > > support namespaces in a reliable way. > > > > A simple case without namespaces would be serialized simple: > > > > <foo> > > <c>1<c> > > <c>2<c> > > </foo> > > > > → c=1&c=2 > > > > A simple case using namespaces would be serialized in a not too > > complex way: > > > > <a:foo xmlns:a="http://example.com/1"> > > <a:c>1</a:c> > > <a:c>2</a:c> > > </a:foo> > > > > → xmlns:a=http://example.com/1&a:c=1&a:c=2 > > > > And more complex cases would be enabled: > > > > <foo xmlns:a="http://example.com/1" > > xmlns:b="http://example.com/2"> > > <a:c>1</a:c> > > <b:c>2</b:c> > > </foo> > > > > → xmlns:a=http://example.com/1&xmlns:b=http://example.com/2&a:c=1&b:c=2 > > > > We would need to add in the application/x-www-urlencoded text like: > > > > Each QName serialized in the URL must have its namespace prefix > > declared with a query parameter. > > > > And add a section with the meaning of xmlns:foo as a query parameter. > > > > I am hesitant about adding such a feature at this point though. > > > > Cheers, > > > > Hugo > > > > -- > > Hugo Haas - W3C > > mailto:hugo@w3.org - http://www.w3.org/People/Hugo/ >
Received on Friday, 22 April 2005 13:55:39 UTC