Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我试图将 a 传递xsl:value-of给 format-number函数而不是硬编码的数字,但我无法让它工作。这甚至可能吗?如果是这样,有人可以指出我正确的方向吗?
xsl:value-of
format-number
<Value> <xsl:value-of select='format-number(<xsl:value-of select="number"/>, "#.00")'/> </Value>
format-number 的第一个参数可以是 xpath 表达式。因此尝试:
<xsl:value-of select='format-number(number, "#.00")'/>