[XMLSCHEMA-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Any element with specific attributes and children

From: Solmaz, Metin <Metin.Solmaz@solcorp.com>
Date: Tue, 11 Oct 2005 15:21:20 +0200
Message-ID: <138CC524A86F484EBB80F06FAAA78CAB1E4750@rotex1.rotterdam.solcorp.com>
To: <xmlschema-dev@w3.org>
attributes of children
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
#####################################################################################
Received on Wednesday, 12 October 2005 07:29:44 GMT

Subscribe to the Stylus Scoop newsletter for helpful XML tips and tutorials.
Email
First Name
Last Name
Company

Download Stylus Studio 6 XML Enterprise Edition

Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2007 All Rights Reserved.