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/11/01 03:07:29 UTC

element decl

Is it valid to have a local and global ref with the same name at the same
level. How does xerces handle it.
 <element name="Book">
 <xsd:complexType>
       <xsd:choice>
	<xsd:element ref="Title">
	<xsd:element name = "Title" type="xsd:string">
      </xsd:choice>
 </xsd:complexType>
</xsd:element>

 If the XML reads 
 <Book>
    <Title> - What title am I talking about. Local or global one??

Kiran
 

	

---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org


RE: element decl

Posted by David Cleary <da...@progress.com>.
If local elements are unqualified, and the schema has a target namespace,
then that would be fine. Otherwise, it would be impossible for the validator
to know what it is validating against.

David Cleary
the Progress Company

> -----Original Message-----
> From: Bagepalli, Kiran [mailto:kbagepalli@informatica.com]
> Sent: Thursday, October 31, 2002 9:07 PM
> To: xerces-c-dev@xml.apache.org
> Subject: element decl
>
>
> Is it valid to have a local and global ref with the same name at the same
> level. How does xerces handle it.
>  <element name="Book">
>  <xsd:complexType>
>        <xsd:choice>
> 	<xsd:element ref="Title">
> 	<xsd:element name = "Title" type="xsd:string">
>       </xsd:choice>
>  </xsd:complexType>
> </xsd:element>
>
>  If the XML reads
>  <Book>
>     <Title> - What title am I talking about. Local or global one??
>
> Kiran
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
> For additional commands, e-mail: xerces-c-dev-help@xml.apache.org
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org