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>

Pas de solution correcte

Autres conseils

Use <article class="banner-hero banner-hero--blocks" data-nav-title="{//Devices//SideMenu//NavTitle}"></article>, that is called an attribute value template.

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top