在47而不是00处开始问题编号

时间:2018-11-30 03:21:33

标签: xslt-2.0

如何将问题从47开始而不是从00开始。我需要第一个数字为mc15q6647。下面的脚本给了我mc15q6601。

<xsl:when test="count(preceding::xhtml:li[@property = 'ktp:question']) + 1 &lt; 50">
    mc15q6647
    <xsl:value-of select="format-number(count(preceding::xhtml:li[@property = 'ktp:question']) + 1, '00')" />
</xsl:when>

0 个答案:

没有答案
相关问题