home | career | drupal | java | mac | mysql | perl | scala | uml | unix  

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
 * 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="/">

        <TITLE>WebMail Mailbox für : Dateien anhängen an 
	<META CONTENT="AUTHOR" VALUE="Sebastian Schaffert"/>
	<link rel="stylesheet" href="{$base}/passthrough/webmail.css"/>
      <BODY bgcolor="#B5C1CF" topmargin="5" leftmargin="0" marginwidth="0" marginheight="5">
	<FORM ACTION="{$base}/compose/attach?session-id={$session-id}" METHOD="POST" ENCTYPE="multipart/form-data">

	  <TABLE width="100%" border="0" cellspacing="2" cellpadding="4">
	      <TD colspan="2" height="22" class="testoNero">
		<IMG SRC="{$imgbase}/images/icona_composer.gif" BORDER="0" align="absmiddle"/>Dateien anhängen... (Help)
     	      <TD colspan="2" bgcolor="#697791" height="22" class="testoBianco">
 		Datum: <xsl:value-of select="/USERMODEL/STATEDATA/VAR[@name='date']/@value"/>
	      <TD rowspan="3" bgcolor="#E2E6F0" class="testoNero">
		<SELECT NAME="ATTACHMENTS" SIZE="10" multiple="multiple" WIDTH="40%" class="testoNero">
		  <xsl:for-each select="$work/PART[position()=1]/PART[@type='binary']">
		    <OPTION VALUE="{@filename}">
	      <TD bgcolor="#D1D7E7" class="testoNero">
		<INPUT TYPE="FILE" NAME="FILE" SIZE="20" class="testoNero"/>
	      <TD bgcolor="#E2E6F0" class="testoNero">
		<SPAN class="testoGrande">Beschreibung:
<TEXTAREA NAME="DESCRIPTION" ROWS="4" COLS="20" class="testoNero"> </TD> </TR> <TR> <TD class="testoNero" bgcolor="#D1D7E7"> <INPUT TYPE="SUBMIT" NAME="ADD" VALUE="Neue Datei anhängen" class="testoNero"/>  <INPUT TYPE="SUBMIT" NAME="DELETE" VALUE="Gewählte Datei(en) entfernen" class="testoNero"/> </TD> </TR> <TR> <TD colspan="2" bgcolor="#A6B1C0" align="center" height="22" class="testoGrande"> <xsl:value-of select="/USERMODEL/STATEDATA/VAR[@name='current attach size']/@value"/> von bytes </TD> </TR> <TR> <TD COLSPAN="2" bgcolor="#697791" height="22"> <TABLE border="0" cellpadding="0" cellspacing="0">
<A HREF="{$base}/compose?session-id={$session-id}&continue=1"> Zurück zum "Nachricht bearbeiten Dialog" ...
</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>

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.