Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: Are two schemas different content models?

From: George Cristian Bina <george@---------.--->
To: Daniel.Dui@---.---
Date: 1/23/2007 4:27:00 PM
You also cannot have two global elements with the same name in a schema, 
see point 2 from
http://www.w3.org/TR/xmlschema-1/#sch-props-correct

Best Regards,
George
---------------------------------------------------------------------
George Cristian Bina
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
www.---.com


Daniel.Dui@u... wrote:
> This topic probably has come up before, but here is my question=85
> 
> I have two schemas (schema1 and schema2) and one namespace (ns). The 
> top-level elements in the schemas have the same name (topelem), but 
> different types (type1 and type2).
> 
> As far as I know the schema specs forbids having two elements with the 
> same name and different type in the same content model. To me, two 
> schemas are very different content models, but tools don=92t seem to th=
ink so.
> 
> For example XML Beans gives an error saying that if finds a duplicate 
> global element if I try to compile schema1 and schema2.
> 
> Can anyone shed some light?
> 
> Many thanks in advance
> 
> -daniel
> 
> 
> -----------------------------------------------------------------------=
-
> 
> 
> Visit our website at http://www.ubs.com
> 
> This message contains confidential information and is intended only 
> for the individual named.  If you are not the named addressee you 
> should not disseminate, distribute or copy this e-mail.  Please 
> notify the sender immediately by e-mail if you have received this 
> e-mail by mistake and delete this e-mail from your system.
> 
> E-mail transmission cannot be guaranteed to be secure or error-free 
> as information could be intercepted, corrupted, lost, destroyed, 
> arrive late or incomplete, or contain viruses.  The sender therefore 
> does not accept liability for any errors or omissions in the contents 
> of this message which arise as a result of e-mail transmission.  If 
> verification is required please request a hard-copy version.  This 
> message is provided for informational purposes and should not be 
> construed as a solicitation or offer to buy or sell any securities or 
> related financial instruments.
> 
> UBS Limited is a company registered in England & Wales under company
> number 2035362, whose registered office is at 1 Finsbury Avenue,
> London, EC2M 2PP, United Kingdom.
> 
> UBS AG (London Branch) is registered as a branch of a foreign company
> under number BR004507, whose registered office is at
> 1 Finsbury Avenue, London, EC2M 2PP, United Kingdom.
> 
> UBS Clearing and Execution Services Limited is a company registered
> in England & Wales under company number 03123037, whose registered
> office is at 1 Finsbury Avenue, London, EC2M 2PP, United Kingdom.

From mike@s... Tue Jan 23 12:37:54 2007
Received: from aji.w3.org ([133.27.228.225])
	by fr


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent