[jdom-interest] Namespace.hashcode patch

bob mcwhirter bob at werken.com
Thu May 31 11:43:22 PDT 2001


On Thu, 31 May 2001, Elliotte Rusty Harold wrote:

> At 8:17 AM -0500 5/31/01, philip.nelson at omniresources.com wrote:
> 
> >This will not work.  In SOAP and other xml applications the prefix is quite
> >significant.  A prefix used in one element is part of an attribute value
> >later and the processor ties them together that way.
> 
> Are you absolutely sure of this? If so, it's a major flaw in SOAP. If 
> so it's a major flaw in SOAP. Processors should tie things together 
> based on namespace URIs, not prefixes. Can you provide an example of 
> what you mean?

It's the same as XSL, really.

	<some-xsl-element xmlns:foo="http://foo.org/">
		<value-of select="foo/bar/foo:baz"/>
	</some-xsl-element>

Here, the prefix of 'foo' is meaningful to the xpath expression
which is the value of an attribute on a different element.

	-bob




More information about the jdom-interest mailing list