mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-08-14 13:56:01 +03:00
293 lines
12 KiB
XML
293 lines
12 KiB
XML
<?xml version='1.0'?>
|
|
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
|
|
|
|
<xsl:import href="/opt/docbook/xsl/html/chunk.xsl"/>
|
|
|
|
<xsl:param name="chunk.first.sections" select="1"/>
|
|
<xsl:param name="use.id.as.filename" select="1"/>
|
|
<xsl:param name="html.stylesheet">modsecurity-reference.css</xsl:param>
|
|
|
|
<xsl:template name="user.header.navigation">
|
|
<div style="background:#F5F5F5;width:100%;border-top:1px solid #DDDDDD;border-bottom:1px solid #DDDDDD"><table cellpadding="0" cellspacing="0" width="100%"><tr><td><a href="http://www.modsecurity.org"><img border="0" alt="ModSecurity" height="36" width="120" src="modsecurity.gif" style="margin:4px"/></a></td><td align="right"><a href="http://www.breach.com"><img border="0" width="100" height="36" src="breach-logo-small.gif" style="margin:6px"/></a></td></tr></table></div>
|
|
</xsl:template>
|
|
|
|
<xsl:template name="user.footer.navigation">
|
|
<div class="copyright" align="center">Copyright (C) 2004-2007 <a href="http://www.breach.com">Breach Security</a></div>
|
|
</xsl:template>
|
|
|
|
<xsl:template name="article.titlepage.separator">
|
|
<hr size="1"/>
|
|
</xsl:template>
|
|
|
|
<xsl:template name="header.navigation">
|
|
<xsl:param name="prev" select="/foo"/>
|
|
<xsl:param name="next" select="/foo"/>
|
|
<xsl:param name="nav.context"/>
|
|
|
|
<xsl:variable name="home" select="/*[1]"/>
|
|
<xsl:variable name="up" select="parent::*"/>
|
|
|
|
<xsl:variable name="row1" select="$navig.showtitles != 0"/>
|
|
<xsl:variable name="row2" select="count($prev) > 0
|
|
or (count($up) > 0
|
|
and generate-id($up) != generate-id($home)
|
|
and $navig.showtitles != 0)
|
|
or count($next) > 0"/>
|
|
|
|
<xsl:if test="$suppress.navigation = '0' and $suppress.header.navigation = '0'">
|
|
<div id="navheader">
|
|
<xsl:if test="$row1 or $row2">
|
|
<table width="100%" summary="Navigation header">
|
|
<xsl:if test="$row1">
|
|
<tr>
|
|
<th colspan="3" align="center">
|
|
<xsl:apply-templates select="." mode="object.title.markup"/>
|
|
</th>
|
|
</tr>
|
|
</xsl:if>
|
|
|
|
<xsl:if test="$row2">
|
|
<tr>
|
|
<td width="20%" align="left">
|
|
<xsl:if test="count($prev)>0">
|
|
<a accesskey="p">
|
|
<xsl:attribute name="href">
|
|
<xsl:call-template name="href.target">
|
|
<xsl:with-param name="object" select="$prev"/>
|
|
</xsl:call-template>
|
|
</xsl:attribute>
|
|
<xsl:call-template name="navig.content">
|
|
<xsl:with-param name="direction" select="'prev'"/>
|
|
</xsl:call-template>
|
|
</a>
|
|
</xsl:if>
|
|
<xsl:text> </xsl:text>
|
|
</td>
|
|
<td width="60%" align="center">
|
|
<xsl:choose>
|
|
<xsl:when test="count($up) > 0
|
|
and generate-id($up) != generate-id($home)
|
|
and $navig.showtitles != 0">
|
|
<xsl:apply-templates select="$up" mode="object.title.markup"/>
|
|
</xsl:when>
|
|
<xsl:otherwise> </xsl:otherwise>
|
|
</xsl:choose>
|
|
|
|
<xsl:choose>
|
|
<xsl:when test="$home != . or $nav.context = 'toc'">
|
|
<a accesskey="h">
|
|
<xsl:attribute name="href">
|
|
<xsl:call-template name="href.target">
|
|
<xsl:with-param name="object" select="$home"/>
|
|
</xsl:call-template>
|
|
</xsl:attribute>
|
|
<xsl:call-template name="navig.content">
|
|
<xsl:with-param name="direction" select="'home'"/>
|
|
</xsl:call-template>
|
|
</a>
|
|
<xsl:if test="$chunk.tocs.and.lots != 0 and $nav.context != 'toc'">
|
|
<xsl:text> | </xsl:text>
|
|
</xsl:if>
|
|
</xsl:when>
|
|
<xsl:otherwise> </xsl:otherwise>
|
|
</xsl:choose>
|
|
|
|
</td>
|
|
<td width="20%" align="right">
|
|
<xsl:text> </xsl:text>
|
|
<xsl:if test="count($next)>0">
|
|
<a accesskey="n">
|
|
<xsl:attribute name="href">
|
|
<xsl:call-template name="href.target">
|
|
<xsl:with-param name="object" select="$next"/>
|
|
</xsl:call-template>
|
|
</xsl:attribute>
|
|
<xsl:call-template name="navig.content">
|
|
<xsl:with-param name="direction" select="'next'"/>
|
|
</xsl:call-template>
|
|
</a>
|
|
</xsl:if>
|
|
</td>
|
|
</tr>
|
|
</xsl:if>
|
|
</table>
|
|
</xsl:if>
|
|
<xsl:if test="$header.rule != 0">
|
|
<hr size="1"/>
|
|
</xsl:if>
|
|
</div>
|
|
</xsl:if>
|
|
</xsl:template>
|
|
|
|
<!-- ==================================================================== -->
|
|
|
|
<xsl:template name="footer.navigation">
|
|
<xsl:param name="prev" select="/foo"/>
|
|
<xsl:param name="next" select="/foo"/>
|
|
<xsl:param name="nav.context"/>
|
|
|
|
<xsl:variable name="home" select="/*[1]"/>
|
|
<xsl:variable name="up" select="parent::*"/>
|
|
|
|
<xsl:variable name="row1" select="count($prev) > 0
|
|
or count($up) > 0
|
|
or count($next) > 0"/>
|
|
|
|
<xsl:variable name="row2" select="($prev and $navig.showtitles != 0)
|
|
or (generate-id($home) != generate-id(.)
|
|
or $nav.context = 'toc')
|
|
or ($chunk.tocs.and.lots != 0
|
|
and $nav.context != 'toc')
|
|
or ($next and $navig.showtitles != 0)"/>
|
|
|
|
<xsl:if test="$suppress.navigation = '0' and $suppress.footer.navigation = '0'">
|
|
<div id="navfooter">
|
|
<xsl:if test="$footer.rule != 0">
|
|
<hr size="1"/>
|
|
</xsl:if>
|
|
|
|
<xsl:if test="$row1 or $row2">
|
|
<table width="100%" summary="Navigation footer">
|
|
<xsl:if test="$row1">
|
|
<tr>
|
|
<td width="40%" align="left">
|
|
<xsl:if test="count($prev)>0">
|
|
<a accesskey="p">
|
|
<xsl:attribute name="href">
|
|
<xsl:call-template name="href.target">
|
|
<xsl:with-param name="object" select="$prev"/>
|
|
</xsl:call-template>
|
|
</xsl:attribute>
|
|
<xsl:call-template name="navig.content">
|
|
<xsl:with-param name="direction" select="'prev'"/>
|
|
</xsl:call-template>
|
|
</a>
|
|
</xsl:if>
|
|
<xsl:text> </xsl:text>
|
|
</td>
|
|
<td width="20%" align="center">
|
|
<xsl:choose>
|
|
<xsl:when test="count($up)>0
|
|
and generate-id($up) != generate-id($home)">
|
|
<a accesskey="u">
|
|
<xsl:attribute name="href">
|
|
<xsl:call-template name="href.target">
|
|
<xsl:with-param name="object" select="$up"/>
|
|
</xsl:call-template>
|
|
</xsl:attribute>
|
|
<xsl:call-template name="navig.content">
|
|
<xsl:with-param name="direction" select="'up'"/>
|
|
</xsl:call-template>
|
|
</a>
|
|
</xsl:when>
|
|
<xsl:otherwise> </xsl:otherwise>
|
|
</xsl:choose>
|
|
</td>
|
|
<td width="40%" align="right">
|
|
<xsl:text> </xsl:text>
|
|
<xsl:if test="count($next)>0">
|
|
<a accesskey="n">
|
|
<xsl:attribute name="href">
|
|
<xsl:call-template name="href.target">
|
|
<xsl:with-param name="object" select="$next"/>
|
|
</xsl:call-template>
|
|
</xsl:attribute>
|
|
<xsl:call-template name="navig.content">
|
|
<xsl:with-param name="direction" select="'next'"/>
|
|
</xsl:call-template>
|
|
</a>
|
|
</xsl:if>
|
|
</td>
|
|
</tr>
|
|
</xsl:if>
|
|
|
|
<xsl:if test="$row2">
|
|
<tr>
|
|
<td width="40%" align="left" valign="top">
|
|
<xsl:if test="$navig.showtitles != 0">
|
|
<xsl:apply-templates select="$prev" mode="object.title.markup"/>
|
|
</xsl:if>
|
|
<xsl:text> </xsl:text>
|
|
</td>
|
|
<td width="20%" align="center">
|
|
<xsl:choose>
|
|
<xsl:when test="$home != . or $nav.context = 'toc'">
|
|
<a accesskey="h">
|
|
<xsl:attribute name="href">
|
|
<xsl:call-template name="href.target">
|
|
<xsl:with-param name="object" select="$home"/>
|
|
</xsl:call-template>
|
|
</xsl:attribute>
|
|
<xsl:call-template name="navig.content">
|
|
<xsl:with-param name="direction" select="'home'"/>
|
|
</xsl:call-template>
|
|
</a>
|
|
<xsl:if test="$chunk.tocs.and.lots != 0 and $nav.context != 'toc'">
|
|
<xsl:text> | </xsl:text>
|
|
</xsl:if>
|
|
</xsl:when>
|
|
<xsl:otherwise> </xsl:otherwise>
|
|
</xsl:choose>
|
|
|
|
<xsl:if test="$chunk.tocs.and.lots != 0 and $nav.context != 'toc'">
|
|
<a accesskey="t">
|
|
<xsl:attribute name="href">
|
|
<xsl:apply-templates select="/*[1]"
|
|
mode="recursive-chunk-filename">
|
|
<xsl:with-param name="recursive" select="true()"/>
|
|
</xsl:apply-templates>
|
|
<xsl:text>-toc</xsl:text>
|
|
<xsl:value-of select="$html.ext"/>
|
|
</xsl:attribute>
|
|
<xsl:call-template name="gentext">
|
|
<xsl:with-param name="key" select="'nav-toc'"/>
|
|
</xsl:call-template>
|
|
</a>
|
|
</xsl:if>
|
|
</td>
|
|
<td width="40%" align="right" valign="top">
|
|
<xsl:text> </xsl:text>
|
|
<xsl:if test="$navig.showtitles != 0">
|
|
<xsl:apply-templates select="$next" mode="object.title.markup"/>
|
|
</xsl:if>
|
|
</td>
|
|
</tr>
|
|
</xsl:if>
|
|
</table>
|
|
</xsl:if>
|
|
</div>
|
|
</xsl:if>
|
|
</xsl:template>
|
|
|
|
<!--
|
|
<xsl:template name="nongraphical.admonition">
|
|
<xsl:variable name="id">
|
|
<xsl:call-template name="object.id"/>
|
|
</xsl:variable>
|
|
|
|
<fo:block space-before.minimum="0.8em"
|
|
space-before.optimum="1em"
|
|
space-before.maximum="1.2em"
|
|
start-indent="0.25in"
|
|
end-indent="0.25in"
|
|
border-top="0.5pt solid black"
|
|
border-bottom="0.5pt solid black"
|
|
padding-top="4pt"
|
|
padding-bottom="4pt"
|
|
id="{$id}">
|
|
<xsl:if test="$admon.textlabel != 0 or title">
|
|
<fo:block keep-with-next='always'
|
|
xsl:use-attribute-sets="admonition.title.properties">
|
|
<xsl:apply-templates select="." mode="object.title.markup"/>
|
|
</fo:block>
|
|
</xsl:if>
|
|
|
|
<fo:block xsl:use-attribute-sets="admonition.properties">
|
|
<xsl:apply-templates/>
|
|
</fo:block>
|
|
</fo:block>
|
|
</xsl:template>
|
|
-->
|
|
|
|
</xsl:stylesheet>
|