Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Any element with specific attributes and children

From: "Solmaz, Metin" <Metin.Solmaz@-------.--->
To: <xmlschema-dev@--.--->
Date: 10/11/2005 5:21:00 PM
Hi,
 
I am trying to use the <any> element, but with specific attributes and
specific children. I'd like to demonstrate this by using a RelaxNG
Compact definition:
 
----------------------
start = myRoot
 
myRoot = element MyRoot
{
 myRootChild *
}
 
myRootChild = element *
{
 myRootChildAttributes
 , myRootChildChildren
}
 
myRootChildAttributes =
(
 attribute attr1 {string}
 , attribute attr2 {string}
)
 
myRootChildChildren =
(
 specificElement *
)
 
specificElement = element Specific
{
 myRootChild *
}
----------------------
 
The <any> element in the XML Schema looks as follows
 
----------------------
<xs:group name="myRootChild">
    <xs:sequence>
      <xs:any processContents="skip"/>
    </xs:sequence>
</xs:group>
----------------------
  
I am unable to specify that the <any> element must contain certain
specific attributes (attr1 and attr2) and certain children (Specific).
Is this possible at all in XML Schema?
 
Regards,
Metin Solmaz

#########################################################################=
############
This e-mail message has been scanned for Viruses and Content and cleared =

by NetIQ MailMarshal
#########################################################################=
############


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