You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-dev@xerces.apache.org by "Ralf I. Pfeiffer" <rp...@us.ibm.com> on 2000/04/04 23:15:46 UTC

call for vote (+1): Turn Namespaces OFF by default in SAXParser

Validation turned on  and Namespaces turned on does not work together
due to the limitations of DTDs. DTDs are not namespace aware.

You can sort of validate, if you declare a content model for EVERY
prefix:element pair in your DTD.

Otherwise validation should work fine. Note that the SAX 2 Beta 2 states

 that Namespaces should be turned on. This means that there will be
trouble
with SAX validation.

We should really consider non-compliance with SAX 2 beta 2 on this
point, since it breaks existing XML. I don't think they have thought
out the consequences.

For the SAXParser, I  vote +1 to go back to this default:
parser.setFeature( "http://xml.org/sax/features/namespaces",false );

<person name="Ralf I. Pfeiffer"
 loc="IBM JTC, Cupertino, CA"
 email1="rpfeiffe@us.ibm.com"
 email2="rpfeiffe@apache.org"
/>



Re: call for vote (+1): Turn Namespaces OFF by default in SAXParser

Posted by Ted Leung <tw...@sauria.com>.
I'd like to see this brought up to Megginson for review for SAX2 Beta 3
or Final.

Until we have had this discussion with him,  I vote -1.

Unfortunately, standards are sometimes stupid.  If one of the goals of
the project is to conform to standards, then we better conform.  Otherwise
we can just go back to sexpr's (and you know that would make me happier).

Ted
----- Original Message ----- 
From: "Ralf I. Pfeiffer" <rp...@us.ibm.com>
To: <xe...@xml.apache.org>
Sent: Tuesday, April 04, 2000 2:15 PM
Subject: call for vote (+1): Turn Namespaces OFF by default in SAXParser


> Validation turned on  and Namespaces turned on does not work together
> due to the limitations of DTDs. DTDs are not namespace aware.
> 
> You can sort of validate, if you declare a content model for EVERY
> prefix:element pair in your DTD.
> 
> Otherwise validation should work fine. Note that the SAX 2 Beta 2 states
> 
>  that Namespaces should be turned on. This means that there will be
> trouble
> with SAX validation.
> 
> We should really consider non-compliance with SAX 2 beta 2 on this
> point, since it breaks existing XML. I don't think they have thought
> out the consequences.
> 
> For the SAXParser, I  vote +1 to go back to this default:
> parser.setFeature( "http://xml.org/sax/features/namespaces",false );
> 
> <person name="Ralf I. Pfeiffer"
>  loc="IBM JTC, Cupertino, CA"
>  email1="rpfeiffe@us.ibm.com"
>  email2="rpfeiffe@apache.org"
> />
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: xerces-j-dev-unsubscribe@xml.apache.org
> For additional commands, e-mail: xerces-j-dev-help@xml.apache.org
> 
> 
> 


Re: call for vote (+1): Turn Namespaces OFF by default in SAXParser

Posted by Brett McLaughlin <br...@earthlink.net>.

"Ralf I. Pfeiffer" wrote:
> 
> Validation turned on  and Namespaces turned on does not work together
> due to the limitations of DTDs. DTDs are not namespace aware.
> 
> You can sort of validate, if you declare a content model for EVERY
> prefix:element pair in your DTD.
> 
> Otherwise validation should work fine. Note that the SAX 2 Beta 2 states
> 
>  that Namespaces should be turned on. This means that there will be
> trouble
> with SAX validation.
> 
> We should really consider non-compliance with SAX 2 beta 2 on this
> point, since it breaks existing XML. I don't think they have thought
> out the consequences.
> 
> For the SAXParser, I  vote +1 to go back to this default:
> parser.setFeature( "http://xml.org/sax/features/namespaces",false );

I'm not a committer, but am strongly against this.  Yes, I know it was a
bad decision by David (IMO), but if you start being non-compliant even
in little details, it encourages non-compliance in slightly bigger
details, and on and on...

I am finishing up Java and XML for O'Reilly & Associates now, and have
to go into some depth explaining this very issue; it's a huge pain. 
Still, the fact that I can say Xerces is a SAX 2.0 (beta 2) compliant
parser is a very important thing in the community.  I highly urge you to
push Megginson to make a change, not change Xerces.

-Brett McLaughlin
Author, "Java and XML"
O'Reilly & Associates

> 
> <person name="Ralf I. Pfeiffer"
>  loc="IBM JTC, Cupertino, CA"
>  email1="rpfeiffe@us.ibm.com"
>  email2="rpfeiffe@apache.org"
> />
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: xerces-j-dev-unsubscribe@xml.apache.org
> For additional commands, e-mail: xerces-j-dev-help@xml.apache.org

Re: call for vote (+1): Turn Namespaces OFF by default in SAXParser

Posted by Norman Walsh <nd...@nwalsh.com>.
/ "Ralf I. Pfeiffer" <rp...@us.ibm.com> was heard to say:
| Otherwise validation should work fine. Note that the SAX 2 Beta 2 states
| 
|  that Namespaces should be turned on. This means that there will be
| trouble
| with SAX validation.

But only if you've used namespaces in your documents, right?  If
you're just using colonized names without namespace
declarations, that shouldn't be a problem.  If you've used
namespaces, presumably you want namespace processing.  (If
you've used namespaces but you don't expect namespace processing
to occur, your documents are broken, IMHO.)

-1
                                        Be seeing you,
                                          norm

-- 
Norman Walsh <nd...@nwalsh.com>      | We look back on our life as a
http://nwalsh.com/                 | thing of broken pieces, because
                                   | our mistakes and failures are
                                   | always the first to strike us, and
                                   | outweigh in our imagination what
                                   | we have accomplished and
                                   | attained.--Goethe


Re: call for vote (+1): Turn Namespaces OFF by default in SAXParser

Posted by Rajiv Mordani <Ra...@eng.sun.com>.
-1. I agree with Ted. The discussion if any on this should happen on
xml-dev. 

- Rajiv

--
:wq

On Tue, 4 Apr 2000, Ralf I. Pfeiffer wrote:

> Validation turned on  and Namespaces turned on does not work together
> due to the limitations of DTDs. DTDs are not namespace aware.
> 
> You can sort of validate, if you declare a content model for EVERY
> prefix:element pair in your DTD.
> 
> Otherwise validation should work fine. Note that the SAX 2 Beta 2 states
> 
>  that Namespaces should be turned on. This means that there will be
> trouble
> with SAX validation.
> 
> We should really consider non-compliance with SAX 2 beta 2 on this
> point, since it breaks existing XML. I don't think they have thought
> out the consequences.
> 
> For the SAXParser, I  vote +1 to go back to this default:
> parser.setFeature( "http://xml.org/sax/features/namespaces",false );
> 
> <person name="Ralf I. Pfeiffer"
>  loc="IBM JTC, Cupertino, CA"
>  email1="rpfeiffe@us.ibm.com"
>  email2="rpfeiffe@apache.org"
> />
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: xerces-j-dev-unsubscribe@xml.apache.org
> For additional commands, e-mail: xerces-j-dev-help@xml.apache.org
>