Use <article class="banner-hero banner-hero--blocks" data-nav-title="{//Devices//SideMenu//NavTitle}"></article>
, that is called an attribute value template.
xsl data attribute not getting value showirorng > er
Question
I am trying to pass this value in data attribute but I don't know how to retrieve in XSL. Without putting it in data attribute, I am getting the value.
http://xsltransform.net/bFukv8i/9
Providing a snippet of my XSL code below:
<article class="banner-hero banner-hero--blocks" data-nav-title="<xsl:value-of select='//Devices//SideMenu//NavTitle'/>"></article>
<script>
No correct solution
OTHER TIPS
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow