将两个值添加到xml行中

编程入门 行业动态 更新时间:2024-10-27 22:26:19
本文介绍了将两个值添加到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行中

本文发布于:2023-10-26 17:07:37,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1530780.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:两个   xml

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!