Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
5635 Представления

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 ?

Аватар
Отменить
Related Posts Ответы Просмотры Активность
3
июл. 24
8573
0
апр. 17
3259
1
апр. 17
4630
2
нояб. 15
4974
0
мар. 15
4733