fwd'd back to the list for archival purposes.
-bob
---------- Forwarded message ----------
To: Erwin Bolwidt <[EMAIL PROTECTED]>
From: bob mcwhirter <[EMAIL PROTECTED]>
Date: Sun, 23 Sep 2001 09:47:18 -0400 (EDT)
Subject: Re: Namespace URI: null or ""?
Cc: James Strachan <[EMAIL PROTECTED]>
On Sun, 23 Sep 2001, Erwin Bolwidt wrote:
> Hi Bob, James,
>
> The choice to use null or "" for unspecified namespaces must be made; I'm
> noticing in my implementation of xupdate now that it currently causes
> problems.
I use the empty-string, as I thought that the empty-string denotes an
'unset' prefix.
ie:
xmlns="" unsets the default namespace.
> I have a strong preference for null instead of "", but an even stronger
> preference for something consistent that's also written down in the
> javadoc of the Navigator interface.
Either way is fine by me really. null is probably more efficient than
checking for "".equals( prefix ).
> I'm a bit confused as to who is currently 'in charge' of the project; I
> guess no one really, but I don't mind if someone has to make the decision
> on issues that are arbitrary.
I think I wear that hat. But I pass it around fairly often, too.
> I think there are some specs that suggest that a special value that is not
> the empty string is a what is needed.
Okay, let's use 'null'. I hereby declare it.
> I am much in favor of using null; from the specs/implementations I've
> checked, only JDOM and DOM4J use the empty string.
Well, let's use null.
> I would like to change the DocumentNavigator classes of JDOM and DOM4J to
> translate an empty string to a null in the getElementNamespaceUri and
> getAttributeNamespaceUri methods.
> After that I'd like to add javadoc to org.jaxen.Navigator that is specific
> about this.
Great! Commit away!
> If no decision is made; a lot of code still needs to be adapted to accept
> either.
Decision has been made. You convinced me of 'null'.
-bob
_______________________________________________
Jaxen-interest mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jaxen-interest