http://nagoya.apache.org/bugzilla/show_bug.cgi?id=2357

*** shadow/2357 Wed Jun 27 09:29:51 2001
--- shadow/2357.tmp.5442        Wed Jun 27 09:29:51 2001
***************
*** 0 ****
--- 1,40 ----
+ +============================================================================+
+ | Pb when no default namespace in XML Schema substitutionGroup               |
+ +----------------------------------------------------------------------------+
+ |        Bug #: 2357                        Product: Xerces-J                |
+ |       Status: NEW                         Version: 1.4.1                   |
+ |   Resolution:                            Platform: Other                   |
+ |     Severity: Normal                   OS/Version: Other                   |
+ |     Priority: Other                     Component: Schema-Structures       |
+ +----------------------------------------------------------------------------+
+ |  Assigned To: [EMAIL PROTECTED]                                  |
+ |  Reported By: [EMAIL PROTECTED]                                       |
+ |      CC list: Cc:                                                          |
+ +----------------------------------------------------------------------------+
+ |          URL:                                                              |
+ +============================================================================+
+ |                              DESCRIPTION                                   |
+ If there is no default namespace in an XML Schema, crashes 
+ with substitutionGroup :
+ 
+ <xsd:schema xmlns:xsd='http://www.w3.org/2001/XMLSchema'
+       targetNamespace='http://www.inria.fr/acacia'>
+ 
+ <xsd:element name='doc'  type='xsd:string'/>
+ <xsd:element name='doc2' type='xsd:string' substitutionGroup='doc'/>
+ </xsd:schema>
+ 
+ [Error] tmp.xml:5:3: Schema error: couldn't find a schema grammar with target
+ namespace .
+ java.lang.ArrayIndexOutOfBoundsException: -1
+         at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1094)
+         at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1122)
+         at sax.SAXWriter.print(SAXWriter.java:163)
+         at sax.SAXWriter.main(SAXWriter.java:456)
+ 
+ It does not happen if a default namespace is defined, e.g. :
+ 
+ <xsd:schema
+       xmlns:xsd='http://www.w3.org/2001/XMLSchema'
+       targetNamespace='http://www.inria.fr/acacia'
+       xmlns='http://www.inria.fr/acacia'>
\ No newline at end of file

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to