XSLT の Invoice 要素の値を検証する必要があります: 欠落している要素 = デフォルトは 1 (作業中)...空白 = デフォルトは 1 (作業中)...しかし、2 または文字列内の任意の数値は、戻り続けるため機能しません。 1に。
<xsl:template match="Transaction" >
<Transaction invoice="{Invoice}">
<xsl:attribute name="invoice">
<xsl:choose>
<xsl:when test="@Invoice and (@Invoice!='') and (@Invoice!='0')">
<xsl:value-of select="@Invoice"/></xsl:when>
<xsl:otherwise>1</xsl:otherwise>
</xsl:choose>
</xsl:attribute>
</xsl:template>
あなたからの助けを得ることを願っています。感謝します。
ありがとう