首页 > 解决方案 > 如何在 xslt 中添加计时器

问题描述

我开发了一个页面,显示订单的不同状态:
预计交货
已交付。

我需要在预期交付状态旁边添加一个计时器(带薄荷糖)。

我试图添加一个计时器,但我不能。我不知道它的正确代码。

<xsl:choose >
    <xsl:when test="remarksairside='Expected'">
        <text color="#32CD32" bold="true">
            <text>Expecting Delivery in
</text>

  <!---      the timer code -->

        </text>
    </xsl:when>
    <xsl:otherwise>
        <text>
            <xsl:value-of select="status" />
        </text>
    </xsl:otherwise>
</xsl:choose>    

现在,代码只显示没有计时器的状态。你能帮忙吗?

标签: xmlxslt

解决方案


推荐阅读