123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488 |
- <?xml version="1.0"?>
-
- <xsl:stylesheet
- xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- version="1.0">
-
- <xsl:param name="stylebook.project"/>
- <xsl:param name="copyright"/>
- <xsl:param name="id"/>
-
- <!-- ====================================================================== -->
- <!-- document section -->
- <!-- ====================================================================== -->
-
- <xsl:template match="/">
- <!-- checks if this is the included document to avoid neverending loop -->
- <xsl:if test="not(book)">
- <html>
- <head>
- <script language="JavaScript" type="text/javascript" src="resources/script.js"/>
- <title><xsl:value-of select="document/header/title"/></title>
- </head>
- <body text="#000000" link="#039acc" vlink="#0086b2" alink="#cc0000"
- topmargin="4" leftmargin="4" marginwidth="4" marginheight="4"
- bgcolor="#ffffff">
- <!-- THE TOP BAR (HEADER) -->
- <table width="100%" cellspacing="0" cellpadding="0" border="0">
- <tr>
- <td width="135" height="60" rowspan="3" valign="top" align="left">
- <img width="135" height="60" src="resources/logo.gif" hspace="0" vspace="0" border="0"/>
- </td>
- <td width="100%" height="5" valign="top" align="left" colspan="2" background="resources/line.gif">
- <img width="1" height="5" src="resources/line.gif" hspace="0" vspace="0" border="0" align="left"/>
- </td>
- <td width="29" height="60" rowspan="3" valign="top" align="left">
- <img width="29" height="60" src="resources/right.gif" hspace="0" vspace="0" border="0"/>
- </td>
- </tr>
- <tr>
- <td width="100%" height="35" valign="top" align="left" colspan="2" bgcolor="#0086b2">
- <img src="graphics/{$id}-header.jpg" width="456" height="35" hspace="0" vspace="0" border="0" alt="{header/title}" align="right"/>
- </td>
- </tr>
- <tr>
- <td width="100%" height="20" valign="top" align="left" bgcolor="#0086b2" background="resources/bottom.gif">
- <img width="3" height="20" src="resources/bottom.gif" hspace="0" vspace="0" border="0" align="left"/>
- </td>
- <td align="right" bgcolor="#0086b2" height="20" valign="top" width="288" background="resources/bottom.gif">
- <table border="0" cellpadding="0" cellspacing="0" width="288">
- <tr>
- <td width="96" height="20" valign="top" align="left">
- <a href="http://xml.apache.org/" onMouseOver="rolloverOn('xml');" onMouseOut="rolloverOff('xml');" target="new">
- <img alt="http://xml.apache.org/" width="96" height="20" src="resources/button-xml-lo.gif"
- name="xml" hspace="0" vspace="0" border="0"
- onLoad="rolloverLoad('xml','resources/button-xml-hi.gif','resources/button-xml-lo.gif');"/>
- </a>
- </td>
- <td width="96" height="20" valign="top" align="left">
- <a href="http://www.apache.org/" onMouseOver="rolloverOn('asf');" onMouseOut="rolloverOff('asf');" target="new">
- <img alt="http://www.apache.org/" width="96" height="20" src="resources/button-asf-lo.gif"
- name="asf" hspace="0" vspace="0" border="0"
- onLoad="rolloverLoad('asf','resources/button-asf-hi.gif','resources/button-asf-lo.gif');"/>
- </a>
- </td>
- <td width="96" height="20" valign="top" align="left">
- <a href="http://www.w3.org/" onMouseOver="rolloverOn('w3c');" onMouseOut="rolloverOff('w3c');" target="new">
- <img alt="http://www.w3.org/" width="96" height="20" src="resources/button-w3c-lo.gif"
- name="w3c" hspace="0" vspace="0" border="0"
- onLoad="rolloverLoad('w3c','resources/button-w3c-hi.gif','resources/button-w3c-lo.gif');"/>
- </a>
- </td>
- </tr>
- </table>
- </td>
- </tr>
- </table>
-
- <!-- THE MAIN PANEL (SIDEBAR AND CONTENT) -->
- <table width="100%" cellspacing="0" cellpadding="0" border="0">
- <tr>
- <!-- THE SIDE BAR -->
- <td width="120" valign="top" align="left">
- <img width="120" height="14" src="resources/join.gif" hspace="0" vspace="0" border="0"/><br/>
- <xsl:apply-templates select="document($stylebook.project)"/>
- <img width="120" height="14" src="resources/close.gif" hspace="0" vspace="0" border="0"/><br/>
- </td>
- <!-- THE CONTENT PANEL -->
- <td width="*" valign="top" align="left">
- <table border="0" cellspacing="0" cellpadding="3">
- <tr><td><br/><xsl:apply-templates/></td></tr>
- </table>
- </td>
- </tr>
- </table>
-
- <br/>
-
- <table width="100%" border="0" cellspacing="0" cellpadding="0">
- <tr><td bgcolor="#0086b2"><img src="images/dot.gif" width="1" height="1"/></td></tr>
- <tr>
- <td align="center"><font face="arial,helvetica,sanserif" size="-1" color="#0086b2"><i>
- Copyright © <xsl:value-of select="$copyright"/>.
- All Rights Reserved.
- </i></font></td>
- </tr>
- </table>
- </body>
- </html>
- </xsl:if>
-
- <xsl:if test="book">
- <xsl:apply-templates/>
- </xsl:if>
- </xsl:template>
-
- <!-- ====================================================================== -->
- <!-- book section -->
- <!-- ====================================================================== -->
-
- <xsl:template match="page|faqs|changes|todo|spec">
- <xsl:if test="@id=$id">
- <img src="graphics/{@id}-label-1.jpg" width="120" height="12" hspace="0" vspace="0" border="0" alt="{@label}"/>
- </xsl:if>
- <xsl:if test="@id!=$id">
- <a href="{@id}.html" onMouseOver="rolloverOn('side-{@id}');" onMouseOut="rolloverOff('side-{@id}');">
- <img onLoad="rolloverLoad('side-{@id}','graphics/{@id}-label-2.jpg','graphics/{@id}-label-3.jpg');"
- name="side-{@id}" src="graphics/{@id}-label-3.jpg" width="120" height="12" hspace="0" vspace="0" border="0" alt="{@label}"/>
- </a>
- </xsl:if>
- <br/>
- </xsl:template>
-
- <xsl:template match="external">
- <xsl:variable name="extid" select="concat('ext-',position())"/>
- <a href="{@href}" onMouseOver="rolloverOn('side-{$extid}');" onMouseOut="rolloverOff('side-{$extid}');">
- <img onLoad="rolloverLoad('side-{$extid}','graphics/{$extid}-label-2.jpg','graphics/{$extid}-label-3.jpg');"
- name="side-{$extid}" src="graphics/{$extid}-label-3.jpg" width="120" height="12" hspace="0" vspace="0" border="0" alt="{@label}"/>
- </a>
- <br/>
- </xsl:template>
-
- <xsl:template match="separator">
- <img src="resources/separator.gif" width="120" height="6" hspace="0" vspace="0" border="0"/><br/>
- </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="resources/bar-top-left.gif" width="9" height="7" vspace="0" hspace="0" border="0"/></td>
- <td background="resources/bar-border-top.gif"><img src="resources/void.gif" width="1" height="5" vspace="0" hspace="0" border="0"/></td>
- <td width="9" height="7" valign="bottom" align="left"><img src="resources/bar-top-right.gif" width="9" height="7" vspace="0" hspace="0" border="0"/></td>
- </tr>
- <tr>
- <td width="9" background="resources/bar-border-left.gif"><img src="resources/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="resources/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="resources/bar-border-right.gif"><img src="resources/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="resources/bar-bottom-left.gif" width="9" height="12" vspace="0" hspace="0" border="0"/></td>
- <td background="resources/bar-border-bottom.gif"><img src="resources/void.gif" height="12" vspace="0" hspace="0" border="0"/></td>
- <td width="9" height="12" valign="top" align="left"><img src="resources/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="resources/bar-top-left.gif" width="9" height="7" vspace="0" hspace="0" border="0"/></td>
- <td background="resources/bar-border-top.gif"><img src="resources/void.gif" width="1" height="5" vspace="0" hspace="0" border="0"/></td>
- <td width="9" height="7" valign="bottom" align="left"><img src="resources/bar-top-right.gif" width="9" height="7" vspace="0" hspace="0" border="0"/></td>
- </tr>
- <tr>
- <td width="9" background="resources/bar-border-left.gif"><img src="resources/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="resources/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="resources/bar-border-right.gif"><img src="resources/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="resources/bar-bottom-left.gif" width="9" height="12" vspace="0" hspace="0" border="0"/></td>
- <td background="resources/bar-border-bottom.gif"><img src="resources/void.gif" width="1" height="12" vspace="0" hspace="0" border="0"/></td>
- <td width="9" height="12" valign="top" align="left"><img src="resources/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="resources/bar-top-left.gif" width="9" height="7" vspace="0" hspace="0" border="0"/></td>
- <td background="resources/bar-border-top.gif"><img src="resources/void.gif" width="1" height="5" vspace="0" hspace="0" border="0"/></td>
- <td width="9" height="7" valign="bottom" align="left"><img src="resources/bar-top-right.gif" width="9" height="7" vspace="0" hspace="0" border="0"/></td>
- </tr>
- <tr>
- <td width="9" background="resources/bar-border-left.gif"><img src="resources/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="resources/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="resources/bar-border-right.gif"><img src="resources/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="resources/bar-bottom-left.gif" width="9" height="12" vspace="0" hspace="0" border="0"/></td>
- <td background="resources/bar-border-bottom.gif"><img src="resources/void.gif" width="1" height="12" vspace="0" hspace="0" border="0"/></td>
- <td width="9" height="12" valign="top" align="left"><img src="resources/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="resources/bar-top-left.gif" width="9" height="7" vspace="0" hspace="0" border="0"/></td>
- <td background="resources/bar-border-top.gif"><img src="resources/void.gif" width="1" height="5" vspace="0" hspace="0" border="0"/></td>
- <td width="9" height="7" valign="bottom" align="left"><img src="resources/bar-top-right.gif" width="9" height="7" vspace="0" hspace="0" border="0"/></td>
- </tr>
- <tr>
- <td width="9" background="resources/bar-border-left.gif"><img src="resources/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="resources/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="resources/bar-border-right.gif"><img src="resources/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="resources/bar-bottom-left.gif" width="9" height="12" vspace="0" hspace="0" border="0"/></td>
- <td background="resources/bar-border-bottom.gif"><img src="resources/void.gif" width="1" height="12" vspace="0" hspace="0" border="0"/></td>
- <td width="9" height="12" valign="top" align="left"><img src="resources/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="left"><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="resources/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="resources/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
- <td bgcolor="#0086b2" height="1"><img src="resources/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
- <td bgcolor="#0086b2" width="1" height="1"><img src="resources/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
- </tr>
- <tr>
- <td bgcolor="#0086b2" width="1"><img src="resources/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="resources/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
- </tr>
- <tr>
- <td bgcolor="#0086b2" width="1" height="1"><img src="resources/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
- <td bgcolor="#0086b2" height="1"><img src="resources/void.gif" width="1" height="1" vspace="0" hspace="0" border="0"/></td>
- <td bgcolor="#0086b2" width="1" height="1"><img src="resources/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> 
- </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/> 
- </font>
- </td>
- </xsl:template>
-
- <xsl:template match="tn">
- <td bgcolor="#ffffff" colspan="{@colspan}" rowspan="{@rowspan}">
-  
- </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"><img src="{@src}" alt="{@alt}" border="0" vspace="4" hspace="4"/></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>
|