w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
Selecting node where attribute matches node value in XSLT

I always manage to figure it out ten minutes after asking...

Here is how to do it:

<xsl:variable name="relationName" select="ars:Relation/@Name"
/>
<xsl:value-of
select="//xs:schema/xs:element/xs:keyref[@name=$relationName]"/>




© Copyright 2018 w3hello.com Publishing Limited. All rights reserved.