synopsis.xsl revision 7136a916694657765a7079b3b2e1a46639aaa8a2
1605N/A Copyright 2002-2004 The Apache Software Foundation 1605N/A Licensed under the Apache License, Version 2.0 (the "License"); 1605N/A you may not use this file except in compliance with the License. 1605N/A You may obtain a copy of the License at 1605N/A Unless required by applicable law or agreed to in writing, software 1605N/A distributed under the License is distributed on an "AS IS" BASIS, 1605N/A WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1605N/A See the License for the specific language governing permissions and 1605N/A limitations under the License. 1605N/A<
xsl:
stylesheet version="1.0" 1605N/A<!-- ==================================================================== --> 1605N/A<!-- Process an entire document into an HTML page --> 1605N/A<!-- ==================================================================== --> 1605N/A<
xsl:
template match="modulesynopsis">
1605N/A<
html xml:
lang="{$doclang}" lang="{$doclang}">
1605N/A <
xsl:
call-
template name="head" />&lf;
1605N/A <
xsl:
call-
template name="top" />&lf;
1605N/A <
div id="page-content">&lf;
3817N/A <
xsl:
when test="status='Core'">
3817N/A <
xsl:
value-
of select="$message 1605N/A <
xsl:
when test="name='mpm_common'">
3639N/A <
xsl:
value-
of select="$message 3639N/A [@id='apachempmcommon']" />
3724N/A <
xsl:
when test="status='MPM'">
3639N/A <
xsl:
value-
of select="$message 1938N/A <
xsl:
call-
template name="module-translatename">
1605N/A <
xsl:
with-
param name="name" select="name" />
1605N/A <
xsl:
value-
of select="$message 1605N/A <
xsl:
value-
of select="name" />
1605N/A <
xsl:
call-
template name="langavail" />&lf;
<!-- Description and module-headers --> <
xsl:
value-
of select="$message <
xsl:
apply-
templates select="description" />
<
xsl:
value-
of select="$message <
xsl:
value-
of select="status" />
<
xsl:
if test="identifier">&lf;
<
xsl:
value-
of select="$message [@id='moduleidentifier']" />
<
xsl:
value-
of select="identifier" />
<
xsl:
if test="sourcefile">&lf;
<
xsl:
value-
of select="$message <
xsl:
value-
of select="sourcefile" />
<
xsl:
if test="compatibility">&lf;
<
xsl:
value-
of select="$message [@id='compatibility']" />
<
xsl:
apply-
templates select="compatibility" />
<
xsl:
value-
of select="$message <
xsl:
apply-
templates select="summary" />
</
div>&lf;
<!-- /#preamble --> <
xsl:
if test="not($is-chm) or seealso">
<
xsl:
if test="not($is-chm)">
<
xsl:
value-
of select="$message <
xsl:
when test="directivesynopsis">
<
xsl:
for-
each select="directivesynopsis">
<
xsl:
sort select="name" />
<
xsl:
variable name="lowername" select="translate(name, $uppercase, <
xsl:
when test="not(@location)">
<
xsl:
if test="@type='section'" <
xsl:
value-
of select="name" />
<
xsl:
if test="@type='section'" <
xsl:
variable name="lowerlocation" select="translate(@location, $uppercase, <
a href="{$lowerlocation}.html#{ <
xsl:
if test="@type='section'" <
xsl:
value-
of select="name" />
<
xsl:
if test="@type='section'" </
xsl:
when>
<!-- have directives --> <
xsl:
value-
of select="$message <
xsl:
value-
of select="$message select="section" mode="index" />
</
xsl:
if>
<!-- /!is-chm --> <
xsl:
value-
of select="$message <
xsl:
for-
each select="seealso">
</
div>
<!-- /#quickview --> </
xsl:
if>&lf;
<!-- have sidebar --> <!-- Sections of documentation about the module as a whole --> <
xsl:
apply-
templates select="section" />&lf;
<!-- Directive documentation --> <
xsl:
apply-
templates select="directivesynopsis">
<
xsl:
sort select="name" />
</
div>&lf;
<!-- /#page-content --> <
xsl:
call-
template name="bottom" />&lf;
<!-- ==================================================================== --> <!-- Directivesynopsis --> <!-- ==================================================================== --> <
xsl:
template match="directivesynopsis">
<
xsl:
if test="not(@location)">
<
xsl:
call-
template name="toplink" />&lf;
<
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>
[@id='directive']/@replace-space-with">
<
xsl:
value-
of select="$message [@id='directive']/@replace-space-with"/>
<
a id="{$lowername}" name="{$lowername}">
<
xsl:
value-
of select="$message[@id='directive']" />
<!-- Directive header --> <
table class="directive">&lf;
<
xsl:
value-
of select="$message <
xsl:
apply-
templates select="description" />
<
xsl:
value-
of select="$message[@id='syntax']" />
<
xsl:
apply-
templates select="syntax" />
<
xsl:
if test="default">&lf;
<
xsl:
value-
of select="$message[@id='default']" />
<
xsl:
apply-
templates select="default" />
<
xsl:
value-
of select="$message[@id='context']" />
<
xsl:
apply-
templates select="contextlist" />
<
xsl:
if test="override">&lf;
<
xsl:
value-
of select="$message[@id='override']"/>
<
xsl:
value-
of select="override" />
<
xsl:
value-
of select="$message[@id='status']" />
<
xsl:
value-
of select="/status" />
<
xsl:
value-
of select="$message[@id='module']" />
<
xsl:
when test="modulelist">
<
xsl:
apply-
templates select="modulelist" />
<
xsl:
value-
of select="/name" />
<
xsl:
if test="compatibility">&lf;
<
xsl:
value-
of select="$message [@id='compatibility']" />
<
xsl:
apply-
templates select="compatibility" />
<
xsl:
apply-
templates select="usage" />&lf;
<
xsl:
value-
of select="$message[@id='seealso']" />
<
xsl:
for-
each select="seealso">
</
div>&lf;
<!-- /.directive-section --><!-- /directivesynopsis --> <!-- ==================================================================== --> <!-- ==================================================================== --> <
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:
value-
of select="$message[@id='serverconfig']" />
<
xsl:
when test="normalize-space(.) = 'virtual host'">
<
xsl:
value-
of select="$message[@id='virtualhost']" />
<
xsl:
when test="normalize-space(.) = 'directory'">
<
xsl:
value-
of select="$message[@id='directory']" />
<
xsl:
when test="normalize-space(.) = '.htaccess'">
<
xsl:
value-
of select="$message[@id='htaccess']" />
<
xsl:
otherwise>
<!-- error --> <
xsl:
message terminate="yes">
unknown context: <
xsl:
value-
of select="." />
<
xsl:
if test="position() != last()">
<!-- ==================================================================== --> <!-- ==================================================================== --> <
xsl:
template match="modulelist">
<
xsl:
for-
each select="module">
<
xsl:
call-
template name="module" />
<
xsl:
if test="position() != last()">
<!-- ==================================================================== --> <!-- ==================================================================== --> <!-- ==================================================================== --> <!-- ==================================================================== -->