Sophie

Sophie

distrib > Fedora > 17 > i386 > by-pkgid > 9f452694b2d23dacae7f9cc757f9be50 > files > 39

docbook-style-xsl-1.78.1-1.fc17.noarch.rpm

<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><title>section.level</title><link rel="stylesheet" type="text/css" href="../reference.css"><meta name="generator" content="DocBook XSL Stylesheets V1.78.1"><link rel="home" href="../index.html" title="DocBook XSL Stylesheets: Reference Documentation"><link rel="up" href="base.html" title="Common » Base Template Reference"><link rel="prev" href="template.is.section.html" title="is.section"><link rel="next" href="template.qanda.section.level.html" title="qanda.section.level"><link rel="copyright" href="copyright.html" title="License"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">section.level</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="template.is.section.html">Prev</a> </td><th width="60%" align="center">Common » Base Template Reference</th><td width="20%" align="right"> <a accesskey="n" href="template.qanda.section.level.html">Next</a></td></tr></table><hr></div><div class="refentry"><a name="template.section.level"></a><div class="titlepage"></div>
<div class="refnamediv"><h2>section.level</h2><p>
section.level
 &#8212; Returns the hierarchical level of a section
</p></div>
<div class="refsynopsisdiv"><h2>Synopsis</h2>
<pre class="synopsis">&lt;xsl:template name="section.level"&gt;
&lt;xsl:param name="node" select="."/&gt;
  ...
&lt;/xsl:template&gt;</pre>
</div>
<div class="refsect1"><a name="idp9669888"></a><h2>Description</h2>

<p>This template calculates the hierarchical level of a section.
The element <a href="http://docbook.org/tdg5/en/html/sect1.html"><code class="sgmltag-element">sect1</code></a> is at level 1, <a href="http://docbook.org/tdg5/en/html/sect2.html"><code class="sgmltag-element">sect2</code></a> is
at level 2, etc.</p>



<p>Recursive sections are calculated down to the fifth level.</p>

</div><div class="refsect1"><a name="idp9672112"></a><h2>Parameters</h2>

<div class="variablelist"><dl class="variablelist"><dt><span class="term">node</span></dt><dd>

<p>The section node for which the level should be calculated.
Defaults to the context node.</p>

</dd></dl></div>

</div><div class="refsect1"><a name="idp9674784"></a><h2>Returns</h2>

<p>The section level, <span class="quote">&#8220;<span class="quote">1</span>&#8221;</span>, <span class="quote">&#8220;<span class="quote">2</span>&#8221;</span>, etc.
</p>

</div></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="template.is.section.html">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="base.html">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="template.qanda.section.level.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">is.section </td><td width="20%" align="center"><a accesskey="h" href="../index.html">Home</a></td><td width="40%" align="right" valign="top"> qanda.section.level</td></tr></table></div></body></html>