Re: W3C WS-Choreo WG - Issue 964

* Martin Chapman wrote:
>As far as we are concered this is enough text to tell an xpath processor
>what the "cdl:" prefix relates to.

In XPath 2.0 implementations are assumed to resolve function calls based
on {namespace, local-name} pairs. The CDL functions are defined as
{'http://www.w3.org/2004/12/ws-chor/cdl', *} functions. Implementations
now need to know how to map prefixes in the XPath expressions in CDL-
defined attributes to {namespace, local-name} pairs. The draft just
states

  WS-CDL defines XPath function extensions as described in the following
  section. The function extensions are defined in the standard WS-CDL
  namespace "http://www.w3.org/2005/08/ws-chor/cdl". The prefix "cdl:"
  is associated with this namespace.

It's not clear how it is "associated"; this could mean that 

  Implementations must map the 'cdl' prefix in XPath expressions to
  the 'http://www.w3.org/2005/08/ws-chor/cdl' namespace, ignoring all
  namespace declarations in scope of the element where the expression
  occurs.

That's however not clear from the draft. If the above captures the
intent of the Working Group it is still not clear how to resolve
other prefixes, for example, whether implementations must map the
'foo' prefix in the XPath expression in

  <?xml version='1.0'?>
  <element xmlns:foo='http://www.w3.org/2004/12/ws-chor/cdl'
    xpath='foo:example(...)' />

to the 'http://www.w3.org/2004/12/ws-chor/cdl' namespace aswell when
resolving the function name.
-- 
Björn Höhrmann · mailto:bjoern@hoehrmann.de · http://bjoern.hoehrmann.de
Weinh. Str. 22 · Telefon: +49(0)621/4309674 · http://www.bjoernsworld.de
68309 Mannheim · PGP Pub. KeyID: 0xA4357E78 · http://www.websitedev.de/ 

Received on Thursday, 4 August 2005 14:38:52 UTC