Division in XSLT

2019-01-25 01:42发布

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 display a value:

$<xsl:value-of select="format-number(number(//Applications/AveAnnualVolume),'###,###,##0.00')"/> 

That part works, but I can't figure out how to divide it by 12 and display that instead.

标签: xslt
1条回答
趁早两清
2楼-- · 2019-01-25 02:20

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

$<xsl:value-of select="format-number(//Applications/AveAnnualVolume div 12,'###,###,##0.00')"/> 
查看更多
登录 后发表回答