common.xsl revision 1b1089891b9656b0298b116bf4b95fb0d5f74c59
db878466c5e95073429dda0bdd001f45e9486e16fielding Licensed to the Apache Software Foundation (ASF) under one or more
db878466c5e95073429dda0bdd001f45e9486e16fielding contributor license agreements. See the NOTICE file distributed with
db878466c5e95073429dda0bdd001f45e9486e16fielding this work for additional information regarding copyright ownership.
db878466c5e95073429dda0bdd001f45e9486e16fielding The ASF licenses this file to You under the Apache License, Version 2.0
db878466c5e95073429dda0bdd001f45e9486e16fielding (the "License"); you may not use this file except in compliance with
db878466c5e95073429dda0bdd001f45e9486e16fielding the License. You may obtain a copy of the License at
a7835c7a8cf86045fdaee65dc2839bfe6314fb1end Unless required by applicable law or agreed to in writing, software
a7835c7a8cf86045fdaee65dc2839bfe6314fb1end distributed under the License is distributed on an "AS IS" BASIS,
a7835c7a8cf86045fdaee65dc2839bfe6314fb1end WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
a7835c7a8cf86045fdaee65dc2839bfe6314fb1end See the License for the specific language governing permissions and
a7835c7a8cf86045fdaee65dc2839bfe6314fb1end limitations under the License.
3fa58e00171aebf3b2cfa90035ed530f5b1f651dslive<!-- Constants used for case translation -->
3fa58e00171aebf3b2cfa90035ed530f5b1f651dslive<xsl:variable name="lowercase" select="'abcdefghijklmnopqrstuvwxyz'" />
3fa58e00171aebf3b2cfa90035ed530f5b1f651dslive<xsl:variable name="uppercase" select="'ABCDEFGHIJKLMNOPQRSTUVWXYZ'" />
3fa58e00171aebf3b2cfa90035ed530f5b1f651dslive<!-- ==================================================================== -->
3fa58e00171aebf3b2cfa90035ed530f5b1f651dslive<!-- Process a documentation section -->
3fa58e00171aebf3b2cfa90035ed530f5b1f651dslive<!-- ==================================================================== -->
3fa58e00171aebf3b2cfa90035ed530f5b1f651dslive<xsl:text>}</xsl:text><xsl:call-template name="label"/>
3fa58e00171aebf3b2cfa90035ed530f5b1f651dslive<xsl:text>}</xsl:text><xsl:call-template name="label"/>
3fa58e00171aebf3b2cfa90035ed530f5b1f651dslive<xsl:text>}</xsl:text><xsl:call-template name="label"/>
3fa58e00171aebf3b2cfa90035ed530f5b1f651dslive<xsl:variable name="metafile" select="document(/*/@metafile)/metafile" />
3fa58e00171aebf3b2cfa90035ed530f5b1f651dslive<!-- ==================================================================== -->
3fa58e00171aebf3b2cfa90035ed530f5b1f651dslive<!-- <example> -->
3fa58e00171aebf3b2cfa90035ed530f5b1f651dslive<!-- ==================================================================== -->
1cb160a981947e75a8353da3fe40a653aa87100eslive<!-- verbatim inside of fbox doesn't work for some reason -->
3fa58e00171aebf3b2cfa90035ed530f5b1f651dslive<xsl:if test="not(pre)"><xsl:text>\fbox{</xsl:text></xsl:if>
3fa58e00171aebf3b2cfa90035ed530f5b1f651dslive<xsl:text>\begin{minipage}{.8\textwidth}\begin{flushleft}</xsl:text>
3fa58e00171aebf3b2cfa90035ed530f5b1f651dslive<xsl:if test="not(pre)"><xsl:text>}</xsl:text></xsl:if>
3fa58e00171aebf3b2cfa90035ed530f5b1f651dslive<!-- ==================================================================== -->
3fa58e00171aebf3b2cfa90035ed530f5b1f651dslive<!-- indentations -->
3fa58e00171aebf3b2cfa90035ed530f5b1f651dslive<!-- ==================================================================== -->
5e9423b4ca454c6416a2dc465dea1b1d34cec7a9slive<xsl:text>\begin{list}{}{\topsep 0pt\rightmargin 0pt\leftmargin 2em}
3fa58e00171aebf3b2cfa90035ed530f5b1f651dslive<!-- ==================================================================== -->
3fa58e00171aebf3b2cfa90035ed530f5b1f651dslive<!-- <note> -->
3fa58e00171aebf3b2cfa90035ed530f5b1f651dslive<!-- ==================================================================== -->
3fa58e00171aebf3b2cfa90035ed530f5b1f651dslive<!-- ==================================================================== -->
3fa58e00171aebf3b2cfa90035ed530f5b1f651dslive<!-- <directive> -->
3fa58e00171aebf3b2cfa90035ed530f5b1f651dslive<!-- Inserts link to another directive, which might be in another module. -->
3fa58e00171aebf3b2cfa90035ed530f5b1f651dslive<!-- References are converted into lower case. -->
3fa58e00171aebf3b2cfa90035ed530f5b1f651dslive<!-- ==================================================================== -->
1b1089891b9656b0298b116bf4b95fb0d5f74c59nd<xsl:if test="@type='section'"><xsl:text>\textless{}</xsl:text></xsl:if>
1b1089891b9656b0298b116bf4b95fb0d5f74c59nd select="normalize-space(translate(@name,$uppercase,$lowercase))"/>
1b1089891b9656b0298b116bf4b95fb0d5f74c59nd select="normalize-space(translate(.,$uppercase,$lowercase))"/>
1b1089891b9656b0298b116bf4b95fb0d5f74c59nd<xsl:if test="@type='section'"><xsl:text>\textgreater{}</xsl:text></xsl:if>
1b1089891b9656b0298b116bf4b95fb0d5f74c59nd<xsl:if test="@type='section'"><xsl:text>\textless{}</xsl:text></xsl:if>
1b1089891b9656b0298b116bf4b95fb0d5f74c59nd select="normalize-space(translate(@name,$uppercase,$lowercase))"/>
1b1089891b9656b0298b116bf4b95fb0d5f74c59nd select="normalize-space(translate(.,$uppercase,$lowercase))"/>
1b1089891b9656b0298b116bf4b95fb0d5f74c59nd<xsl:if test="@type='section'"><xsl:text>\textgreater{}</xsl:text></xsl:if>
3fa58e00171aebf3b2cfa90035ed530f5b1f651dslive<!-- /directive -->
3fa58e00171aebf3b2cfa90035ed530f5b1f651dslive<!-- ==================================================================== -->
3fa58e00171aebf3b2cfa90035ed530f5b1f651dslive<!-- <module> -->
3fa58e00171aebf3b2cfa90035ed530f5b1f651dslive<!-- Inserts a link to refereed module -->
3fa58e00171aebf3b2cfa90035ed530f5b1f651dslive<!-- ==================================================================== -->
3fa58e00171aebf3b2cfa90035ed530f5b1f651dslive<!-- /module -->
3fa58e00171aebf3b2cfa90035ed530f5b1f651dslive<!-- ==================================================================== -->
3fa58e00171aebf3b2cfa90035ed530f5b1f651dslive<!-- <related> -->
3fa58e00171aebf3b2cfa90035ed530f5b1f651dslive<!-- ==================================================================== -->
3fa58e00171aebf3b2cfa90035ed530f5b1f651dslive\fbox{\begin{tabular}{rr}
368bcafaedaee463f769c1b5f3547b9970df90d0slive\begin{minipage}[t]{.49\linewidth}
3fa58e00171aebf3b2cfa90035ed530f5b1f651dslive\end{minipage} &
3fa58e00171aebf3b2cfa90035ed530f5b1f651dslive\begin{minipage}[t]{.4\linewidth}
b3137f48abe3090c5531392e57ff0fefd76f59ebnd<xsl:value-of select="$message[@id='relateddirectives']" />
3fa58e00171aebf3b2cfa90035ed530f5b1f651dslive\end{minipage}
3fa58e00171aebf3b2cfa90035ed530f5b1f651dslive\end{tabular}}
1cb160a981947e75a8353da3fe40a653aa87100eslive<!-- ==================================================================== -->
1cb160a981947e75a8353da3fe40a653aa87100eslive<!-- <seealso> -->
1cb160a981947e75a8353da3fe40a653aa87100eslive<!-- ==================================================================== -->
1cb160a981947e75a8353da3fe40a653aa87100eslive<!-- ==================================================================== -->
1cb160a981947e75a8353da3fe40a653aa87100eslive<!-- section-title -->
1cb160a981947e75a8353da3fe40a653aa87100eslive<!-- ==================================================================== -->
1cb160a981947e75a8353da3fe40a653aa87100eslive<xsl:variable name="metafile" select="document(/*/@metafile)/metafile" />
1cb160a981947e75a8353da3fe40a653aa87100eslive<xsl:text>\section{</xsl:text><xsl:apply-templates select="title"/>