Division in XSLT

前端 未结 1 975
生来不讨喜
生来不讨喜 2020-12-17 08:03

I\'m trying to take a value that I\'m pulling from a database and divide it by 12 and display that number, but I can\'t seem to get it right. This is what I have so far to

相关标签:
1条回答
  • 2020-12-17 08:36

    XPath uses div for division since slashes are used as separators.

    $<xsl:value-of select="format-number(//Applications/AveAnnualVolume div 12,'###,###,##0.00')"/> 
    
    0 讨论(0)
提交回复
热议问题