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

HL7 use of xs:anyType extension

  • To: "XML List Developers" <xml-dev@l...>
  • Subject: HL7 use of xs:anyType extension
  • From: "Pete Cordell" <petexmldev@t...>
  • Date: Tue, 6 Jun 2006 14:25:23 +0100

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>

I've seen (incorrect) comments on the web that say this is an attempt to 
define an empty element.  Is this HL7's intent?  Or is it just an attempt to 
map the name 'varies' to xsd:anyType?

The above 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 should this map to?  An empty element with 
attributes as defined in the attributeGroup?  Or, any number of attributes 
and element body content, that must also include the set of attributes 
defined in the attributeGroup?  i.e. is this some way of defining an 
extensible instance?

Thanks for any explanations.

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)
=============================================



PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

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-2013 All Rights Reserved.