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 zo...@ca.ibm.com on 2001/03/16 17:40:53 UTC

Bugzilla defect 548

Hello,

     According to defect report 548:

   1.3.0 DOMParser feature "http://xml.org/features/dom/namespaces" appears
   to default to true contrary to documentation at /docs/html/features.html

Features for both SAX and DOM parsers in Xerces are set using the same SAX2
setFeature method, so I'm assuming that it was the intent that the defaults
should be the same for both.  If that assumption is incorrect, someone
please let me know.

      I checked the SAX2 documentation (
http://www.megginson.com/SAX/Java/namespaces.html), and it states that:

   SAX2 adds XML Namespace support, which is required for higher-level
   standards like XSL, XML Schemas, RDF, and XLink. Every implementation of
   the SAX2 XMLReader interface is required to support Namespace processing
   as its default state. . . .


     I assume that means that the Xerces-J documentation of the default is
incorrect, while the parser implementation is correct.  The C++
documentation says that the feature is on by default.

     Here's a fix for the documentation in
xml-xerces/java/docs/features.xml:

diff -r1.13 features.xml
67c67
<                       <tr><th>Default:</th>   <td>false</td></tr>
---
>                       <tr><th>Default:</th>   <td>true</td></tr>

(See attached file: features.xml)

Thanks,

Henry
------------------------------------------------------------------------
Henry Zongaro      XML Parsers development
IBM SWS Toronto Lab   Tie Line 778-6044;  Phone (416) 448-6044
mailto:zongaro@ca.ibm.com