如何在XSL中将字符串值转换为属性 [英] How to convert the string value to attribute in XSL

查看:64
本文介绍了如何在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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