You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@cocoon.apache.org by st...@apache.org on 2002/02/24 00:25:03 UTC

cvs commit: xml-cocoon2/src/documentation/stylesheets document2html.xsl site2xhtml.xsl

stefano     02/02/23 15:25:03

  Modified:    src/documentation/stylesheets document2html.xsl
                        site2xhtml.xsl
  Log:
  cleaned up the document-generating stylesheets
  
  Revision  Changes    Path
  1.2       +277 -387  xml-cocoon2/src/documentation/stylesheets/document2html.xsl
  
  Index: document2html.xsl
  ===================================================================
  RCS file: /home/cvs/xml-cocoon2/src/documentation/stylesheets/document2html.xsl,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- document2html.xsl	3 Jan 2002 12:31:01 -0000	1.1
  +++ document2html.xsl	23 Feb 2002 23:25:03 -0000	1.2
  @@ -1,389 +1,279 @@
   <?xml version="1.0"?>
  -
  -<xsl:stylesheet
  -    xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  -    version="1.0">
  -
  -<!-- ====================================================================== -->
  -<!-- document section -->
  -<!-- ====================================================================== -->
  -
  - <xsl:template match="/">
  -  <!-- checks if this is the included document to avoid neverending loop -->
  -  <xsl:if test="not(book)">
  -      <document>
  -      <xsl:choose>
  -		<xsl:when test="document/header/title">
  -		      <title><xsl:value-of select="document/header/title"/></title>
  -		</xsl:when>
  -		<xsl:otherwise>
  -			<title>NO TITLE</title>
  -		</xsl:otherwise>
  -	</xsl:choose>
  -      <body text="#000000" link="#039acc" vlink="#0086b2" alink="#cc0000"
  -            topmargin="4" leftmargin="4" marginwidth="4" marginheight="4"
  -            bgcolor="#ffffff">
  -        
  -        <xsl:apply-templates/>
  -        
  -      </body>
  -      </document>
  -   </xsl:if>
  -   
  -   <xsl:if test="book">
  -    <xsl:apply-templates/>
  -   </xsl:if>
  -  </xsl:template>
  -
  -<!-- ====================================================================== -->
  -<!-- header section -->
  -<!-- ====================================================================== -->
  -
  - <xsl:template match="header">
  -  <!-- ignore on general document -->
  - </xsl:template>
  -
  -<!-- ====================================================================== -->
  -<!-- body section -->
  -<!-- ====================================================================== -->
  -
  -  <xsl:template match="s1">
  -   <div align="right">
  -    <table border="0" width="98%" cellspacing="0" cellpadding="0">
  -      <tr>
  -        <td width="9" height="7" valign="bottom" align="right"><img src="images/bar-top-left.gif" width="9" height="7" vspace="0" hspace="0" border="0"/></td>
  -        <td background="images/bar-border-top.gif"><img src="images/void.gif" width="1" height="5" vspace="0" hspace="0" border="0"/></td>
  -        <td width="9" height="7" valign="bottom" align="left"><img src="images/bar-top-right.gif" width="9" height="7" vspace="0" hspace="0" border="0"/></td>
  -      </tr>
  -      <tr>
  -        <td width="9" background="images/bar-border-left.gif"><img src="images/void.gif" width="9" height="1" vspace="0" hspace="0" border="0"/></td>
  -        <td width="100%" bgcolor="#0086b2">
  -          <font size="+1" face="arial,helvetica,sanserif" color="#ffffff">
  -            <img src="images/void.gif" width="5" height="5" vspace="0" hspace="0" border="0"/><b><xsl:value-of select="@title"/></b></font>
  -         </td>
  -        <td width="9" background="images/bar-border-right.gif"><img src="images/void.gif" width="9" height="1" vspace="0" hspace="0" border="0"/></td>
  -      </tr>
  -      <tr>
  -        <td width="9" height="12" valign="top" align="right"><img src="images/bar-bottom-left.gif" width="9" height="12" vspace="0" hspace="0" border="0"/></td>
  -        <td background="images/bar-border-bottom.gif"><img src="images/void.gif" height="12" vspace="0" hspace="0" border="0"/></td>
  -        <td width="9" height="12" valign="top" align="left"><img src="images/bar-bottom-right.gif" width="9" height="12" vspace="0" hspace="0" border="0"/></td>
  -      </tr>
  -     </table>
  -     <table border="0" width="98%" cellspacing="0" cellpadding="0">
  -      <tr>
  -       <td>
  -        <font face="arial,helvetica,sanserif" color="#000000"><xsl:apply-templates/></font>
  -       </td>
  -      </tr>
  -    </table>
  -   </div>
  -   <br/>
  -  </xsl:template>
  -
  -  <xsl:template match="s2">
  -   <div align="right">
  -    <table border="0" width="95%" cellspacing="0" cellpadding="0">
  -      <tr>
  -        <td width="9" height="7" valign="bottom" align="right"><img src="images/bar-top-left.gif" width="9" height="7" vspace="0" hspace="0" border="0"/></td>
  -        <td background="images/bar-border-top.gif"><img src="images/void.gif" width="1" height="5" vspace="0" hspace="0" border="0"/></td>
  -        <td width="9" height="7" valign="bottom" align="left"><img src="images/bar-top-right.gif" width="9" height="7" vspace="0" hspace="0" border="0"/></td>
  -      </tr>
  -      <tr>
  -        <td width="9" background="images/bar-border-left.gif"><img src="images/void.gif" width="9" height="1" vspace="0" hspace="0" border="0"/></td>
  -        <td width="100%" bgcolor="#0086b2">
  -          <font face="arial,helvetica,sanserif" color="#ffffff">
  -            <img src="images/void.gif" width="5" height="5" vspace="0" hspace="0" border="0"/><b><xsl:value-of select="@title"/></b></font>
  -         </td>
  -        <td width="9" background="images/bar-border-right.gif"><img src="images/void.gif" width="9" height="1" vspace="0" hspace="0" border="0"/></td>
  -      </tr>
  -      <tr>
  -        <td width="9" height="12" valign="top" align="right"><img src="images/bar-bottom-left.gif" width="9" height="12" vspace="0" hspace="0" border="0"/></td>
  -        <td background="images/bar-border-bottom.gif"><img src="images/void.gif" width="1" height="12" vspace="0" hspace="0" border="0"/></td>
  -        <td width="9" height="12" valign="top" align="left"><img src="images/bar-bottom-right.gif" width="9" height="12" vspace="0" hspace="0" border="0"/></td>
  -      </tr>
  -     </table>
  -     <table border="0" width="95%" cellspacing="0" cellpadding="0">
  -      <tr>
  -       <td>
  -        <font face="arial,helvetica,sanserif" color="#000000"><xsl:apply-templates/></font>
  -       </td>
  -      </tr>
  -    </table>
  -   </div>
  -   <br/>
  -  </xsl:template>
  -
  -  <xsl:template match="s3">
  -   <div align="right">
  -    <table border="0" width="90%" cellspacing="0" cellpadding="0">
  -      <tr>
  -        <td width="9" height="7" valign="bottom" align="right"><img src="images/bar-top-left.gif" width="9" height="7" vspace="0" hspace="0" border="0"/></td>
  -        <td background="images/bar-border-top.gif"><img src="images/void.gif" width="1" height="5" vspace="0" hspace="0" border="0"/></td>
  -        <td width="9" height="7" valign="bottom" align="left"><img src="images/bar-top-right.gif" width="9" height="7" vspace="0" hspace="0" border="0"/></td>
  -      </tr>
  -      <tr>
  -        <td width="9" background="images/bar-border-left.gif"><img src="images/void.gif" width="9" height="1" vspace="0" hspace="0" border="0"/></td>
  -        <td width="100%" bgcolor="#0086b2">
  -          <font size="-1" face="arial,helvetica,sanserif" color="#ffffff">
  -            <img src="images/void.gif" width="5" height="5" vspace="0" hspace="0" border="0"/><b><xsl:value-of select="@title"/></b></font>
  -         </td>
  -        <td width="9" background="images/bar-border-right.gif"><img src="images/void.gif" width="9" height="1" vspace="0" hspace="0" border="0"/></td>
  -      </tr>
  -      <tr>
  -        <td width="9" height="12" valign="top" align="right"><img src="images/bar-bottom-left.gif" width="9" height="12" vspace="0" hspace="0" border="0"/></td>
  -        <td background="images/bar-border-bottom.gif"><img src="images/void.gif" width="1" height="12" vspace="0" hspace="0" border="0"/></td>
  -        <td width="9" height="12" valign="top" align="left"><img src="images/bar-bottom-right.gif" width="9" height="12" vspace="0" hspace="0" border="0"/></td>
  -      </tr>
  -     </table>
  -     <table border="0" width="90%" cellspacing="0" cellpadding="0">
  -      <tr>
  -       <td>
  -        <font face="arial,helvetica,sanserif" color="#000000"><xsl:apply-templates/></font>
  -       </td>
  -      </tr>
  -    </table>
  -   </div>
  -   <br/>
  -  </xsl:template>
  -
  -  <xsl:template match="s4">
  -   <div align="right">
  -    <table border="0" width="85%" cellspacing="0" cellpadding="0">
  -      <tr>
  -        <td width="9" height="7" valign="bottom" align="right"><img src="images/bar-top-left.gif" width="9" height="7" vspace="0" hspace="0" border="0"/></td>
  -        <td background="images/bar-border-top.gif"><img src="images/void.gif" width="1" height="5" vspace="0" hspace="0" border="0"/></td>
  -        <td width="9" height="7" valign="bottom" align="left"><img src="images/bar-top-right.gif" width="9" height="7" vspace="0" hspace="0" border="0"/></td>
  -      </tr>
  -      <tr>
  -        <td width="9" background="images/bar-border-left.gif"><img src="images/void.gif" width="9" height="1" vspace="0" hspace="0" border="0"/></td>
  -        <td width="100%" bgcolor="#0086b2">
  -          <font size="-2" face="arial,helvetica,sanserif" color="#ffffff">
  -            <img src="images/void.gif" width="5" height="5" vspace="0" hspace="0" border="0"/><b><xsl:value-of select="@title"/></b></font>
  -         </td>
  -        <td width="9" background="images/bar-border-right.gif"><img src="images/void.gif" width="9" height="1" vspace="0" hspace="0" border="0"/></td>
  -      </tr>
  -      <tr>
  -        <td width="9" height="12" valign="top" align="right"><img src="images/bar-bottom-left.gif" width="9" height="12" vspace="0" hspace="0" border="0"/></td>
  -        <td background="images/bar-border-bottom.gif"><img src="images/void.gif" width="1" height="12" vspace="0" hspace="0" border="0"/></td>
  -        <td width="9" height="12" valign="top" align="left"><img src="images/bar-bottom-right.gif" width="9" height="12" vspace="0" hspace="0" border="0"/></td>
  -      </tr>
  -     </table>
  -     <table border="0" width="85%" cellspacing="0" cellpadding="0">
  -      <tr>
  -       <td>
  -        <font face="arial,helvetica,sanserif" color="#000000"><xsl:apply-templates/></font>
  -       </td>
  -      </tr>
  -    </table>
  -   </div>
  -   <br/>
  -  </xsl:template>
  -    
  -<!-- ====================================================================== -->
  -<!-- footer section -->
  -<!-- ====================================================================== -->
  -
  - <xsl:template match="footer">
  -  <!-- ignore on general documents -->
  - </xsl:template>
  -
  -<!-- ====================================================================== -->
  -<!-- paragraph section -->
  -<!-- ====================================================================== -->
  -
  -  <xsl:template match="p">
  -    <p align="justify"><xsl:apply-templates/></p>
  -  </xsl:template>
  -
  -  <xsl:template match="note">
  -   <p>
  -    <table width="100%" cellspacing="3" cellpadding="0" border="0">
  -      <tr>
  -        <td width="28" valign="top">
  -          <img src="images/note.gif" width="28" height="29" vspace="0" hspace="0" border="0" alt="Note"/>
  -        </td>
  -        <td valign="top">
  -          <font size="-1" face="arial,helvetica,sanserif" color="#000000">
  -            <i>
  -              <xsl:apply-templates/>
  -            </i>
  -          </font>
  -        </td>
  -      </tr>  
  -    </table>
  -   </p>
  -  </xsl:template>
  -
  -  <xsl:template match="source">
  -   <div align="center">
  -    <table cellspacing="4" cellpadding="0" border="0">
  -    <tr>
  -      <td bgcolor="#0086b2" width="1" height="1"><img src="images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
  -      <td bgcolor="#0086b2" height="1"><img src="images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
  -      <td bgcolor="#0086b2" width="1" height="1"><img src="images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
  -    </tr>
  -    <tr>
  -      <td bgcolor="#0086b2" width="1"><img src="images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
  -      <td bgcolor="#ffffff"><pre><xsl:apply-templates/></pre></td>
  -      <td bgcolor="#0086b2" width="1"><img src="images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
  -    </tr>
  -    <tr>
  -      <td bgcolor="#0086b2" width="1" height="1"><img src="images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
  -      <td bgcolor="#0086b2" height="1"><img src="images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
  -      <td bgcolor="#0086b2" width="1" height="1"><img src="images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
  -    </tr>
  -    </table>
  -   </div>
  -  </xsl:template>
  -  
  -  <xsl:template match="fixme">
  -   <!-- ignore on documentation -->
  -  </xsl:template>
  -
  -<!-- ====================================================================== -->
  -<!-- list section -->
  -<!-- ====================================================================== -->
  -
  - <xsl:template match="ul|ol|dl">
  -  <blockquote>
  -   <xsl:copy>
  -    <xsl:apply-templates/>
  -   </xsl:copy>
  -  </blockquote>
  - </xsl:template>
  - 
  - <xsl:template match="li">
  -  <xsl:copy>
  -   <xsl:apply-templates/>
  -  </xsl:copy>
  - </xsl:template>
  -
  - <xsl:template match="sl">
  -  <ul>
  -   <xsl:apply-templates/>
  -  </ul>
  - </xsl:template>
  -
  - <xsl:template match="dt">
  -  <li>
  -   <strong><xsl:value-of select="."/></strong>
  -   <xsl:text> - </xsl:text>
  -   <xsl:apply-templates select="dd"/>   
  -  </li>
  - </xsl:template>
  -
  -<!-- ====================================================================== -->
  -<!-- table section -->
  -<!-- ====================================================================== -->
  -
  -  <xsl:template match="table">
  -    <table width="100%" border="0" cellspacing="2" cellpadding="2">
  -      <caption><xsl:value-of select="caption"/></caption>
  -      <xsl:apply-templates/>
  -    </table>
  -  </xsl:template>
  -
  -  <xsl:template match="tr">
  -    <tr><xsl:apply-templates/></tr>
  -  </xsl:template>
  -
  -  <xsl:template match="th">
  -    <td bgcolor="#039acc" colspan="{@colspan}" rowspan="{@rowspan}" valign="center" align="center">
  -      <font color="#ffffff" size="-1" face="arial,helvetica,sanserif">
  -        <b><xsl:apply-templates/></b>&#160;
  -      </font>
  -    </td>
  -  </xsl:template>
  -
  -  <xsl:template match="td">
  -    <td bgcolor="#a0ddf0" colspan="{@colspan}" rowspan="{@rowspan}" valign="top" align="left">
  -      <font color="#000000" size="-1" face="arial,helvetica,sanserif">
  -        <xsl:apply-templates/>&#160;
  -      </font>
  -    </td>
  -  </xsl:template>
  -
  -  <xsl:template match="tn">
  -    <td bgcolor="#ffffff" colspan="{@colspan}" rowspan="{@rowspan}">
  -      &#160;
  -    </td>
  -  </xsl:template>
  -  
  -  <xsl:template match="caption">
  -    <!-- ignore since already used -->
  -  </xsl:template>
  -
  -<!-- ====================================================================== -->
  -<!-- markup section -->
  -<!-- ====================================================================== -->
  -
  - <xsl:template match="strong">
  -   <b><xsl:apply-templates/></b>
  - </xsl:template>
  -
  - <xsl:template match="em">
  -    <i><xsl:apply-templates/></i>
  - </xsl:template>
  -
  - <xsl:template match="code">
  -    <code><font face="courier, monospaced"><xsl:apply-templates/></font></code>
  - </xsl:template>
  - 
  -<!-- ====================================================================== -->
  -<!-- images section -->
  -<!-- ====================================================================== -->
  -
  - <xsl:template match="figure">
  -  <p align="center">
  -  <xsl:choose>
  -   <xsl:when test="string(@width) and string(@height)">
  -   <img src="{@src}" alt="{@alt}" width="{@width}" height="{@height}" border="0" vspace="4" hspace="4"/>
  -   </xsl:when>
  -   <xsl:otherwise>
  -   <img src="{@src}" alt="{@alt}" border="0" vspace="4" hspace="4"/>
  -   </xsl:otherwise>
  -  </xsl:choose>
  -  </p>
  - </xsl:template>
  - 
  - <xsl:template match="img">
  -   <img src="{@src}" alt="{@alt}" border="0" vspace="4" hspace="4" align="right"/>
  - </xsl:template>
  -
  - <xsl:template match="icon">
  -   <img src="{@src}" alt="{@alt}" border="0" align="absmiddle"/>
  - </xsl:template>
  -
  -<!-- ====================================================================== -->
  -<!-- links section -->
  -<!-- ====================================================================== -->
  -
  - <xsl:template match="link">
  -   <a href="{@href}"><xsl:apply-templates/></a>
  - </xsl:template>
  -
  - <xsl:template match="connect">
  -  <xsl:apply-templates/>
  - </xsl:template>
  -
  - <xsl:template match="jump">
  -   <a href="{@href}#{@anchor}"><xsl:apply-templates/></a>
  - </xsl:template>
  -
  - <xsl:template match="fork">
  -   <a href="{@href}" target="_blank"><xsl:apply-templates/></a>
  - </xsl:template>
  -
  - <xsl:template match="anchor">
  -   <a name="{@id}"><xsl:comment>anchor</xsl:comment></a>
  - </xsl:template>  
  -
  -<!-- ====================================================================== -->
  -<!-- specials section -->
  -<!-- ====================================================================== -->
  -
  - <xsl:template match="br">
  -  <br/>
  - </xsl:template>
  -
  +<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
  +	<!-- ====================================================================== -->
  +	<!-- document section -->
  +	<!-- ====================================================================== -->
  +	<xsl:template match="/">
  +		<!-- checks if this is the included document to avoid neverending loop -->
  +		<xsl:if test="not(book)">
  +			<document>
  +				<xsl:choose>
  +					<xsl:when test="document/header/title">
  +						<title>
  +							<xsl:value-of select="document/header/title"/>
  +						</title>
  +					</xsl:when>
  +					<xsl:otherwise>
  +						<title>NO TITLE</title>
  +					</xsl:otherwise>
  +				</xsl:choose>
  +				<body text="#000000" link="#039acc" vlink="#0086b2" alink="#cc0000" topmargin="4" leftmargin="4" marginwidth="4" marginheight="4" bgcolor="#ffffff">
  +					<xsl:apply-templates/>
  +				</body>
  +			</document>
  +		</xsl:if>
  +		<xsl:if test="book">
  +			<xsl:apply-templates/>
  +		</xsl:if>
  +	</xsl:template>
  +	<!-- ====================================================================== -->
  +	<!-- header section -->
  +	<!-- ====================================================================== -->
  +	<xsl:template match="header">
  +		<!-- ignore on general document -->
  +	</xsl:template>
  +	<!-- ====================================================================== -->
  +	<!-- body section -->
  +	<!-- ====================================================================== -->
  +	<xsl:template match="s1">
  +		<font color="#0086b2" size="+2" face="verdana, helvetica, sans serif">
  +   			<xsl:value-of select="@title"/>
  +		</font>
  +		<hr size="1" style="color: #0086b2"/>
  +		<xsl:apply-templates/>
  +	</xsl:template>
  +	<xsl:template match="s2">
  +		<font color="#0086b2" size="+1" face="verdana, helvetica, sans serif">
  +   			<b><xsl:value-of select="@title"/></b>
  +		</font>
  +		<xsl:apply-templates/>
  +	</xsl:template>
  +	<xsl:template match="s3">
  +		<font color="#0086b2" size="+1" face="verdana, helvetica, sans serif">
  +   			<xsl:value-of select="@title"/>
  +		</font>
  +		<xsl:apply-templates/>
  +	</xsl:template>
  +	<xsl:template match="s4">
  +		<font color="#0086b2" face="verdana, helvetica, sans serif">
  +   			<b><xsl:value-of select="@title"/></b>
  +		</font>
  +		<xsl:apply-templates/>
  +	</xsl:template>
  +	<!-- ====================================================================== -->
  +	<!-- footer section -->
  +	<!-- ====================================================================== -->
  +	<xsl:template match="footer">
  +		<!-- ignore on general documents -->
  +	</xsl:template>
  +	<!-- ====================================================================== -->
  +	<!-- paragraph section -->
  +	<!-- ====================================================================== -->
  +	<xsl:template match="p">
  +		<p><font face="verdana,helvetica,sanserif" color="black">
  +			<xsl:apply-templates/>
  +		</font></p>
  +	</xsl:template>
  +	<xsl:template match="note">
  +		<p>
  +			<table width="100%" cellspacing="3" cellpadding="0" border="0">
  +				<tr>
  +					<td width="28" valign="top">
  +						<img src="images/note.gif" width="28" height="29" vspace="0" hspace="0" border="0" alt="Note"/>
  +					</td>
  +					<td valign="top">
  +						<font size="-1" face="verdana,helvetica,sanserif" color="black">
  +							<i>
  +								<xsl:apply-templates/>
  +							</i>
  +						</font>
  +					</td>
  +				</tr>
  +			</table>
  +		</p>
  +	</xsl:template>
  +	<xsl:template match="source">
  +		<div align="center">
  +			<table cellspacing="4" cellpadding="0" border="0">
  +				<tr>
  +					<td bgcolor="#0086b2" width="1" height="1">
  +						<img src="images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/>
  +					</td>
  +					<td bgcolor="#0086b2" height="1">
  +						<img src="images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/>
  +					</td>
  +					<td bgcolor="#0086b2" width="1" height="1">
  +						<img src="images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/>
  +					</td>
  +				</tr>
  +				<tr>
  +					<td bgcolor="#0086b2" width="1">
  +						<img src="images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/>
  +					</td>
  +					<td bgcolor="#ffffff">
  +						<pre>
  +							<xsl:apply-templates/>
  +						</pre>
  +					</td>
  +					<td bgcolor="#0086b2" width="1">
  +						<img src="images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/>
  +					</td>
  +				</tr>
  +				<tr>
  +					<td bgcolor="#0086b2" width="1" height="1">
  +						<img src="images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/>
  +					</td>
  +					<td bgcolor="#0086b2" height="1">
  +						<img src="images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/>
  +					</td>
  +					<td bgcolor="#0086b2" width="1" height="1">
  +						<img src="images/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/>
  +					</td>
  +				</tr>
  +			</table>
  +		</div>
  +	</xsl:template>
  +	<xsl:template match="fixme">
  +		<!-- ignore on documentation -->
  +	</xsl:template>
  +	<!-- ====================================================================== -->
  +	<!-- list section -->
  +	<!-- ====================================================================== -->
  +	<xsl:template match="ul|ol|dl">
  +		<blockquote>
  +			<xsl:copy>
  +				<xsl:apply-templates/>
  +			</xsl:copy>
  +		</blockquote>
  +	</xsl:template>
  +	<xsl:template match="li">
  +		<xsl:copy><font face="verdana, helvetica, sans serif">
  +			<xsl:apply-templates/>
  +		</font>
  +</xsl:copy>	</xsl:template>
  +	<xsl:template match="sl">
  +		<ul>
  +			<xsl:apply-templates/>
  +		</ul>
  +	</xsl:template>
  +	<xsl:template match="dt">
  +		<li><font face="verdana, helvetica, sans serif">
  +			<strong>
  +				<xsl:value-of select="."/>
  +			</strong>
  +			<xsl:text> - </xsl:text>
  +			<xsl:apply-templates select="dd"/></font>
  +		</li>
  +	</xsl:template>
  +	<!-- ====================================================================== -->
  +	<!-- table section -->
  +	<!-- ====================================================================== -->
  +	<xsl:template match="table">
  +		<table width="100%" border="0" cellspacing="2" cellpadding="2">
  +			<caption><font face="verdana,helvetica,sanserif">
  +				<xsl:value-of select="caption"/>
  +			</font></caption>
  +			<xsl:apply-templates/>
  +		</table>
  +	</xsl:template>
  +	<xsl:template match="tr">
  +		<tr>
  +			<xsl:apply-templates/>
  +		</tr>
  +	</xsl:template>
  +	<xsl:template match="th">
  +		<td bgcolor="#039acc" colspan="{@colspan}" rowspan="{@rowspan}" valign="center" align="center">
  +			<font color="white" size="-1" face="verdana,helvetica,sanserif">
  +				<b>
  +					<xsl:apply-templates/>
  +				</b>
  +			</font>
  +		</td>
  +	</xsl:template>
  +	<xsl:template match="td">
  +		<td bgcolor="#a0ddf0" colspan="{@colspan}" rowspan="{@rowspan}" valign="top" align="left">
  +			<font color="black" size="-1" face="verdana,helvetica,sanserif">
  +				<xsl:apply-templates/>
  +			</font>
  +		</td>
  +	</xsl:template>
  +	<xsl:template match="tn">
  +		<td bgcolor="#ffffff" colspan="{@colspan}" rowspan="{@rowspan}">&#160;</td>
  +	</xsl:template>
  +	<xsl:template match="caption">
  +		<!-- ignore since already used -->
  +	</xsl:template>
  +	<!-- ====================================================================== -->
  +	<!-- markup section -->
  +	<!-- ====================================================================== -->
  +	<xsl:template match="strong">
  +		<b>
  +			<xsl:apply-templates/>
  +		</b>
  +	</xsl:template>
  +	<xsl:template match="em">
  +		<i>
  +			<xsl:apply-templates/>
  +		</i>
  +	</xsl:template>
  +	<xsl:template match="code">
  +		<code>
  +			<font face="courier, monospaced">
  +				<xsl:apply-templates/>
  +			</font>
  +		</code>
  +	</xsl:template>
  +	<!-- ====================================================================== -->
  +	<!-- images section -->
  +	<!-- ====================================================================== -->
  +	<xsl:template match="figure">
  +		<p align="center">
  +			<xsl:choose>
  +				<xsl:when test="string(@width) and string(@height)">
  +					<img src="{@src}" alt="{@alt}" width="{@width}" height="{@height}" border="0" vspace="4" hspace="4"/>
  +				</xsl:when>
  +				<xsl:otherwise>
  +					<img src="{@src}" alt="{@alt}" border="0" vspace="4" hspace="4"/>
  +				</xsl:otherwise>
  +			</xsl:choose>
  +		</p>
  +	</xsl:template>
  +	<xsl:template match="img">
  +		<img src="{@src}" alt="{@alt}" border="0" vspace="4" hspace="4" align="right"/>
  +	</xsl:template>
  +	<xsl:template match="icon">
  +		<img src="{@src}" alt="{@alt}" border="0" align="absmiddle"/>
  +	</xsl:template>
  +	<!-- ====================================================================== -->
  +	<!-- links section -->
  +	<!-- ====================================================================== -->
  +	<xsl:template match="link">
  +		<a href="{@href}">
  +			<xsl:apply-templates/>
  +		</a>
  +	</xsl:template>
  +	<xsl:template match="connect">
  +		<xsl:apply-templates/>
  +	</xsl:template>
  +	<xsl:template match="jump">
  +		<a href="{@href}#{@anchor}">
  +			<xsl:apply-templates/>
  +		</a>
  +	</xsl:template>
  +	<xsl:template match="fork">
  +		<a href="{@href}" target="_blank">
  +			<xsl:apply-templates/>
  +		</a>
  +	</xsl:template>
  +	<xsl:template match="anchor">
  +		<a name="{@id}">
  +			<xsl:comment>anchor</xsl:comment>
  +		</a>
  +	</xsl:template>
  +	<!-- ====================================================================== -->
  +	<!-- specials section -->
  +	<!-- ====================================================================== -->
  +	<xsl:template match="br">
  +		<br/>
  +	</xsl:template>
   </xsl:stylesheet>
  
  
  
  1.5       +2 -3      xml-cocoon2/src/documentation/stylesheets/site2xhtml.xsl
  
  Index: site2xhtml.xsl
  ===================================================================
  RCS file: /home/cvs/xml-cocoon2/src/documentation/stylesheets/site2xhtml.xsl,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- site2xhtml.xsl	5 Feb 2002 01:49:06 -0000	1.4
  +++ site2xhtml.xsl	23 Feb 2002 23:25:03 -0000	1.5
  @@ -98,8 +98,7 @@
   			</table>
   		</td>
   		<td>
  -			<table border="0" cellpadding="0" cellspacing="0">
  -				<tr><td width="100%" height="10"/></tr>
  +			<table border="0" cellpadding="0" cellspacing="15">
   				<tr><td><xsl:copy-of select="/site/document/body/node()|@*"/></td></tr>
   			</table>
   		</td>
  @@ -114,7 +113,7 @@
     <tr>
       <td align="center">
         <font color="#0086b2" face="arial,helvetica,sanserif" size="-1">
  -        <i>Copyright &#169; @year@ The Apache Software Foundation. All Rights Reserved.</i>
  +        <i>Copyright &#169; 1999-2002 The Apache Software Foundation. All Rights Reserved.</i>
         </font>
       </td>
     </tr>
  
  
  

----------------------------------------------------------------------
In case of troubles, e-mail:     webmaster@xml.apache.org
To unsubscribe, e-mail:          cocoon-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-cvs-help@xml.apache.org