如何在XSL中将字符串值转换为属性 [英] How to convert the string value to attribute in XSL
问题描述
大家好,
RolesValue变量值包含为"//EagleDatas [$ i]/@ MCA"
如果从xml
中选择值
Hi all,
The RolesValue variable values containas as "//EagleDatas[$i]/@MCA"
if select the values from xml
<xsl:value-of select ="$RolesValue">
我没有从xml中获取价值.这里的RolesValue变量为刺.这里是如何在xsl中将字符串转换为属性.
这是我的xml
i am not getting the value from xml. here the RolesValue variable as sting. Here how to convert the string to attribute in xsl.
here my xml is
<EagleDatas MCA="testvalues">
<EagleDatas MCA="usedvalues">
如果有人知道,请告诉我
if any one know please let me know
推荐答案
i]/@ MCA"
如果从xml
中选择值
i]/@MCA"
if select the values from xml
<xsl:value-of select ="
RolesValue">
RolesValue">
我没有从xml中获取价值.这里的RolesValue变量为刺.这里是如何在xsl中将字符串转换为属性.
这是我的xml
i am not getting the value from xml. here the RolesValue variable as sting. Here how to convert the string to attribute in xsl.
here my xml is
<EagleDatas MCA="testvalues">
<EagleDatas MCA="usedvalues">
如果有人知道,请告诉我
if any one know please let me know
这篇关于如何在XSL中将字符串值转换为属性的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!