我需要打印94周9的作为伪预告片

问题描述 投票:0回答:1

我需要打印虚设拖车94 9; S连续印刷。我需要它为我的文件的最后一行

xml xslt xslt-2.0 workday-api
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" />
© www.soinside.com 2019 - 2024. All rights reserved.