I think the issue at hand here is really whether the SAX2 parser should
enable namespace processing by default. The core parser does not, and you
have to enable namespaces if you want to process them.
As for the more general issue, unless the W3C comes up with some way to
indicate inside the document itself whether it is a namespace conforming
document, there's little that can be done in the way of automatically
applying namespaces when its appropriate or not. We cannot know when its
appropriate.
If you turn off 'fail on first error' the parser will continue to process as
long as it feels like it can. The spec says we must stop on the first error,
unless specifically told to do otherwise.
--------------------------
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: "Perry A. Caro" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, April 02, 2001 1:52 PM
Subject: Re: A different namespace issue, bug?
> I just refreshed myself on the namespace spec, and it's true that there
are
> a lot of "MUST" and "REQUIRED" statements about conforming documents. For
> example, that a name with ":" MUST conform to the QName production for an
> XML document to conform to the Namespace spec.
>
> The question is, what about well-formed XML docs that don't intend to
> conform to the Namespace spec? Should they receive a fatal error when
> default settings are used in the parser? I don't think so. Again, I
think
> that particular error should be a warning rather than a fatal error.
>
> Fatal Errors ought to be reserved for problems with well-formedness and/or
> validation. There is no recovery from such errors.
>
> In this case, however, the parser can recover and continue processing.
>
> The ability to turn off the namespace processing feature to workaround
this
> problem is better than nothing, but it doesn't work for all cases. If my
> application is designed to accept the widest set of well-formed XML
> documents, what settings do I use? Turning off namespace processing for
ALL
> input XML seems like overkill. Yet, if I want to handle legacy or unusual
> XML that has ":" in names, but does not intend to conform to the NS spec,
> what do I do?
>
> If I return from handling the fatal error in my error handler, will the
> parser proceed, or will it bail? If I can just suppress that particular
> error in my error handler, that provides me with a reasonable workaround.
>
> Perry
>
> ---------------------------------------------------------------------
> 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]