Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


inheritable attribute declarations

From: Mukul Gandhi <gandhi.mukul@-----.--->
To: xmlschema-dev@--.---
Date: 8/13/2009 4:42:00 AM
Hi all,
   I have following questions about inheritable attributes, in XML Schema 1.1.

1. supposing there is an attribute declaration, like following:

(a global declaration, and child of xs:schema element)

<xs:attribute name="TEST_ATTR" type="xs:integer" />

then, can I define an attribute reference like following?

(part of complex type definition)

<xs:attribute ref="TEST_ATTR" inheritable="true" />

i.e, can inheritable=xs:boolean flag be present on <xs:attribute
ref=... declaration?

I think, so we can do this like. But just wanted to check, from the list.

2. supposing, we have following attribute declarations present in XML
Schema 1.1:

(a global declaration, and child of xs:schema element)

<xs:attribute name="TEST_ATTR" type="xs:integer" inheritable="false" />

(part of complex type definition)

<xs:attribute ref="TEST_ATTR" inheritable="true" />

These two attribute declarations have conflicting
inheritable=xs:boolean values (one is true, and other is false).

Should the XML Schema 1.1 processor, give an error in this case? or,
one of the inheritable declarations (either name=.. or ref=..) will
take precedence (if yes, then which one)?


-- 
Regards,
Mukul Gandhi



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