本文介绍了将两个值添加到xml行中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好,
我是新来的XML但可以提供有关构建下面一行的建议:
我需要在行中添加另一个参数
< pre > < xsl : 属性 name = " programUID " > customer_ < xsl : value -of 选择 = " $ customer / void [@property ='name'] / string " /> < / xsl : 属性 >解决方案
你好chonji,
如果你想使用cancatenate这些值,你可以使用concat函数:
< xsl : 属性 名称 = " 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行中
发布评论