But is there anything in the namespace spec that says that the URL for a
namespace cannot be empty? I didn't see anything that said that, which is
why I provided a real URL for the global namespace to map to. Personally I
think that they should have provided one, since its not true that they
aren't in any namespace. They are in the global namespace, which is a well
defined namespace that's treated as a separate entity.

--------------
Dean Roddey
Software Geek Extraordinaire
Portal, Inc
[EMAIL PROTECTED]



-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 02, 2001 3:56 AM
To: [EMAIL PROTECTED]
Subject: Re: Namespace problem in latest code



The problem is that my SAX2 ContentHandler is being called with the URI.  I
don't think that makes sense at all.  If an element is not mapped to a
namespace, then it should not have a namespace URI passed to startElement
().  I also don't think that if I build an instance of a DOM from that same
xml, that should have that element with a namespace URI.

I'm sure that the original behavior was for it to be mapped to the internal
"empty" URI, which makes sense, since that's an empty string.

Dave



 

                    Dean Roddey

                    <droddey@charmed        To:
[EMAIL PROTECTED]                                              
                    quark.com>              cc:     (bcc: David N
Bertoni/CAM/Lotus)                                         
                                            Subject:     Re: Namespace
problem in latest code                                
                    04/02/2001 03:45

                    AM

                    Please respond

                    to xerces-c-dev

 

 




That's the URL for the xml prefix. Not sure how it started getting used for
the default namespace. The parser did, perhaps a little unconventionally,
assign a proprietary URL to the global namespace, if I remember correctly.
There wasn't one defined for it, and it didn't make any sense for it not to
map to something (since otherwise all code would have to special case for
it), so we mapped it to some internally used URL. Perhaps that was what
this
was doing originally and somehow it got changed to another URL?

--------------------------
Dean Roddey
The CIDLib C++ Frameworks
Charmed Quark Software
[EMAIL PROTECTED]
http://www.charmedquark.com

"I'm not sure how I feel about ambivalence"


----- Original Message -----
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, April 01, 2001 6:53 PM
Subject: Namespace problem in latest code


> I just pulled down the latest Xerces code and rebuilt it.  Now, all
> elements without a prefix are being assigned the URI
> "http://www.w3.org/XML/1998/namespace"
>
> I just can't believe this is correct.  I traced the problem to line 2726
of
> XMLScanner.cpp, where the URI is assumed to be the XML namespace URI
unless
> found.
>
>     unsigned int uriId = fXMLNamespaceId;
>
> Can anyone comment on why this was done, and whether or not they think
it's
> a bug?
>
> Thanks,
>
> Dave
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to