0

我需要打印一个 94 9;s 连续打印的虚拟拖车。我需要它作为我文件的最后一行

4

1 回答 1

4

最简单(就处理而言也是最便宜的)方法:

<xsl:text>9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999</xsl:text>

另外一个选项:

<xsl:value-of select="for $i in 1 to 94 return '9'" separator="" />

另一个(需要支持 XSLT 3.0 的处理器):

<xsl:value-of select="xs:integer(math:pow(10, 94))-1" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:math="http://www.w3.org/2005/xpath-functions/math" />
于 2019-02-03T06:53:10.053 回答