Re: [Bug 7198] can inheritable attributes appear, on elements with simple types

Hi Noah,
   Thanks for your comments. I think, this was an important point,
that I needed to know.

In the link you cited (ref,
http://www.w3.org/TR/xmlschema11-1/#Inherited_attributes), it's
mentioned:

PSVI Contributions for element information items
[inherited attributes]

I find it hard, to understand the 2nd point:
2 Let O be A's [owner element]. A does not have the same expanded name
as another attribute which is also ·potentially inherited· by E and
whose [owner element] is a descendant of O.

I would be thankful, if you could please explain this with a simpler
explanation, perhaps with a small example.

On Thu, Aug 6, 2009 at 8:25 PM, <noah_mendelsohn@us.ibm.com> wrote:
> I think you are missing the fact that there is also a PSVI contribution
> associated with inherited attributes [1].  So, in addition to the ability
> to access them in the schema itself, there is the possibility that parsers
> would expose them and make them available through some means for
> downstream processing.  So, it would in principle be possible for an API
> exposing an element:
>
> <myText>Four score and seven years ago...</myText>
>
> to provide a method to query:  "What is the explicit or inherited value of
> xml:lang for this element?".  Of course, if myText is declared to be of
> simple type, such as xs:string, then there will never be an explicit
> xml:lang, but there might be an inherited.  The PSVI provides that
> explicit and inherited can be distinguished;  so, a parser that follows
> the PSVI will also indicate the distinction.
>
> Noah



-- 
Regards,
Mukul Gandhi

Received on Friday, 7 August 2009 03:42:50 UTC