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

RE: [XML Schema 1.1] Multiple inheritable attributes with the same name ... who wins?

From: Costello, Roger L. <costello@mitre.org>
Date: Wed, 1 Jul 2009 12:24:49 -0400
To: "xmlschema-dev@w3.org" <xmlschema-dev@w3.org>
Message-ID: <9E51F88D5247B648908850C35A3BBB500400458C45@IMCMBX3.MITRE.ORG>
RE: [XML Schema 1.1] Multiple inheritable attributes with the same  name ... who wins?
 
Hi Folks,

If there are multiple inheritable attributes up an element's ancestor chain - all with the same name - which one applies? Is it:

  - the closest one?
  - the furthest one?
  - an error?

/Roger

> -----Original Message-----
> From: Costello, Roger L. 
> Sent: Tuesday, June 30, 2009 9:56 AM
> To: xmlschema-dev@w3.org
> Subject: [XML Schema 1.1] Multiple inheritable attributes 
> with the same name ... who wins?
> 
> 
> Hi Folks,
> 
> Suppose a <Beverage> element has multiple ancestor elements 
> with an inheritable attribute, start-time. The <Beverage> 
> element has an <assert> or <alternative> element that 
> references start-time. Which start-time applies?
> 
> Example: Suppose each start-time attribute is inheritable:
> 
> --------------------------------------
> <Conference start-time="08:00:00">
> 
>     <Meeting start-time="13:00:00">
>         
>         <Beverage>Juice</Beverage>
> 
>     </Meeting>
> 
> </Conference>
> --------------------------------------
> 
> Suppose <Beverage> has an <assert> element:
> 
>     <assert test="@start-time lt 12:00:00" />
> 
> If the <Meeting> element's start-time applies then the 
> instance data is invalid.
> 
> If the <Conference> element's start-time applies then the 
> instance data is valid.
> 
> Which start-time applies?
> 
> /Roger
Received on Wednesday, 1 July 2009 16:25:26 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.