Tips:

number(node) != ‘NaN’

Sample:

<xsl:variable name=”inDisc”>
    <xsl:value-of select="./DiscountPercent"/>
</xsl:variable>
<xsl:variable name="DiscPct">
    <xsl:value-of select="number($inDisc)"/>
</xsl:variable>
<xsl:element name="UnitDiscountAmount">
    <xsl:choose>
        <xsl:when test="$DiscPct!='NaN'">
            <xsl:value-of select="$DiscPct"/>
        </xsl:when>
        <xsl:otherwise>0</xsl:otherwise>
    </xsl:choose>
</xsl:element>

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-12-20
  • 2022-02-24
  • 2021-10-26
  • 2021-07-15
  • 2021-10-17
猜你喜欢
  • 2021-09-23
  • 2021-09-05
  • 2022-12-23
  • 2022-12-23
  • 2021-06-04
  • 2022-12-23
  • 2021-08-21
相关资源
相似解决方案