xsl data attribute not getting value showirorng > er

早过忘川 提交于 2019-12-25 02:32:54

问题


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>

回答1:


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



来源:https://stackoverflow.com/questions/22179798/xsl-data-attribute-not-getting-value-showirorng-er

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!