| career | drupal | java | mac | mysql | perl | scala | uml | unix  
<xsl:choose> <xsl:when test="@holds_messages = 'true'"> <TD bgcolor="#E2E6F0" COLSPAN="{/USERMODEL/STATEDATA/VAR[@name='max folder depth']/@value - $level - 1}" valign="middle" class="testoGrande"> <A HREF="{$base}/folder/list?session-id={$session-id}&folder-id={@id}&part=1"> </TD> <TD WIDTH="48%" bgcolor="#D3D8DE" valign="middle" class="testoNero"> <SPAN class="testoVerde">/ Nachrichten </TD> <TD width="2%" class="testoScuro">   </TD> </xsl:when> <xsl:otherwise> <TD bgcolor="#E2E6F0" COLSPAN="{/USERMODEL/STATEDATA/VAR[@name='max folder depth']/@value - $level - 1}" valign="middle" class="testoGrande"> <xsl:value-of select="@name"/> </TD> <TD WIDTH="48%" bgcolor="#D3D8DE" valign="middle" class="testoNero"> kann keine Nachrichten enthalten </TD> <TD width="2%" class="testoScuro">   </TD> </xsl:otherwise> </xsl:choose> </TR> <xsl:for-each select="FOLDER"> <xsl:apply-templates select="."/> </xsl:for-each> </xsl:template> <!-- Create an appropriate number of before a folder, depending on the level --> <xsl:template name="recurse-folder"> <xsl:param name="level"/> <xsl:if test="$level>0"> <TD bgcolor="#E2E6F0" class="testoNero">  <xsl:variable name="levelneu" select="$level - 1"/> <xsl:call-template name="recurse-folder"> <xsl:with-param name="level" select="$levelneu"/> </xsl:call-template> </xsl:if> </xsl:template> </xsl:stylesheet>

What this is

This file is included in the "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="" version="1.0">
  <xsl:output method="html" indent="yes" 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="/">

        <TITLE>WebMail Mailbox für : Mailbox Übersicht
	<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">
	<P class="testoChiaro">
	  <SPAN class="testoScuro">Willkommen zu Deinem Briefkasten, .
Dies ist das <SPAN class="testoScuro"> Mal</SPAN> daß Du Dich anmeldest seit dem <SPAN class="testoScuro">. Deine <SPAN class="bold">letzte Anmeldung war am <SPAN class="testoScuro">.
Dein Briefkasten enthält die folgenden Ordner: (Gesamtzahl der Nachrichten in <SPAN class="testoVerde">grün, neue Nachrichten in <SPAN class="testoRosso">rot) (Hilfe):

<A HREF="{$base}/mailbox?session-id={$session-id}&force-refresh=1">Neuaufbau erzwingen - Hier klicken um die Ordnerübersicht neu aufzubauen. </P> <TABLE width="100%" border="0" cellspacing="0" cellpadding="3"> <xsl:for-each select="/USERMODEL/MAILHOST_MODEL"> <xsl:apply-templates select="."/> </xsl:for-each> </TABLE> </BODY> </HTML> </xsl:template> <xsl:template match="/USERMODEL/USERDATA/INTVAR"> <xsl:value-of select="@value"/> </xsl:template> <xsl:template match="/USERMODEL/STATEDATA/VAR"> <xsl:value-of select="@value"/> </xsl:template> <xsl:template match="/USERMODEL/MAILHOST_MODEL"> <TR> <TD COLSPAN="{/USERMODEL/STATEDATA/VAR[@name='max folder depth']/@value}" WIDTH="50%" bgcolor="#A6B1C0" class="testoGrande"> <xsl:choose> <xsl:when test='@error != ""'> <SPAN class="testoRosso"> (Fehler: ) </xsl:when> <xsl:otherwise> <SPAN class="testoVerde"> </xsl:otherwise> </xsl:choose> </TD> <TD bgcolor="#909CAF" width="48%" class="testoScuro"> Rechnung: <xsl:value-of select="@url"/> </TD> <TD bgcolor="#909CAF" width="2%" class="testoScuro">   </TD> </TR> <xsl:for-each select="FOLDER[@subscribed='true']"> <xsl:apply-templates select="."/> </xsl:for-each> </xsl:template> <xsl:template match="FOLDER"> <xsl:variable name="level" select="count(ancestor::FOLDER)"/> <TR> <xsl:call-template name="recurse-folder"> <xsl:with-param name="level" select="$level"/> </xsl:call-template> <TD bgcolor="#E2E6F0" align="right">
... this post is sponsored by my books ...

#1 New Release!

FP Best Seller


new blog posts


Copyright 1998-2021 Alvin Alexander,
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.