Frage

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>

Keine korrekte Lösung

Andere Tipps

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

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top