alvinalexander.com | career | drupal | java | mac | mysql | perl | scala | uml | unix  
<td width="94" bgcolor="#006600" align="center" valign="middle" class="pieblanco"> <xsl:text disable-output-escaping="yes">&nbsp; </td> <td width="129" bgcolor="#006600" align="center"> <xsl:text disable-output-escaping="yes">&nbsp; </td> <td width="394" bgcolor="#82c245">Index <td width="105" bgcolor="#82c245"> <td width="13" bgcolor="#82c245" valign="top" align="right"> </tr> </table> <!-- End Header--> <!-- Begin Navigation Barr--> <table width="750" border="0" cellpadding="0" cellspacing="0"> <tr> <td width="112" bgcolor="#006600" align="center" valign="top"> <xsl:text disable-output-escaping="yes">&nbsp; </td> <td width="10"> <td width="521" valign="top">
<table width="500"> <tr> <td> <xsl:apply-templates select="docContent"> <xsl:with-param name="URL" select="$URL"/> <xsl:with-param name="BASE_URL" select="$BASE_URL"/> </xsl:apply-templates> </td> </tr> </table> </td> <td width="117" valign="top" align="center" bgcolor="#82C245"> <xsl:text disable-output-escaping="yes">&nbsp; </td> </tr> </table> </div> </body> </html> </xsl:template> <xsl:template match="docContent"> <p> <xsl:apply-templates> <xsl:with-param name="URL" select="$URL"/> <xsl:with-param name="BASE_URL" select="$BASE_URL"/> </xsl:apply-templates> </p> </xsl:template> <xsl:template match="article"> <xsl:apply-templates select="content"> <xsl:with-param name="URL" select="$URL"/> <xsl:with-param name="BASE_URL" select="$BASE_URL"/> <xsl:with-param name="HTMLname" select="HTMLname"/> </xsl:apply-templates> </xsl:template> <xsl:template match="content"> <p> <xsl:apply-templates select="art_lead"/> <xsl:apply-templates select="art_title"> <xsl:with-param name="URL" select="$URL"/> <xsl:with-param name="HTMLname" select="$HTMLname"/> </xsl:apply-templates> <xsl:apply-templates select="art_begin"/> </p> </xsl:template> <xsl:template match="art_lead"> <font class="lead"> <xsl:apply-templates select="image"/> <xsl:value-of select="text()" disable-output-escaping="yes" /> </font> </xsl:template> <xsl:template match="art_title"> <br> <a class="bigtitle" href="{$URL}{$HTMLname}"> <font class="titulograndote"> <xsl:apply-templates select="image"/> <xsl:value-of select="text()" disable-output-escaping="yes" /> </font> </a> </br> </xsl:template> <xsl:template match="art_subtitle"> <font class="texto"> <b> <xsl:apply-templates select="image"/> <xsl:value-of select="text()" disable-output-escaping="yes" /> </b> </font> </xsl:template> <xsl:template match="art_begin"> <font class="text"> <xsl:apply-templates select="image"/> <xsl:value-of select="text()" disable-output-escaping="yes" /> </font> </xsl:template> <xsl:template match="art_body"> <font class="text"> <xsl:apply-templates select="image"/> <xsl:value-of select="text()" disable-output-escaping="yes" /> </font> </xsl:template> <xsl:template match="image"> <xsl:apply-templates select="image_content"/> </xsl:template> <xsl:template match="image_content"> <xsl:variable name="image_src" select="art_image"/> <xsl:variable name="image_footer" select="art_image_footer"/> <xsl:variable name="image_alt" select="art_image_alt"/> <xsl:variable name="image_link" select="art_image_link"/> <xsl:variable name="image_align" select="art_image_align"/> <table border="0" cellpadding="0" cellspacing="3" align="{$image_align}"> <tr> <td> <xsl:choose> <xsl:when test="$image_link=' '"> <img src="{$image_src}" border="0" alt="{$image_alt}" /> </xsl:when> <xsl:otherwise> <a href="{$image_link}" border="0">{$image_alt} </xsl:otherwise> </xsl:choose> </td> <tr> <td valign="top"> </font> </td> </tr> </table> </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"?>
<!-- $Id: index.xsl,v 1.3 2001/04/05 21:39:53 agarcia3 Exp $ -->
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output indent="yes" method="html"/>
<!-- Written by Alfredo Garcia "agarcia@mundofree.com" -->

<xsl:template match="homePage">
<!-- Template global variables -->
	<xsl:variable name="URL">news/
	<xsl:variable name="BASE_URL">/webEditor/editor_1/docs

<html>
<head>
<title>webEditor Content Management
<link rel="stylesheet" href="{$BASE_URL}/styles/style.css">
</head>

<body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" link="#006600" vlink="#006600">
<div align="center"> 
  <br/>
  <table width="750" border="0" cellpadding="0" cellspacing="0">
     <tr>
        <td width="15" valign="top" bgcolor="#006600">
... this post is sponsored by my books ...

#1 New Release!

FP Best Seller

 

new blog posts

 

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