You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-users@xerces.apache.org by sa...@ca.ibm.com on 2001/07/10 00:05:55 UTC
Re: Recursive declarations in XML Schema
Hi Armin,
Thanks for reporting this bug. There was some problem handling recursive
declaration involving "group". Now it's fixed in CVS.
Cheers,
Sandy Gao
Software Developer, IBM Canada
(1-416) 448-3255
sandygao@ca.ibm.com
Armin Müller
<da...@web.de> To: xerces-j-user@xml.apache.org
cc:
07/09/2001 Subject: Recursive declarations in XML Schema
10:40 PM
Please respond
to
xerces-j-user
I'm using Xerces 1.4.1 and when i use the xerces-sample DOMCount to
validate example.xml against the scheme MLterm.xsd I get this error
messages:
[Error] example.xml:8:15: Element type "Dollar" must be declared.
[Error] example.xml:9:17: Element type "_tuple" must be declared.
Can you tell me what is wrong with my recursive definition or is there a
bug in xerces?
Thanks,
Armin
<?xml version="1.0" encoding="iso-8859-1"?>
<schema xmlns="http://www.w3.org/2001/XMLSchema"
xmlns:isaxml="http://isabelle.in.tum.de/ISAXML"
targetNamespace="http://isabelle.in.tum.de/ISAXML"
elementFormDefault="qualified">
<element name="isaterm">
<complexType>
<choice minOccurs="0" maxOccurs="unbounded">
<element ref="isaxml:int"/>
<group ref="isaxml:term"/>
</choice>
</complexType>
</element>
<element name="int">
<complexType>
<attribute name="value" type="integer"/>
</complexType>
</element>
<group name="term">
<choice>
<element name="Bound" type="isaxml:Bound"/>
<element name="Dollar" type="isaxml:Dollar"/>
</choice>
</group>
<complexType name="Bound">
<sequence>
<element ref="isaxml:int"/>
</sequence>
</complexType>
<complexType name="Dollar">
<sequence>
<element name="_tuple">
<complexType>
<sequence>
<group ref="isaxml:term"/>
<group ref="isaxml:term"/>
</sequence>
</complexType>
</element>
<element ref="isaxml:int"/>
</sequence>
</complexType>
</schema>
<?xml version="1.0" encoding="iso-8859-1"?>
<isaterm xmlns="http://isabelle.in.tum.de/ISAXML"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://isabelle.in.tum.de/ISAXML MLterm.xsd">
<Dollar>
<_tuple>
<Dollar>
<_tuple>
<Bound>
<int value="0"/>
</Bound>
<Bound>
<int value="1"/>
</Bound>
</_tuple>
<int value="5"/>
</Dollar>
<Bound>
<int value="2"/>
</Bound>
</_tuple>
<int value="5"/>
</Dollar>
</isaterm>
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-user-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-user-help@xml.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-user-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-user-help@xml.apache.org
Re: Recursive declarations in XML Schema
Posted by Armin Mueller <Da...@web.de>.
Thanks for the quick reply. I've downloaded the latest development snapshot
and now most of recursive declarations are validated correctly. But I've
still a problem with one XSD-File, also including a recursive declaration. I
get following error messages:
[Error] example02.xml:14:19: Element type "_tuple" must be declared.
[Error] example02.xml:18:27: Element type "Struct2.EndeT" must be declared.
[Error] example02.xml:19:18: The content of element type "_tuple" must match
"(string,int)".
I think there is still a problem.
Thanks,
Armin
On Tuesday 10 July 2001 00:05, you wrote:
> Hi Armin,
>
> Thanks for reporting this bug. There was some problem handling recursive
> declaration involving "group". Now it's fixed in CVS.
>
> Cheers,
> Sandy Gao
> Software Developer, IBM Canada
> (1-416) 448-3255
> sandygao@ca.ibm.com
>