alvinalexander.com | career | drupal | java | mac | mysql | perl | scala | uml | unix  
</TR> <TR> <TD WIDTH="10%" VALIGN="top"> <STRONG>Von: </TD> <TD WIDTH="40%" VALIGN="top"> <xsl:apply-templates select="HEADER/FROM"/> </TD> <TD WIDTH="10%" VALIGN="top"> <STRONG>An: </TD> <TD WIDTH="40%" VALIGN="top"> <xsl:for-each select="HEADER/TO"> <xsl:apply-templates select="."/>
</xsl:for-each> </TD> </TR> <TR> <TD VALGIN="top"> <STRONG>Antwort An: </TD> <TD VALIGN="top"> <xsl:apply-templates select="HEADER/REPLY_TO"/> <xsl:text disable-output-escaping="yes">&nbsp; </TD> <TD VALIGN="top"> <STRONG>Kopie: </TD> <TD VALIGN="top"> <xsl:for-each select="HEADER/CC"> <xsl:apply-templates select="."/>
</xsl:for-each> <xsl:text disable-output-escaping="yes">&nbsp; </TD> </TR> <TR> <TD> <STRONG>Datum: </TD> <TD COLSPAN="3"> <xsl:apply-templates select="HEADER/DATE"/> </TD> </TR> <TR> <TD COLSPAN="4" ALIGN="right"> <A HREF="{$base}/compose?session-id={$session-id}&folder-id={/USERMODEL/CURRENT[@type='folder']/@id}&message-nr={@msgnr}&reply=1">auf diese Nachricht antworten... - <A HREF="{$base}/compose?session-id={$session-id}&folder-id={/USERMODEL/CURRENT[@type='folder']/@id}&message-nr={@msgnr}&forward=1">diese Nachricht weiterleiten... </TD> </TR> </TABLE> <xsl:for-each select="PART"> <xsl:apply-templates select="."/> </xsl:for-each> <TABLE WIDTH="100%" BGCOLOR="#dddddd" CELLSPACING="0" BORDER="0"> <TR> <FONT SIZE="-"> <FORM ACTION="{$base}/folder/list?flag=1&session-id={$session-id}&folder-id={/USERMODEL/CURRENT[@type='folder']/@id}" METHOD="POST"> <TD> <INPUT TYPE="HIDDEN" NAME="CH%{@msgnr}" VALUE="on"/> <SELECT NAME="MARK"> <OPTION VALUE="MARK">setze <OPTION VALUE="UNMARK">entferne </SELECT> <STRONG>Markierung <SELECT NAME="MESSAGE FLAG"> <OPTION VALUE="DELETED">gelöscht <OPTION VALUE="SEEN">gelesen <OPTION VALUE="ANSWERED">beantwortet <OPTION VALUE="RECENT">aktuell <OPTION VALUE="DRAFT">entwurf </SELECT> <INPUT TYPE="SUBMIT" NAME="flagmsgs" VALUE="Ausführen!"/> </TD> </FORM> <FORM ACTION="{$base}/folder/showmsg?flag=1&session-id={$session-id}&folder-id={/USERMODEL/CURRENT[@type='folder']/@id}" METHOD="POST"> <TD> <INPUT TYPE="HIDDEN" NAME="CH%{@msgnr}" VALUE="on"/> <SELECT NAME="COPYMOVE"> <OPTION VALUE="COPY">kopiere <OPTION VALUE="MOVE">verschiebe </SELECT> <STRONG>Nachricht in Ordner <SELECT NAME="TO"> <xsl:for-each select="/USERMODEL/MAILHOST_MODEL//FOLDER"> <OPTION value="{@id}"> </xsl:for-each> </SELECT> <INPUT TYPE="SUBMIT" NAME="copymovemsgs" VALUE="Ausführen!"/> </TD> </FORM> </FONT> </TR> </TABLE> <xsl:call-template name="navigation"/> </xsl:template> <xsl:template match="PART"> <xsl:choose> <xsl:when test="@type='text' and @hidden='true'" /> <xsl:when test="@type='text' and not(@hidden='true')"> <PRE> <xsl:for-each select="*"> <xsl:apply-templates select="."/> </xsl:for-each> </PRE> </xsl:when> <xsl:when test="@type='html'"> <xsl:for-each select="*"> <xsl:apply-templates select="."/> </xsl:for-each> </xsl:when> <xsl:when test="@type='multi'"> <HR/> <xsl:for-each select="PART"> <CENTER>MIME Abschnitt
<xsl:apply-templates select="."/> <HR/> </xsl:for-each> </xsl:when> <xsl:otherwise> <HR/> <TABLE WIDTH="100%" BGCOLOR="#f7f3a8" CELLPADDING="0" CELLSPACING="0" BORDER="0"> <TR> <TD> <STRONG>Angehängte Datei </TD> <TD> <A HREF="{$base}/showmime/{@filename}?session-id={$session-id}&msgid={ancestor::MESSAGE/@msgid}"> </TD> </TR> <xsl:if test="@description != ''"> <TR> <TD>Beschreibung: <TD> <xsl:value-of select="@description"/> <xsl:text disable-output-escaping="yes">&nbsp; </TD> </TR> </xsl:if> <TR> <TD>Typ: <TD> </TR> <TR> <TD>Größe: <TD> bytes </TR> <xsl:if test="@type='image' and /USERMODEL/USERDATA/BOOLVAR[@name='show images']/@value = 'yes'"> <TR> <TD COLSPAN="2"> <IMG SRC="{$base}/showmime/{@filename}?session-id={$session-id}&msgid={ancestor::MESSAGE/@msgid}"/> </TD> </TR> </xsl:if> </TABLE> </xsl:otherwise> </xsl:choose> </xsl:template> <xsl:template match="CONTENT"> <xsl:choose> <xsl:when test="../@type = 'html'"> <xsl:apply-templates select="*"/> </xsl:when> <xsl:otherwise> <xsl:choose> <xsl:when test="@quotelevel > 2"> <FONT COLOR="orange"> <EM> <xsl:value-of disable-output-escaping="yes" select="."/> </EM> </FONT> </xsl:when> <xsl:when test="@quotelevel = 2"> <FONT COLOR="green"> <EM> <xsl:value-of disable-output-escaping="yes" select="."/> </EM> </FONT> </xsl:when> <xsl:when test="@quotelevel = 1"> <FONT COLOR="blue"> <EM> <xsl:value-of disable-output-escaping="yes" select="."/> </EM> </FONT> </xsl:when> <xsl:otherwise> <xsl:value-of disable-output-escaping="yes" select="."/> </xsl:otherwise> </xsl:choose> </xsl:otherwise> </xsl:choose> </xsl:template> <xsl:template name="navigation"> <P> <TABLE WIDTH="100%"> <TR> <TD ALIGN="left" VALIGN="center"> <EM> <xsl:choose> <xsl:when test="@msgnr > 1"> <A HREF="{$base}/folder/showmsg?session-id={$session-id}&folder-id={/USERMODEL/CURRENT[@type='folder']/@id}&message-nr={@msgnr - 1}"> Vorherige Nachricht </xsl:when> <xsl:otherwise> <IMG SRC="{$imgbase}/images/arrow-left-disabled.png" BORDER="0"/> Vorherige Nachricht </xsl:otherwise> </xsl:choose> </EM> </TD> <TD ALIGN="center" VALIGN="center"> <EM> <A HREF="{$base}/folder/list?session-id={$session-id}&folder-id={/USERMODEL/CURRENT[@type='folder']/@id}&part={/USERMODEL/CURRENT[@type='folder']/@list_part}">Nachrichtenliste </EM> </TD> <TD ALIGN="right" VALIGN="center"> <xsl:variable name="current_folder" select="/USERMODEL/CURRENT[@type='folder']/@id"/> <EM> <xsl:choose> <xsl:when test="@msgnr < /USERMODEL/MAILHOST_MODEL//FOLDER[@id=$current_folder]/MESSAGELIST/@total"> <A HREF="{$base}/folder/showmsg?session-id={$session-id}&folder-id={/USERMODEL/CURRENT[@type='folder']/@id}&message-nr={@msgnr + 1}">Nächste Nachricht </xsl:when> <xsl:otherwise> Nächste Nachricht <IMG SRC="{$imgbase}/images/arrow-right-disabled.png" BORDER="0"/> </xsl:otherwise> </xsl:choose> </EM> </TD> </TR> </TABLE> </P> </xsl:template> <xsl:template match="DATE"> <xsl:value-of select="."/> </xsl:template> <xsl:template match="SUBJECT"> <FONT SIZE="+1" COLOR="darkgreen"> <STRONG> <xsl:value-of select="."/> </STRONG> </FONT> </xsl:template> <xsl:template match="TO"> <EM> </xsl:template> <xsl:template match="CC"> <EM> </xsl:template> <xsl:template match="REPLY-TO"> <EM> </xsl:template> <xsl:template match="FROM"> <xsl:choose> <xsl:when test="contains(.,'<')"> <EM>, <xsl:value-of select="substring-before(substring-after(.,'<'),'>')"/> </xsl:when> <xsl:otherwise> <xsl:value-of select="."/> </xsl:otherwise> </xsl:choose> </xsl:template> <!-- The following three sections deal with displaying HTML code from HTML attachments. Elements marked "malicious" will get a special treatment --> <xsl:template match="@*|node()"> <xsl:choose> <xsl:when test="not(@malicious)"> <xsl:copy> <xsl:apply-templates select="@*|node()"/> </xsl:copy> </xsl:when> <xsl:otherwise> <TABLE BORDER="1" WIDTH="100%" CELLSPACING="0" CELLPADDING="0"> <TR> <TD BGCOLOR="#FF9933"> Untrusted HTML element removed: <xsl:value-of select="@malicious"/> </TD> </TR> <TR> <TD bgcolor="#3399FF" > <xsl:apply-templates select="." mode="quote"/> </TD> </TR> </TABLE> </xsl:otherwise> </xsl:choose> </xsl:template> <xsl:template match="node()" mode="quote"> <xsl:choose> <xsl:when test="name(.)"> <<xsl:value-of select="name(.)"/> <xsl:text> <xsl:if test="./node()"> > <xsl:apply-templates select="node()" mode="quote"/> </<xsl:value-of select="name(.)"/> </xsl:if> > </xsl:when> <xsl:otherwise> <xsl:value-of select="."/> </xsl:otherwise> </xsl:choose> </xsl:template> <xsl:template match="@*" mode="quote"> <xsl:if test="name(.) != 'malicious'"> <xsl:text> ="" </xsl:if> </xsl:template> </xsl:stylesheet>

