我需要打印 94 个 9 作为虚拟预告片
I need to print 94 9's as the dummy trailer
我需要打印一个连续打印 94 个 9;s 的虚拟预告片。
我需要它作为我文件的最后一行
最简单(在处理方面成本最低)的方法:
<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" />
我需要打印一个连续打印 94 个 9;s 的虚拟预告片。 我需要它作为我文件的最后一行
最简单(在处理方面成本最低)的方法:
<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" />