跳至內容
選單
此問題已被標幟
5350 瀏覽次數

Hello,

I have a RML template using STORY structure exactly like addons/base/res/report/business_card.xsl

In each card there is a date. So I need to print this date in the good TimeZone. So I tried with FormatLang in different ways :

<xsl:template match="order_line" mode="story">
    <xsl:variable name="d"><xsl:value-of select="due_date"/></xsl:variable>
    <para style="nospace">[[ formatLang($d,date_time=True) ]]</para>
    <para style="nospace"><xsl:value-of select="qty"/><xsl:text> </xsl:text><xsl:value-of select="product_name"/></para>
    <para style="nospace"><xsl:value-of select="customer_name"/></para>
    <xsl:if test="position() < last()">
        <nextFrame/>
    </xsl:if>
</xsl:template>


<xsl:template match="order_line" mode="story">
    <xsl:variable name="d"><xsl:value-of select="due_date"/></xsl:variable>
    <para style="nospace"><xsl:value-of select="[[ formatLang($d,date_time=True) ]]/></para>
    <para style="nospace"><xsl:value-of select="qty"/><xsl:text> </xsl:text><xsl:value-of select="product_name"/></para>
    <para style="nospace"><xsl:value-of select="customer_name"/></para>
    <xsl:if test="position() < last()">
        <nextFrame/>
    </xsl:if>
</xsl:template>

But either I get a Internal Error or it prints the function prototype without calling it (as plain text). What's wrong ?

頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
3
7月 24
7828
0
4月 17
2700
1
4月 17
3973
2
11月 15
4461
0
3月 15
4240