synopsis.xsl revision bdbf46e4950b6f633073f803486962e82c2f086a
6337N/A<
xsl:
stylesheet version="1.0" 6337N/A <!-- Process an entire document into an HTML page --> 6337N/A <
xsl:
template match="modulesynopsis">
6337N/A <
html xml:
lang="{$messages/@lang}" lang="{$messages/@lang}">
6337N/A <
xsl:
call-
template name="head"/>
6337N/A</
xsl:
text>
<!-- insert line break --> 6337N/A</
xsl:
text>
<!-- insert line break --> 6337N/A <
xsl:
call-
template name="top"/>
6337N/A</
xsl:
text>
<!-- insert line break --> 6337N/A</
xsl:
text>
<!-- insert line break --> 6337N/A <
xsl:
when test="status='Core'">
6337N/A <
xsl:
when test="name='mpm_common'">
6337N/A <
xsl:
when test="status='MPM'">
6337N/A <
xsl:
call-
template name="module-translatename">
6337N/A <
xsl:
with-
param name="name" select="name" />
6337N/A <
xsl:
if test="status='Obsolete'">
6337N/A <
xsl:
if test="status!='Obsolete'">
6337N/A <
xsl:
value-
of select="name"/>
6377N/A</
xsl:
text>
<!-- insert line break --> 6337N/A <!-- Description and module-headers --> <
xsl:
apply-
templates select="description"/>
</
xsl:
text>
<!-- insert line break --> <
xsl:
value-
of select="status"/>
<
xsl:
apply-
templates select="hint"/>
<
xsl:
if test="identifier">
</
xsl:
text>
<!-- insert line break --> <
xsl:
value-
of select="identifier"/>
<
xsl:
if test="sourcefile">
</
xsl:
text>
<!-- insert line break --> <
xsl:
value-
of select="sourcefile"/>
<
xsl:
if test="compatibility">
</
xsl:
text>
<!-- insert line break --> <
xsl:
apply-
templates select="compatibility"/>
</
xsl:
text>
<!-- insert line break --> <!-- Summary of module features/usage (1 to 3 paragraphs, optional) --> </
xsl:
text>
<!-- insert line break --> <
xsl:
apply-
templates select="summary"/>
</
div>
<!-- /preamble --></
xsl:
text>
<!-- insert line break --> <
xsl:
if test="not($is-chm) or seealso">
<
xsl:
if test="not($is-chm)">
<!-- Index of directives, automatically generated from </
xsl:
text>
<!-- insert line break --> <
xsl:
if test="directivesynopsis">
</
xsl:
text>
<!-- insert line break --> <
xsl:
for-
each select="directivesynopsis">
<
xsl:
sort select="name"/>
<
xsl:
variable name="lowername" select="translate(name, $uppercase, $lowercase)"/>
<
xsl:
if test="not(@location)">
<
xsl:
if test="@type='section'"><</
xsl:
if>
<
xsl:
value-
of select="name"/>
<
xsl:
if test="@type='section'">></
xsl:
if>
</
xsl:
text>
<!-- insert linebreak --> <
xsl:
if test="@location">
<
xsl:
variable name="lowerlocation" select="translate(@location, $uppercase, $lowercase)"/>
<
a href="{$lowerlocation}.html#{$lowername}">
<
xsl:
if test="@type='section'"><</
xsl:
if>
<
xsl:
value-
of select="name"/>
<
xsl:
if test="@type='section'">></
xsl:
if>
</
xsl:
text>
<!-- insert linebreak --></
xsl:
text>
<!-- insert line break --> <
xsl:
if test="not(directivesynopsis)">
</
xsl:
text>
<!-- insert line break --></
xsl:
text>
<!-- insert line break --></
xsl:
text>
<!-- insert line break --> <
xsl:
apply-
templates select="section" mode="index"/>
</
xsl:
if>
<!-- /!is-chm --></
xsl:
text>
<!-- insert line break --></
xsl:
text>
<!-- insert line break --> <
xsl:
for-
each select="seealso">
</
xsl:
text>
<!-- insert line break --> </
div>
<!-- /quickview --> </
xsl:
if>
<!-- !is-chm --></
xsl:
text>
<!-- insert line break --> <!-- Sections of documentation about the module as a whole --> <
xsl:
apply-
templates select="section"/>
</
xsl:
text>
<!-- insert line break --> <!-- Directive documentation --> <
xsl:
apply-
templates select="directivesynopsis">
<
xsl:
sort select="name"/>
</
div>
<!-- /page-content --></
xsl:
text>
<!-- insert line break --> <
xsl:
call-
template name="bottom"/>
</
xsl:
text>
<!-- insert line break --> <!-- Directivesynopsis --> <
xsl:
template match="directivesynopsis">
<
xsl:
if test="not(@location)">
<
xsl:
call-
template name="toplink"/>
</
xsl:
text>
<!-- insert line break --> <
div class="directive-section">
<
xsl:
variable name="lowername" select="translate(name, $uppercase, $lowercase)"/>
<!-- Directive heading gets both mixed case and lowercase anchors, and includes lt/gt only for "section" directives --> <
a id="{name}" name="{name}">
<
xsl:
if test="@type='section'"><</
xsl:
if>
<
xsl:
value-
of select="name"/>
<
xsl:
if test="@type='section'">></
xsl:
if>
<
xsl:
value-
of select="$messages/message[@name='directive']/@replace-space-with"/>
<
a id="{$lowername}" name="{$lowername}">
</
xsl:
text>
<!-- insert line break --> <!-- Directive header --> <
table class="directive">
</
xsl:
text>
<!-- insert line break --> <
xsl:
value-
of select="description"/>
</
xsl:
text>
<!-- insert line break --> <
xsl:
apply-
templates select="syntax"/>
</
xsl:
text>
<!-- insert line break --> <
xsl:
apply-
templates select="default"/>
</
xsl:
text>
<!-- insert line break --> <
xsl:
apply-
templates select="contextlist"/>
</
xsl:
text>
<!-- insert line break --> <
xsl:
value-
of select="override"/>
</
xsl:
text>
<!-- insert line break --> <
xsl:
value-
of select="/status"/>
</
xsl:
text>
<!-- insert line break --> <
xsl:
if test="modulelist">
<
xsl:
apply-
templates select="modulelist"/>
<
xsl:
if test="not(modulelist)">
<
xsl:
value-
of select="/name"/>
<
xsl:
if test="compatibility">
</
xsl:
text>
<!-- insert line break --> <
xsl:
apply-
templates select="compatibility"/>
</
xsl:
text>
<!-- insert line break --> <
xsl:
apply-
templates select="usage"/>
</
xsl:
text>
<!-- insert line break --></
xsl:
text>
<!-- insert line break --></
xsl:
text>
<!-- insert line break --> <
xsl:
for-
each select="seealso">
</
xsl:
text>
<!-- insert line break --></
xsl:
text>
<!-- insert line break --> </
div>
<!-- /directive-section --></
xsl:
text>
<!-- insert line break --> <!-- /directivesynopsis --> <!-- Passes through content --> <
xsl:
template match="contextlist">
<
xsl:
apply-
templates select="context"/>
<!-- Each entry is separeted with a comma --> <
xsl:
template match="context">
<
xsl:
when test="normalize-space(.) = 'server config'">
<
xsl:
when test="normalize-space(.) = 'virtual host'">
<
xsl:
when test="normalize-space(.) = 'directory'">
<
xsl:
when test="normalize-space(.) = '.htaccess'">
<
xsl:
otherwise>
<!-- error --> <
xsl:
message terminate="yes">
unknown context: <
xsl:
value-
of select="." />
<
xsl:
if test="position() != last()">
<!-- Passes through content --> <
xsl:
template match="modulelist">
<
xsl:
for-
each select="module">
<
xsl:
call-
template name="module"/>
<
xsl:
if test="position() != last()">