私の入力データは以下の通りです:
<Data>
<Sup_Offer action='add'>80000001</Sup_Offer>
<Sup_Offer action='add'>80000002</Sup_Offer>
<Sup_Offer action='add'>80000003</Sup_Offer>
</Data>
以下のテンプレートを使用して、ノードSup_Offerが存在するかどうかを確認しています。存在する場合は、値を連結する必要があります。
<xsl:template name="getDeactivateDataCmd">
<xsl:choose>
<xsl:when test="boolean(Sup_Offer)">
<xsl:for-each select="/Data/Sup_Offer" >
<xsl:value-of select="concat(Sup_Offer,';')"/>
</xsl:for-each>
</xsl:when>
<xsl:otherwise>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
私はXML/XSLTを初めて使用するので、誰かに知らせてもらえますか:これは機能しますか?