<
xsl:
stylesheet xmlns:xsl="
http://www.w3.org/1999/XSL/Transform"
xmlns:xd="
http:www.pnp-software.com/XSLTdoc"
version="
2.0">
<
xd:
doc type="
stylesheet">
This rule generates the banner at the top of all documentation pages.
The "index" parameter should have a value between 1 and n where n is the
number of entries in the banner. The index-th entry in the banner will be highlighted.
If the value of index is outside the range [1..n], then no entries in the banner are highlighted.
<
xd:
author>
A. Pasetti, I. Birrer</
xd:
author>
<
xd:
cvsId>
$Id: GenerateBanner.xsl 2 2005-01-19 16:09:12Z ibirrer $</
xd:
cvsId>
<
xd:
copyright>
2004, P&P Software GmbH</
xd:
copyright>
</
xd:
doc>
<
xsl:
template name="
GenerateBanner">
<
xsl:
param name="
index" />
<
xsl:
choose>
<
xsl:
when test="
$index='1'">
<
div class="
banner">
<
a class="
bannerHL"
href="
index.html">
Entry Page</
a>
| <
a class="
banner"
href="
aspects.html">
Aspects</
a>
| <
a class="
banner"
href="
groups.html">
Groups</
a>
| <
a class="
banner"
href="
pointcuts.html">
Pointcuts</
a>
| <
a class="
banner"
href="
advices.html">
Advices</
a>
| <
a class="
banner"
href="
files.html">
Files</
a>
| <
a class="
banner"
href="
alphabeticalList.html">
Alphabetical List</
a>
</
div>
</
xsl:
when>
<
xsl:
when test="
$index='2'">
<
div class="
banner">
<
a class="
banner"
href="
index.html">
Entry Page</
a>
| <
a class="
bannerHL"
href="
aspects.html">
Aspects</
a>
| <
a class="
banner"
href="
groups.html">
Groups</
a>
| <
a class="
banner"
href="
pointcuts.html">
Pointcuts</
a>
| <
a class="
banner"
href="
advices.html">
Advices</
a>
| <
a class="
banner"
href="
files.html">
Files</
a>
| <
a class="
banner"
href="
alphabeticalList.html">
Alphabetical List</
a>
</
div>
</
xsl:
when>
<
xsl:
when test="
$index='3'">
<
div class="
banner">
<
a class="
banner"
href="
index.html">
Entry Page</
a>
| <
a class="
banner"
href="
aspects.html">
Aspects</
a>
| <
a class="
bannerHL"
href="
groups.html">
Groups</
a>
| <
a class="
banner"
href="
pointcuts.html">
Pointcuts</
a>
| <
a class="
banner"
href="
advices.html">
Advices</
a>
| <
a class="
banner"
href="
files.html">
Files</
a>
| <
a class="
banner"
href="
alphabeticalList.html">
Alphabetical List</
a>
</
div>
</
xsl:
when>
<
xsl:
when test="
$index='4'">
<
div class="
banner">
<
a class="
banner"
href="
index.html">
Entry Page</
a>
| <
a class="
banner"
href="
aspects.html">
Aspects</
a>
| <
a class="
banner"
href="
groups.html">
Groups</
a>
| <
a class="
bannerHL"
href="
pointcuts.html">
Pointcuts</
a>
| <
a class="
banner"
href="
advices.html">
Advices</
a>
| <
a class="
banner"
href="
files.html">
Files</
a>
| <
a class="
banner"
href="
alphabeticalList.html">
Alphabetical List</
a>
</
div>
</
xsl:
when>
<
xsl:
when test="
$index='5'">
<
div class="
banner">
<
a class="
banner"
href="
index.html">
Entry Page</
a>
| <
a class="
banner"
href="
aspects.html">
Aspects</
a>
| <
a class="
banner"
href="
groups.html">
Groups</
a>
| <
a class="
banner"
href="
pointcuts.html">
Pointcuts</
a>
| <
a class="
banner"
href="
advices.html">
Advices</
a>
| <
a class="
bannerHL"
href="
files.html">
Files</
a>
| <
a class="
banner"
href="
alphabeticalList.html">
Alphabetical List</
a>
</
div>
</
xsl:
when>
<
xsl:
when test="
$index='6'">
<
div class="
banner">
<
a class="
banner"
href="
index.html">
Entry Page</
a>
| <
a class="
banner"
href="
aspects.html">
Aspects</
a>
| <
a class="
banner"
href="
groups.html">
Groups</
a>
| <
a class="
banner"
href="
pointcuts.html">
Pointcuts</
a>
| <
a class="
banner"
href="
advices.html">
Advices</
a>
| <
a class="
banner"
href="
files.html">
Files</
a>
| <
a class="
bannerHL"
href="
alphabeticalList.html">
Alphabetical List</
a>
</
div>
</
xsl:
when>
<
xsl:
otherwise>
<
div class="
banner">
<
a class="
banner"
href="
index.html">
Entry Page</
a>
| <
a class="
banner"
href="
aspects.html">
Aspects</
a>
| <
a class="
banner"
href="
groups.html">
Groups</
a>
| <
a class="
banner"
href="
pointcuts.html">
Pointcuts</
a>
| <
a class="
banner"
href="
advices.html">
Advices</
a>
| <
a class="
banner"
href="
files.html">
Files</
a>
| <
a class="
banner"
href="
alphabeticalList.html">
Alphabetical List</
a>
</
div>
</
xsl:
otherwise>
</
xsl:
choose>
</
xsl:
template>
</
xsl:
stylesheet>
v