I would like to select an attribute based on its parent element.
One way to do it is the following:
<xsl:template match="@Name[name(..) = 'EntityType' and namespace-uri(..)= 'http://schemas.microsoft.com/ado/2008/09/edm']">
Is it possible to do it in a shorter way – something similar to (whic does not work)
@Name[../edm:EntiyType]
Namespace prefixes are already defined in the document (I can for example select //*/edm:EntityType)
Thanks,
Matra
Depending how you apply your templates the following should work