You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by Bavo De Ridder <ba...@life.be> on 2000/11/09 16:19:27 UTC
mail logicsheet
Hi,
How can you limit the listing of messages of a folder ?
I saw something like this in the mail.xsl file:
<xsl:variable name="start">
<xsl:call-template name="get-nested-string">
<xsl:with-param
name="content" select="mail:limit-messages/mail:start-index"/>
</xsl:call-template>
</xsl:variable>
<xsl:variable name="end">
<xsl:call-template name="get-nested-string">
<xsl:with-param
name="content" select="mail:limit-messages/mail:end-index"/>
</xsl:call-template>
</xsl:variable>
But how does that look in the xml file ?
Bavo De Ridder
Developer
VA Linux Professional Services Europe
Interleuvenlaan 15A
3001 Haasrode
Belgium
tel. +32 16 20 89 61
fax. +32 16 20 79 73
gsm. +32 476 24 58 36
Re: mail logicsheet
Posted by Ugo Cei <u....@cbim.it>.
Bavo De Ridder wrote:
>
> Hi,
>
> How can you limit the listing of messages of a folder ?
>
> I saw something like this in the mail.xsl file:
>
> <xsl:variable name="start">
> <xsl:call-template name="get-nested-string">
> <xsl:with-param
> name="content" select="mail:limit-messages/mail:start-index"/>
> </xsl:call-template>
> </xsl:variable>
> <xsl:variable name="end">
> <xsl:call-template name="get-nested-string">
> <xsl:with-param
> name="content" select="mail:limit-messages/mail:end-index"/>
> </xsl:call-template>
> </xsl:variable>
>
> But how does that look in the xml file ?
It looks like this:
<mail:results>
<folder>
<mail:get-messages>
<mail:limit-messages>
<mail:start-index><request:get-parameter
name="start"/></mail:start-index>
<mail:end-index><request:get-parameter
name="end"/></mail:end-index>
</mail:limit-messages>
<from><mail:get-from/></from>
<subject><mail:get-subject/></subject>
<date><mail:get-sent-date/></date>
<flags><mail:get-flags/></flags>
</mail:get-messages>
</folder>
</mail:results>
--
Ugo Cei - Consorzio di Bioingegneria e Informatica Medica
P.le Volontari del Sangue, 2 - 27100 Pavia - Italy
Phone: +39.0382.525100 - E-mail: u.cei@cbim.it