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

Extension of xs:anyType

From: Pete Cordell <petexmldev@tech-know-ware.com>
Date: Thu, 1 Jun 2006 10:43:16 +0100
Message-ID: <001201c6855f$efcf10b0$0600a8c0@RW>
To: <xmlschema-dev@w3.org>
xs anytype

I've been looking at the HL7 schema and I see that a type is defined to be 
an extension of an xs:anyType, as shown below...

 <xsd:complexType name="varies">
  <xsd:complexContent>
   <xsd:extension base="xsd:anyType"/>
  </xsd:complexContent>
 </xsd:complexType>

This type is then used in the following situation...

  <xsd:complexType name="MFA.5.CONTENT">
    <xsd:complexContent>
      <xsd:extension base="varies">
        <xsd:attributeGroup ref="MFA.5.ATTRIBUTES"/>
      </xsd:extension>
    </xsd:complexContent>
  </xsd:complexType>

What sorts of XML instances does this map to?  Also, what would you expect 
(in an ideal world!) a data binding tool to do in this context?

I notice that the uses only add attributes.  Could the construct also have 
elements added to it?

Is there a section of the spec I should look at to describe this?

Thanks for any explanations.  (Apologies if this is an FAQ!)

Pete.
--
=============================================
Pete Cordell
Tech-Know-Ware Ltd
                         for XML to C++ data binding visit
                         http://www.tech-know-ware.com/lmx
                         (or http://www.xml2cpp.com)
=============================================
Received on Thursday, 1 June 2006 09:44:25 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.