mirror of
https://github.com/nginx/nginx.git
synced 2025-06-07 09:42:39 +08:00
XSLT regeneration for the previous commit.
This commit is contained in:
parent
cd7b80a8bb
commit
52d83a3c4a
@ -1,30 +1,30 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
|
||||
|
||||
<xsl:template match="section[@name and @title]">
|
||||
<xsl:template match="section[@id and @name]">
|
||||
|
||||
<a name="{@name}"/>
|
||||
<a name="{@id}"/>
|
||||
<center>
|
||||
<h4>
|
||||
<xsl:value-of select="@title"/>
|
||||
<xsl:value-of select="@name"/>
|
||||
</h4>
|
||||
</center>
|
||||
|
||||
<xsl:apply-templates/>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="section[not(@name) and @title]">
|
||||
<xsl:template match="section[not(@id) and @name]">
|
||||
|
||||
<center>
|
||||
<h4>
|
||||
<xsl:value-of select="@title"/>
|
||||
<xsl:value-of select="@name"/>
|
||||
</h4>
|
||||
</center>
|
||||
|
||||
<xsl:apply-templates/>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="section[not(@name) and not(@title)]">
|
||||
<xsl:template match="section[not(@id) and not(@name)]">
|
||||
<xsl:apply-templates/>
|
||||
</xsl:template>
|
||||
|
||||
@ -34,10 +34,118 @@
|
||||
</p>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="value">
|
||||
<i>
|
||||
<xsl:template match="c-def">
|
||||
<code>
|
||||
<xsl:apply-templates/>
|
||||
</code>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="c-func">
|
||||
<code>
|
||||
<xsl:apply-templates/>
|
||||
<xsl:text>()</xsl:text>
|
||||
</code>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="code">
|
||||
<code>
|
||||
<xsl:apply-templates/>
|
||||
</code>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="command">
|
||||
<code>
|
||||
<xsl:apply-templates/>
|
||||
</code>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="example">
|
||||
<blockquote>
|
||||
<pre>
|
||||
<xsl:apply-templates/>
|
||||
</pre>
|
||||
</blockquote>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="emphasis">
|
||||
<strong>
|
||||
<xsl:apply-templates/>
|
||||
</strong>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="header">
|
||||
<code>
|
||||
<xsl:apply-templates/>
|
||||
</code>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="http-error">
|
||||
|
||||
<i>
|
||||
<xsl:text>"</xsl:text>
|
||||
<xsl:value-of select="@text"/>
|
||||
<xsl:text>"</xsl:text>
|
||||
</i>
|
||||
|
||||
<xsl:text> (</xsl:text>
|
||||
<xsl:value-of select="@code"/>
|
||||
<xsl:text>)</xsl:text>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="link[@id and not(@doc)]">
|
||||
<a href="#{@id}">
|
||||
<xsl:apply-templates/>
|
||||
</a>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="link">
|
||||
<u>
|
||||
<xsl:apply-templates/>
|
||||
</u>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="list[@type='bullet']">
|
||||
<ul>
|
||||
<xsl:apply-templates/>
|
||||
</ul>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="list[@type='enum']">
|
||||
<ol>
|
||||
<xsl:apply-templates/>
|
||||
</ol>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="listitem">
|
||||
<li>
|
||||
<xsl:apply-templates/>
|
||||
</li>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="argument">
|
||||
<code>
|
||||
<i>
|
||||
<xsl:apply-templates/>
|
||||
</i>
|
||||
</code>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="parameter">
|
||||
<code>
|
||||
<xsl:apply-templates/>
|
||||
</code>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="value">
|
||||
<code>
|
||||
<xsl:apply-templates/>
|
||||
</code>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="var">
|
||||
<code>
|
||||
<xsl:apply-templates/>
|
||||
</code>
|
||||
</xsl:template>
|
||||
|
||||
</xsl:stylesheet>
|
||||
|
@ -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>
|
||||
|
@ -7,7 +7,7 @@
|
||||
|
||||
<xsl:param select="'../xml'" name="XML"/>
|
||||
|
||||
<xsl:variable select="/module/@link" name="LINK"/>
|
||||
<xsl:variable select="/module/@id" name="ID"/>
|
||||
|
||||
<xsl:include href="directive.xslt"/>
|
||||
|
||||
@ -19,7 +19,7 @@
|
||||
<head>
|
||||
|
||||
<title>
|
||||
<xsl:value-of select="@title"/>
|
||||
<xsl:value-of select="@name"/>
|
||||
</title>
|
||||
|
||||
</head>
|
||||
|
Loading…
Reference in New Issue
Block a user