C
Cat
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
I'm having trouble getting my head around the reason the that following file
won't validate with the following error output in Xerces version 2.6.0 and
XSLTC version 2.5.2 ( from the standard jdk1.5.0 beta ). Is there something I'm
missing from the spec?
============ OUTPUT (wrapped) =================
cos-particle-restrict.2: Forbidden particle restriction:
'choice:all,sequence,elt'.
SAX Error:
System ID: file:///usr/local/websites/astro/test.xsd
Public ID: unknown
Column: 36 Line: 21
derivation-ok-restriction.5.4.2: Error for type 'restricted'.
The particle of the type is not a valid restriction of the particle of the base
SAX Error:
System ID: file:///usr/local/websites/astro/test.xsd
Public ID: unknown
Column: 36 Line: 21
============== XMLSCHEMA ===============
<?xml version="1.0"?>
<xs:schema targetNamespace="test"
elementFormDefault="qualified" attributeFormDefault="unqualified"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns="test">
<xs:group name="myGroup" >
<xs:choice>
<xs:element name="two" type="xs:token"/>
<xs:element name="three" type="xs:token"/>
</xs:choice>
</xs:group>
<xs:complexType name="base">
<xs:sequence>
<xs:group ref="myGroup"/>
<xs:element name="one" type="xs:token" minOccurs="0"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="restricted">
<xs:complexContent>
<xs:restriction base="base">
<xs:group ref="myGroup"/>
</xs:restriction>
</xs:complexContent>
</xs:complexType>
<xs:element name="root" type="restricted"/>
</xs:schema>
============== XML FILE ====================
<root xmlns="test" xsi:schemaLocation="test test.xsd"
xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'>
<three/>
</root>
- --
Cat
http://www.ratrobot.com/java/pollhandler/ A simple Java Servlet
that takes referrals from web polls and allows you to easily display the
results with jsp pages.
Wed Jun 23 22:32:13 UTC 2004
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
iD8DBQFA2gTtKHRjYtwQ1QARAon4AKDcX8r+nyBO140Fhr7QS0NnZOEzOQCfQ8jf
4lEpIbLzrCY5/rq3L8RvAdU=
=mksV
-----END PGP SIGNATURE-----
Hash: SHA1
I'm having trouble getting my head around the reason the that following file
won't validate with the following error output in Xerces version 2.6.0 and
XSLTC version 2.5.2 ( from the standard jdk1.5.0 beta ). Is there something I'm
missing from the spec?
============ OUTPUT (wrapped) =================
cos-particle-restrict.2: Forbidden particle restriction:
'choice:all,sequence,elt'.
SAX Error:
System ID: file:///usr/local/websites/astro/test.xsd
Public ID: unknown
Column: 36 Line: 21
derivation-ok-restriction.5.4.2: Error for type 'restricted'.
The particle of the type is not a valid restriction of the particle of the base
SAX Error:
System ID: file:///usr/local/websites/astro/test.xsd
Public ID: unknown
Column: 36 Line: 21
============== XMLSCHEMA ===============
<?xml version="1.0"?>
<xs:schema targetNamespace="test"
elementFormDefault="qualified" attributeFormDefault="unqualified"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns="test">
<xs:group name="myGroup" >
<xs:choice>
<xs:element name="two" type="xs:token"/>
<xs:element name="three" type="xs:token"/>
</xs:choice>
</xs:group>
<xs:complexType name="base">
<xs:sequence>
<xs:group ref="myGroup"/>
<xs:element name="one" type="xs:token" minOccurs="0"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="restricted">
<xs:complexContent>
<xs:restriction base="base">
<xs:group ref="myGroup"/>
</xs:restriction>
</xs:complexContent>
</xs:complexType>
<xs:element name="root" type="restricted"/>
</xs:schema>
============== XML FILE ====================
<root xmlns="test" xsi:schemaLocation="test test.xsd"
xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'>
<three/>
</root>
- --
Cat
http://www.ratrobot.com/java/pollhandler/ A simple Java Servlet
that takes referrals from web polls and allows you to easily display the
results with jsp pages.
Wed Jun 23 22:32:13 UTC 2004
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
iD8DBQFA2gTtKHRjYtwQ1QARAon4AKDcX8r+nyBO140Fhr7QS0NnZOEzOQCfQ8jf
4lEpIbLzrCY5/rq3L8RvAdU=
=mksV
-----END PGP SIGNATURE-----