Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


RE: [XML Schema 1.1] Multiple inheritable attributes with the same

From: "Costello, Roger L." <costello@-----.--->
To: "xmlschema-dev@--.---" <-------------@--.--->
Date: 7/1/2009 4:27:00 PM
 
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@w...
> 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


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent