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

Inheritance with Schemas

  • To: <xml-dev@l...>
  • Subject: Inheritance with Schemas
  • From: "Federico Andres Lois" <flois@m...>
  • Date: Tue, 18 May 2004 16:22:53 -0300

inheritance in schemas
 Hi all I am a newbie in XML and this list. Sorry in advance if this
question had been responded countless times before. (I just need a little of
direction).

I have the following problem. I have 2 XML schemas, one is some sort of
master document that defines a template for extension. 

<elementInTemplate1>
    <elementInTemplate2>
        <elementDefinedLater> ..{more info here}.. </elementDefinedLater>
    </elementInTemplate2>
    <elementInTemplate3>
        <elementDefinedLater2> ..{more info here}.. </elementDefinedLater2>
    </elementInTemplate3>
</elementInTemplate1>

Now I have created a complexType for <elementInTemplate2> named
elementInTemplate2Type that has a sequence from 0 to unbounded any elements.
Now I need to know how to define that I want to use elementDefinedLater in
elementInTemplate2 instead of elementDefinedLater2...

Or what would be the same, how can I left elementInTemplate2 open to
specialization while retaining validation without using xs:any elements.

Thanks you very much in advance

Federico Andres Lois
Software Developer
Bahia Blanca - Argentina

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.