Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


RE: [XML Schema 1.1] XPath in cannot look up or down

From: "Michael Kay" <mike@--------.--->
To: "'Costello, Roger L.'" <costello@-----.--->, <xmlschema-dev@--.--->
Date: 5/11/2009 12:46:00 PM
Yes, that's correct. Well, almost correct. There's a new feature of
"inheritable attributes": if an attribute of an ancestor element of E is
declared as being inheritable, then you can refer to it in xs:alternative as
if it appeared on element E itself. This was put in specifically for
xml:lang, but it works equally well for other attributes that apply
throughout a subtree unless overridden.

Regards,

Michael Kay
http://www.saxonica.com/
http://twitter.com/michaelhkay 

> -----Original Message-----
> From: xmlschema-dev-request@w... 
> [mailto:xmlschema-dev-request@w...] On Behalf Of Costello, Roger L.
> Sent: 11 May 2009 13:17
> To: 'xmlschema-dev@w...'
> Subject: [XML Schema 1.1] XPath in <alternative> cannot look 
> up or down the tree, correct?
> 
> 
> Hi Folks,
> 
> I wish to confirm my understanding.
> 
> Here's an example that uses the <alternative> element:
> 
> <xs:element name="Publication" type="PublicationType">
>     <xs:alternative test="____" type="..." /> </xs:element>
> 
> 
> It is my understanding that the XPath expression in 
> test="____" must only reference attributes of Publication. It 
> cannot reference ancestors and it cannot reference descendants. 
> 
> That is, the XPath in an alternative element cannot look up 
> or down the tree.
> 
> Do I have a correct understanding?
> 
> /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