aboutsummaryrefslogtreecommitdiff
path: root/docs/xslt/directive.xslt
diff options
context:
space:
mode:
authorRuslan Ermilov <ru@nginx.com>2011-09-05 09:33:54 +0000
committerRuslan Ermilov <ru@nginx.com>2011-09-05 09:33:54 +0000
commit52d83a3c4af2f015fc56e5a97113e919844fa069 (patch)
treee4c3f77a2d0669f46e9cb10ec5b16d79461773b2 /docs/xslt/directive.xslt
parentcd7b80a8bb8dd6eb3773e53e2b16441bf1670664 (diff)
downloadnginx-52d83a3c4af2f015fc56e5a97113e919844fa069.tar.gz
nginx-52d83a3c4af2f015fc56e5a97113e919844fa069.zip
XSLT regeneration for the previous commit.
Diffstat (limited to 'docs/xslt/directive.xslt')
-rw-r--r--docs/xslt/directive.xslt88
1 files changed, 75 insertions, 13 deletions
diff --git a/docs/xslt/directive.xslt b/docs/xslt/directive.xslt
index 786beb90a..096503d28 100644
--- a/docs/xslt/directive.xslt
+++ b/docs/xslt/directive.xslt
@@ -3,12 +3,10 @@
<xsl:template match="directive">
- <a name="{@name}"/>
- <center>
- <h4>
- <xsl:value-of select="@name"/>
- </h4>
- </center>
+ <hr/>
+
+ <a name="{@name}"/>
+ <!-- <center><h4><xsl:value-of select="@name"/> </h4></center> -->
<xsl:apply-templates select="syntax"/>
@@ -16,25 +14,89 @@
<xsl:apply-templates select="context"/>
+ <xsl:if test="(@appeared-in)">
+
+ <strong>appeared in version</strong>:
+ <xsl:value-of select="@appeared-in"/>
+ </xsl:if>
+
<xsl:apply-templates select="para"/>
</xsl:template>
<xsl:template match="syntax">
- <xsl:text>syntax: </xsl:text>
- <xsl:apply-templates/>
+ <xsl:choose>
+
+ <xsl:when test="position() = 1">
+
+ <strong>syntax</strong>:
+ </xsl:when>
+
+ <xsl:otherwise>
+
+ <code>       </code>
+ </xsl:otherwise>
+ </xsl:choose>
+
+ <code>
+
+ <xsl:apply-templates/>
+ </code>
<br/>
</xsl:template>
<xsl:template match="default">
- <xsl:text>default: </xsl:text>
- <xsl:apply-templates/>
+
+ <strong>default</strong>:
+ <xsl:choose>
+
+ <xsl:when test="count(text()) = 0">
+
+ <strong>none</strong>
+ </xsl:when>
+
+ <xsl:otherwise>
+
+ <code>
+ <xsl:apply-templates/>
+ </code>
+ </xsl:otherwise>
+ </xsl:choose>
+
<br/>
</xsl:template>
<xsl:template match="context">
- <xsl:text>context: </xsl:text>
- <xsl:apply-templates/>
- <br/>
+
+ <xsl:if test="position() = 1">
+
+ <strong>context</strong>:
+ </xsl:if>
+ <xsl:choose>
+
+ <xsl:when test="count(text()) = 0">
+
+ <strong>any</strong>
+ </xsl:when>
+
+ <xsl:otherwise>
+
+ <code>
+ <xsl:apply-templates/>
+ </code>
+ </xsl:otherwise>
+ </xsl:choose>
+ <xsl:choose>
+
+ <xsl:when test="position() != last()">
+
+ <xsl:text>, </xsl:text>
+ </xsl:when>
+
+ <xsl:otherwise>
+
+ <br/>
+ </xsl:otherwise>
+ </xsl:choose>
</xsl:template>
</xsl:stylesheet>