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 bu...@apache.org on 2001/05/01 02:23:45 UTC
[Bug 1584] New - XMLSchema handling somehow broken?
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=1584
*** shadow/1584 Mon Apr 30 17:23:45 2001
--- shadow/1584.tmp.24434 Mon Apr 30 17:23:45 2001
***************
*** 0 ****
--- 1,94 ----
+ +============================================================================+
+ | XMLSchema handling somehow broken? |
+ +----------------------------------------------------------------------------+
+ | Bug #: 1584 Product: Xerces-J |
+ | Status: NEW Version: 1.3.1 |
+ | Resolution: Platform: Sun |
+ | Severity: Normal OS/Version: Solaris |
+ | Priority: Component: Schema-Structures |
+ +----------------------------------------------------------------------------+
+ | Assigned To: xerces-j-dev@xml.apache.org |
+ | Reported By: marco.walther@eng.sun.com |
+ | CC list: Cc: |
+ +----------------------------------------------------------------------------+
+ | URL: |
+ +============================================================================+
+ | DESCRIPTION |
+ I've a little example *.xsd and *.xml file to show my problem. This works ok
+ with the 1.3.0 version but 1.3.1. complains about it:-( I don't think there is
+ anything wrong with the code?
+
+ $ java -classpath
+ /tmp/xerces-1_3_1/xerces.jar:/tmp/xerces-1_3_1/xercesSamples.jar sax.SAXCount -v
+ E.xml
+ [Error] E.xml:6:7: Element type "t" must be declared.
+ [Error] E.xml:7:15: Element type "d" must be declared.
+ [Error] E.xml:7:15: Attribute "c" must be declared for element type "d".
+ E.xml: 1243 ms (5 elems, 3 attrs, 15 spaces, 9 chars)
+ $ java -classpath
+ /tmp/xerces-1_3_0/xerces.jar:/tmp/xerces-1_3_0/xercesSamples.jar sax.SAXCount -v
+ E.xml
+ E.xml: 1285 ms (5 elems, 3 attrs, 24 spaces, 0 chars)
+ $ java -version
+ java version "1.3.0"
+ Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0)
+ Java HotSpot(TM) Client VM (build 1.3.0, mixed mode)
+ $ cat E.xml
+ <?xml version="1.0" encoding="UTF-8"?>
+ <a xmlns:xsi="http://www.w3.org/2000/10/XMLSchema-instance"
+ xsi:noNamespaceSchemaLocation="./P.xsd">
+ <s>
+ <m>
+ <t>
+ <d c="i"/>
+ </t>
+ </m>
+ </s>
+ </a>
+ $ cat P.xsd
+ <?xml version="1.0" encoding="UTF-8"?>
+ <!-- Generated by XML Authority.
+ Conforms to w3c http://www.w3.org/2000/10/XMLSchema -->
+ <xsd:schema xmlns:xsd="http://www.w3.org/2000/10/XMLSchema"
+ elementFormDefault="qualified">
+
+ <xsd:complexType name="ts">
+ <xsd:choice>
+ <xsd:element name="d" type="td"/>
+ </xsd:choice>
+ </xsd:complexType>
+
+ <xsd:complexType name="td">
+ <xsd:choice minOccurs="0" maxOccurs="1">
+ <xsd:element name="s" type="st"/>
+ </xsd:choice>
+ <xsd:attribute name="c" use="required" type="xsd:string"/>
+ </xsd:complexType>
+
+ <xsd:complexType name="st">
+ <xsd:sequence>
+ <xsd:element name="t" type="ts" minOccurs="0"/>
+ <xsd:element name="m" type="mt" minOccurs="0"/>
+ </xsd:sequence>
+ </xsd:complexType>
+
+ <xsd:complexType name="mt">
+ <xsd:sequence>
+ <xsd:element name="t" type="ts"/>
+ </xsd:sequence>
+ </xsd:complexType>
+
+ <xsd:element name="a">
+ <xsd:complexType>
+ <xsd:sequence>
+ <xsd:element name="s" type="st"/>
+ </xsd:sequence>
+ </xsd:complexType>
+ </xsd:element>
+ </xsd:schema>
+ $ /bin/uname -a
+ SunOS jena 5.8 Generic sun4u sparc SUNW,Ultra-5_10
+
+
+ Thanks,
+ -- Marco
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-dev-help@xml.apache.org