|
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: htmldoc.xsl,v 1.4 2001/04/24 19:51:32 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="article">
<!-- Template global variables -->
<xsl:variable name="URL" select="configuration/general/category[@name='directories']/data[@code='docRoot']" />
<xsl:variable name="BASE_URL">/webEditor/editor_1/docs
<html>
<head>
<title>
<xsl:value-of select="content/art_title/text()"/>
</title>
<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">
<img src="{$BASE_URL}/images/esqzq.gif"/>
</td>
<td width="94" bgcolor="#006600" align="center" valign="middle" class="pieblanco">
<xsl:text disable-output-escaping="yes">
</td>
<td width="129" bgcolor="#006600" align="center">
<xsl:text disable-output-escaping="yes">
</td>
<td width="394" bgcolor="#82c245"> |
<td width="105" bgcolor="#82c245">
<td width="13" bgcolor="#82c245" valign="top" align="right">
<img src="{$BASE_URL}/images/esqdch.gif" width="12" height="12"/>
</td>
</tr>
</table>
<!-- End Header-->
<table width="750" border="0" cellpadding="0" cellspacing="0">
<tr>
<!-- Begin Navigation Barr-->
<td width="112" bgcolor="#006600" align="center" valign="top">
<xsl:text disable-output-escaping="yes">
</td>
<!-- End Navigation Barr-->
<td width="10">
<td width="521" valign="top">
<table width="500">
<tr>
<td>
<xsl:apply-templates select="content"/>
</td>
</tr>
</table>
</td>
<td width="117" valign="top" align="center" bgcolor="#82C245">
<xsl:text disable-output-escaping="yes">
</td>
</tr>
</table>
</div>
</body>
</html>
</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>
<font class="bigtitle">
<xsl:apply-templates select="image"/>
<xsl:value-of select="text()" disable-output-escaping="yes" />
</font>
</br>
</xsl:template>
<xsl:template match="art_subtitle">
<font class="text">
<b>
<xsl:apply-templates select="image"/>
<xsl:value-of select="text()" disable-output-escaping="yes" />
</b>
</font>
</xsl:template>
<xsl:template match="art_begin">
<p>
<font class="text">
<xsl:apply-templates select="image"/>
<xsl:value-of select="text()" disable-output-escaping="yes" />
</font>
</p>
</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">
</xsl:otherwise>
</xsl:choose>
</td>
<tr>
<td valign="top">