1 Feb 2005 02:29
Re: Namespaces and XCAP
Jonathan Rosenberg <jdrosen <at> cisco.com>
2005-02-01 01:29:05 GMT
2005-02-01 01:29:05 GMT
This particular behavior in XPath 1.0 is IMHO a bug, and appears to have been corrected in XPath 2.0. We are not normatively dependent on XPath, so we can do what we choose. I would propose that the application usage specify the default namespace. Otherwise, every single XCAP URI will need to contain a xmlns() xpointer expression declaring the default namespace for the documents, all of which are likely to use the target namespace as the default. If we specify this, an xcap expression would be compatible with xpath 2.0 I believe. -Jonathan R. Nelson Hung wrote: > I agree that 5(A) is the best option. > > But one thing about default namespace, XPath Specification 1.0 explicitly > disallows the use of default namespace in an XPath expression... > > > http://www.w3.org/TR/xpath#node-tests > > > "A QName in the node test is expanded into an expanded-name using the > namespace declarations from the expression context. This is the same way > expansion is done for element type names in start and end-tags except that > the default namespace declared with xmlns is not used: if the QName does not(Continue reading)
RSS Feed