0

是否有可能在 xslt 中获得唯一的长数字?
我在一次翻译中访问了不止一次。
我尝试使用 currentTimeStamp 但它没有用。

<xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xs="http://www.w3.org/2001/XMLSchema"
  exclude-result-prefixes="xs" xmlns:timeStamp="java.lang.System">
    <xsl:template match="/">
            <xsl:for-each select="Client">
            <xsl:variable name="ClientPK1" select="concat('-',timeStamp:currentTimeMillis())"/>
            <xsl:variable name="ClientPK2" select="concat('-',timeStamp:currentTimeMillis())"/>
4

1 回答 1

0

生成数字不是语言的一部分(XSLT 是函数式的)。但是仍然有您可以使用的扩展。退房:exslt.org

于 2013-10-31T17:24:59.647 回答