alvinalexander.com | career | drupal | java | mac | mysql | perl | scala | uml | unix  
<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"> <table width="90%" border="0" cellspacing="2" cellpadding="1"> <tr align="right"> <td class="navegation">NAVEGATION </tr> <tr align="right" bgcolor="#82C245"> <td class="navegation">Index </tr> <tr align="right" bgcolor="#82C245"> <td class="navegation">Edit article </tr> <tr align="right" bgcolor="#82C245"> <td class="navegation"> <a href="javascript:openWindowNew('{$URL}?mode=images&docID={$docID}','Images','width=740,height=375,scrollbars,resizable')" class="navegation">Edit image </tr> <tr align="right" bgcolor="#82C245"> <td class="navegation">New Document </tr> <tr align="right"> <td bgcolor="#82C245" class="navegation">Configuration </tr> </table> <br/> </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">&nbsp; </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> <b> <font class="bigtitle"> <xsl:apply-templates select="image"/> <xsl:value-of select="text()" disable-output-escaping="yes" /> </font> </b> </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">{$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: doc.xsl,v 1.12 2001/04/15 15:24:43 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='HTTP Headers']/data[@code='requestURI']" />
	<xsl:variable name="BASE_URL">/webEditor/editor_1/docs
	<xsl:variable name="docID" select="docID"/>
<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">
<script languaje="JAVASCRIPT">

function openWindowNew (theURL,winName,features) {
  window.open(theURL,winName,features);
}

</script> 
<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">&nbsp;
	</td>
        <td width="129" bgcolor="#006600" align="center">
	<xsl:text disable-output-escaping="yes">&nbsp;
        </td>
        <td width="394" bgcolor="#82c245">Content Management
... 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.