将两个值添加到xml行中 [英] adding two values into an xml line
本文介绍了将两个值添加到xml行中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好,
我是新来的XML但可以提供有关构建下面一行的建议:
我需要在行中添加另一个参数
< pre > < xsl : 属性 name = " programUID " > customer_ < xsl : value -of 选择 = " $ customer / void [@property ='name'] / string " /> < / xsl : 属性 >
解决方案
你好chonji,
如果你想使用cancatenate这些值,你可以使用concat函数:
< xsl < span style ="color:blue">: 属性 名称 = " programUID " >
< xsl : 变量 名称 = " var1 " 选择 = "
customer / void [@property ='name'] / string" />
< xsl : 变量 名称 = " var2 " 选择 = "
customer / void [@property ='account'] / long" />
< xsl : 值-of 选择 = " concat('c ustomer _",
Hi All,
I am new to XML but could do with an advice on constructing the line below:
I need to add a further argument into the line
<pre><xsl:attribute name="programUID">customer_<xsl:value-of select="$customer/void[@property = 'name']/string"/></xsl:attribute>解决方案Hello chonji,
If you want to cancatenate the values, you can use the concat function :
<xsl:attribute name="programUID"> <xsl:variable name="var1" select="
customer/void[@property = 'name']/string" /> <xsl:variable name="var2" select="
customer/void[@property = 'account']/long"/> <xsl:value-of select="concat('customer_',
这篇关于将两个值添加到xml行中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取
|
15天全站免登陆