home | career | drupal | java | mac | mysql | perl | scala | uml | unix  
<TD height="22" class="testoNero" width="87%" bgcolor="#E2E6F0"> <INPUT TYPE="TEXT" NAME="TO" SIZE="80" class="testoNero" VALUE="{$work/HEADER/TO}"/> </TD> </TR> <TR> <TD height="22" class="testoGrande" width="13%" bgcolor="#D1D7E7"> Kopie: </TD> <TD height="22" class="testoNero" width="87%" bgcolor="#D1D7E7"> <INPUT TYPE="TEXT" NAME="CC" SIZE="80" class="testoNero" VALUE="{$work/HEADER/CC}"/> </TD> </TR> <TR> <TD height="22" class="testoGrande" width="13%" bgcolor="#E2E6F0"> Antwort An: </TD> <TD height="22" class="testoNero" width="87%" bgcolor="#E2E6F0"> <INPUT TYPE="TEXT" NAME="REPLY-TO" SIZE="80" class="testoNero" VALUE="{$work/HEADER/REPLY_TO}"/> </TD> </TR> <TR> <TD height="22" class="testoGrande" width="13%" bgcolor="#D1D7E7"> Blinde Kopie: </TD> <TD height="22" class="testoNero" width="87%" bgcolor="#D1D7E7"> <INPUT TYPE="TEXT" NAME="BCC" SIZE="80" class="testoNero" VALUE="{$work/HEADER/BCC}"/> </TD> </TR> <TR> <TD height="22" class="testoGrande" width="13%" bgcolor="#E2E6F0"> Betreff: </TD> <TD height="22" class="testoNero" width="87%" bgcolor="#E2E6F0"> <INPUT TYPE="TEXT" NAME="SUBJECT" SIZE="80" class="testoNero" VALUE="{$work/HEADER/SUBJECT}"/> </TD> </TR> <TR> <TD height="22" class="testoGrande" width="13%" bgcolor="#D1D7E7"> Anhängsel: </TD> <TD height="22" class="testoNero" width="87%" bgcolor="#D1D7E7"> <xsl:for-each select="$work/PART[position()=1]//PART[@type='binary']"> <xsl:apply-templates select="."/> </xsl:for-each> <xsl:text disable-output-escaping="yes">&nbsp; </TD> </TR> <TR> <TD height="22" class="testoNero" width="13%" bgcolor="#E2E6F0"> <INPUT TYPE="SUBMIT" class="testoNero" VALUE="Dateien anhängen..." NAME="ATTACH"/> </TD> <TD class="testoNero" align="right" width="87%" bgcolor="#E2E6F0"> <INPUT TYPE="SUBMIT" class="testoNero" VALUE="Nachricht senden..." NAME="SEND"/> </TD> </TR> <TR> <TD bgcolor="#D1D7E7" height="22" class="testoNero" align="center">  </TD> <TD bgcolor="#D1D7E7" height="22" class="testoNero"> <TEXTAREA NAME="BODY" COLS="80" ROWS="40" class="testoNero" wrap="physical"> <xsl:for-each select="$work/PART[position()=1]/PART[position()=1]/CONTENT"> <xsl:apply-templates select="."/> </xsl:for-each> </TEXTAREA> </TD> </TR> <TR> <TD height="22" class="testoNero" width="13%" bgcolor="#E2E6F0"> <INPUT TYPE="SUBMIT" class="testoNero" VALUE="Dateien anhängen..." NAME="ATTACH"/> </TD> <TD class="testoNero" align="right" width="87%" bgcolor="#E2E6F0"> <INPUT TYPE="SUBMIT" class="testoNero" VALUE="Nachricht senden..." NAME="SEND"/> </TD> </TR> </TABLE> </FORM> </BODY> </HTML> </xsl:template> <!-- All parts that are attachments (= have a file name) should be displayed with their name and size only --> <xsl:template match="PART"> <xsl:if test="@filename != ''"> <xsl:value-of select="@filename"/> ( bytes), </xsl:if> </xsl:template> <!-- Content of a message should be displayed plain --> <xsl:template match="CONTENT"> <xsl:value-of select="."/> </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.
-->

<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
  <xsl:output method="html" indent="no" 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:variable name="work" select="/USERMODEL/WORK/MESSAGE[position()=1]"/>

    <xsl:template match="/">

    <HTML>
      <HEAD>
        <TITLE>WebMail Mailbox für : Bearbeite Nachricht 
	<META CONTENT="AUTHOR" VALUE="Sebastian Schaffert"/>
	<link rel="stylesheet" href="{$base}/passthrough/webmail.css"/>
      </HEAD>
      
      <BODY bgcolor="#B5C1CF" topmargin="5" leftmargin="0" marginwidth="0" marginheight="5">
	<FORM ACTION="{$base}/send?session-id={$session-id}" METHOD="POST">
	  <TABLE width="100%" border="0" cellspacing="2" cellpadding="4">
	    <TR>
	      <TD colspan="2" height="22" class="testoNero">
	      Schreiben einer Nachricht... (<A HREF="{$base}/help?session-id={$session-id}&helptopic=compose">Help)
		</TD>
	    </TR>
	    <TR>
	      <TD colspan="2" bgcolor="#697791" height="22" class="testoBianco">
 		Datum: <xsl:value-of select="/USERMODEL/STATEDATA/VAR[@name='date']/@value"/>
	      </TD>
	    </TR>
	    <TR>
	      <TD height="22" class="testoGrande" width="13%" bgcolor="#E2E6F0">An:


my book on functional programming

 

new blog posts

 

Copyright 1998-2019 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.