You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@xerces.apache.org by "Bagepalli, Kiran" <kb...@informatica.com> on 2002/10/30 22:17:41 UTC
Error handling in schemas
<?xml version="1.0"?>
> <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
> targetNamespace="http://www.camera.org"
>
> elementFormDefault="qualified">
> <xsd:element name="camera1">
> <xsd:complexType>
> <xsd:sequence>
> <xsd:element ref="camera2"/>
> </xsd:sequence>
> </xsd:complexType>
> </xsd:element>
>
> <xsd:complexType name="camera2">
> <xsd:sequence>
> <xsd:element name="body1" type="xsd:decimal"/>
> </xsd:sequence>
> </xsd:complexType>
Technically complex types cannot be referred, but if I load my grammar, the
code does not seem to complain.
Infact it returns camera2 as a spec node for camera1.
Thanks
Kiran
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org