我将变量“cond_in”作为“文档节点”类型。例如
<entry attribute1="att1", attribute2="att2">
<p>Value1</p>
<p>Value2</p>
<p>Value3</p>
</entry>
因此,我想将变量“cond_out”创建为“文档节点”类型,但添加到每个
元素“;”字符串:
<entry attribute1="att1", attribute2="att2">
<p>Value1; </p>
<p>Value2; </p>
<p>Value3; </p>
</entry>
我该怎么做?
提前谢谢!
我尝试了以下操作:
<xsl:variable name="cond_out">
<xsl:apply-templates select="$cond_in" mode="addsymbol"/>
</xsl:variable>
<xsl:template match="entry" mode="addsymbol">
<xsl:copy-of select="entry"/>
</xsl:template>
我不知道如何将分号“;”添加到元素的值中
....