What this is

This file is included in the DevDaily.com "Java Source Code Warehouse" project. The intent of this project is to help you "Learn Java by Example" TM.

Other links

The source code

<?xml version="1.0" encoding="UTF-8"?>
<!--
 * Copyright (C) 2000 Sebastian Schaffert
 * 
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License
 * as published by the Free Software Foundation; either version 2
 * of the License, or (at your option) any later version.
 * 
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
-->

<!-- This template is part of the German translation -->

<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
  <xsl:output method="html" encoding="UTF-8"/>
  
    <xsl:variable name="imgbase" select="/USERMODEL/STATEDATA/VAR[@name='img base uri']/@value"/>
    <xsl:variable name="base" select="/USERMODEL/STATEDATA/VAR[@name='base uri']/@value"/>
    <xsl:variable name="session-id" select="/USERMODEL/STATEDATA/VAR[@name='session id']/@value"/>

    <xsl:template match="/">

    <HTML>
      <HEAD>
        <TITLE>WebMail Mailbox für : Zeige Nachricht 
	<META CONTENT="AUTHOR" VALUE="Sebastian Schaffert"/>
      </HEAD>
      
      <BODY bgcolor="#ffffff">
	<xsl:variable name="current_msg" select="/USERMODEL/CURRENT[@type='message']/@id"/>
	<xsl:variable name="current_folder" select="/USERMODEL/CURRENT[@type='folder']/@id"/>
	<xsl:apply-templates select="/USERMODEL/MAILHOST_MODEL//FOLDER[@id=$current_folder]//MESSAGE[@msgid=$current_msg]"/>
      </BODY>
    </HTML>
  </xsl:template>

  <xsl:template match="MESSAGE">

    <xsl:call-template name="navigation"/>    

    <TABLE WIDTH="100%" BGCOLOR="#dddddd" CELLSPACING="0" BORDER="0">
      <TR>
	<TD COLSPAN="3">
	    <xsl:apply-templates select="HEADER/SUBJECT"/>
	</TD>
	<TD ALIGN="right">(Hilfe)
... this post is sponsored by my books ...

#1 New Release!

FP Best Seller

 

new blog posts

 

Copyright 1998-2021 Alvin Alexander, alvinalexander.com
All Rights Reserved.

A percentage of advertising revenue from
pages under the /java/jwarehouse URI on this website is
paid back to open source projects.