cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Carlos Dias <cd...@pontoc.pt>
Subject Zip attach file
Date Wed, 26 Jan 2005 10:51:19 GMT
Hi folks,
Here is my problem. I want to zip an attach file generated by the 
sendmail feature.
Here is the code:
    <xsl:template match="sql:row">
      <xsl:element name="email:sendmail">
        <xsl:element name="email:smtphost">
            <xsl:value-of select="$smtp_host"/>
        </xsl:element>
        <xsl:element name="email:from">
            <xsl:value-of select="$from"/>
        </xsl:element>
        <xsl:element name="email:to">
            <xsl:value-of select="sql:email"/>
        </xsl:element>
        <xsl:element name="email:subject">
            <xsl:value-of select="sql:schedule_email_subject"/>
        </xsl:element>
        <xsl:element name="email:attachment">
            <xsl:attribute name="name"><xsl:value-of 
select="sql:bookmark_description"/>.xls</xsl:attribute>
            <xsl:attribute 
name="mime-type">application/vnd.ms-excel</xsl:attribute>
            <xsl:attribute name="src">cocoon:/offlineexcel
        </xsl:element>
        <xsl:element name="email:body">
            <xsl:value-of 
select="//email-scheduler/email-default-values/body"/>
        </xsl:element>
      </xsl:element>
    </xsl:template>

I read the zip archive serializer but don't know if this is the answer 
to my problem.

Thanks in advance,
Carlos Dias

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message