| <?xml version="1.0"?> |
| <!-- |
| Licensed to the Apache Software Foundation (ASF) under one or more |
| contributor license agreements. See the NOTICE file distributed with |
| this work for additional information regarding copyright ownership. |
| The ASF licenses this file to You under the Apache License, Version 2.0 |
| (the "License"); you may not use this file except in compliance with |
| the License. You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, software |
| distributed under the License is distributed on an "AS IS" BASIS, |
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| See the License for the specific language governing permissions and |
| limitations under the License. |
| --> |
| <xsl:stylesheet version="1.0" |
| xmlns:xsl="http://www.w3.org/1999/XSL/Transform" |
| xmlns:page="http://apache.org/cocoon/paginate/1.0" |
| xmlns:mail="http://apache.org/cocoon/mail/1.0" |
| exclude-result-prefixes="xsl page mail" |
| > |
| |
| <xsl:template match="/"> |
| <!--xsl:copy-of select="."/--> |
| |
| <document> |
| <header> |
| <title>Folder</title> |
| </header> |
| <body> |
| <s1 title="Folder"> |
| <table style="margin-left: auto; margin-right: auto; |
| width: 95%; |
| border-collapse: collapse; |
| border-top: 1px dotted; |
| border-bottom: 1px dotted; |
| " |
| class="list"> |
| <tr> |
| <th align="left">#</th> |
| <th align="left">From</th> |
| <th align="left">Subject</th> |
| <th align="left">Sent</th> |
| <th align="left">Size</th> |
| </tr> |
| <xsl:apply-templates/> |
| </table> |
| </s1> |
| </body> |
| </document> |
| </xsl:template> |
| |
| <xsl:template match="mail:message-envelope"> |
| <tr > |
| <td style="border-top: 1px dotted; " > |
| <link> |
| <xsl:attribute name="href">mail.html?cmd=cat-message-by-id&id=<xsl:value-of select="mail:message-number"/></xsl:attribute> |
| <xsl:value-of select="mail:message-number"/> |
| </link> |
| </td> |
| <td style="border-top: 1px dotted; " ><xsl:value-of select="mail:from/@personal"/> <<xsl:value-of select="mail:from/@email-address"/>> </td> |
| <td style="border-top: 1px dotted; " ><xsl:value-of select="mail:subject"/> </td> |
| <td style="border-top: 1px dotted; " ><xsl:value-of select="mail:sent-date"/> </td> |
| <td style="border-top: 1px dotted; " ><xsl:value-of select="mail:size"/> </td> |
| </tr> |
| </xsl:template> |
| |
| </xsl:stylesheet> |
| |