David,

I was making some namespace changes for schema, and may be that broke the default 
namespace
behavior.  Since the schema development is still in intermediate stage, some unstable 
code may
introduce.  I will try to fix it soon, but if possible, it is recommend you use the 
stable
release Xerces 1.4.

Tinny


[EMAIL PROTECTED] wrote:

> 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