Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


2 and only 2 level nested anonymous elements

From: "Yankui Feng" <yankui_feng@-------.--->
To: xmlschema-dev@--.---
Date: 7/29/2004 7:53:00 PM
Hi,

Do any of you know an elegant way in XML Schema to declare 2 and only 2 
level nested anonymous elements, which the second level elements must have a 
"xs:ID" type attribute?

For example:

<xf:instance>
  <my:paper xmlns:my="http://test.org">
      <my:author_name id="author_name"/>
      <my:paper_title    id="paper_title"/>
  </my:paper>
</xf:instance>

Within xf:instance, there must be 2 level nested elements and I don't know 
elements name, like my:paper, my:author_name, my:paper_title. In addition, 
the second level elements my:author_name and my:paper_title must have 
attribute id whose type is xsd:ID.


Your advice and an example or reference would be much appreciated!

Thanks,

- Yankui


From nobody@w...  Thu Jul 29 19:13:49 2004
Return-Path: <


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