Hi Arnaud and all,

> What might be useful is a convenience function that lets the user know
> what version needs to be used.

It's interesting to note that, in the current stable SAX 2.0.1 API, there
is no way to know which version of XML you're dealing with, forget
asserting that a particular version must be used!  The SAX2 Extensions
1.1--which have been in beta for nearly years--do provide a means for doing
this, but there's no prospect of them going final any time soon judging by
the activity in the SAX community...

If anyone has thoughts on what might be done to fix this, I personally
would certainly welcome them.  And especially with JAXP 1.3 having as a
goal to make this kind of thing possible, now would seema propitious time
for such a discussion.

Cheers!
Neil
Neil Graham
XML Parser Development
IBM Toronto Lab
Phone:  905-413-3519, T/L 969-3519
E-mail:  [EMAIL PROTECTED]




                                                                                       
                                                
                      Arnaud Le Hors                                                   
                                                
                      <[EMAIL PROTECTED]        To:       [EMAIL PROTECTED]            
                                       
                      m>                       cc:                                     
                                                
                                               Subject:  Re: [ANNOUNCEMENT]: Xerces-J 
2.6.0 now available                              
                      11/21/2003 09:05                                                 
                                                
                      PM                                                               
                                                
                      Please respond to                                                
                                                
                      xerces-j-dev                                                     
                                                
                                                                                       
                                                
                                                                                       
                                                



Andy Clark wrote:
 > However, it
 > would be nice to have a setting that allows people
 > to make Xerces strictly enforce a specific version
 > over another.
 >

If somebody really wants this he/she can always have his/her own
configuration I suppose. But I don't see any use case for this so I
wouldn't spend resources on this.

What might be useful is a convenience function that lets the user know
what version needs to be used. Ideally you'd like the implementation to
set it automatically for you but it requires walking through the whole
document which works for DOM but not for SAX.

The way I understand our current serializer work is that it lets the
user specify what version to output and if the document contains
characters that don't match an error is raised during serialization.

One strategy for the application that wants to handle all documents
would then be to try 1.0 first and on error re-try with 1.1. However, if
you're sending the bits on the wire as you serialize this can be
expensive or even damaging. So, applications may find cheaper to always
produce 1.1 documents. I guess it really depends on the application...
--
Arnaud  Le Hors - IBM, XML Standards Strategy Group / W3C AC Rep.


---------------------------------------------------------------------
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