Mercurial > hg > nginx-site
changeset 608:34b0e74528a5
Regenerated.
author | Ruslan Ermilov <ru@nginx.com> |
---|---|
date | Thu, 26 Jul 2012 11:37:10 +0000 |
parents | a8f7b93b0a5f |
children | 39a51e664374 |
files | xslt/body.xslt xslt/content.xslt |
diffstat | 2 files changed, 33 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/xslt/body.xslt +++ b/xslt/body.xslt @@ -112,6 +112,16 @@ </a> <br/> + <xsl:for-each select="section[@id and @name]"> + + <xsl:text> </xsl:text> + + <a href="#{@id}"> + <xsl:value-of select="@name"/> + </a> + <br/> + </xsl:for-each> + <xsl:if test="@id = 'directives'"> <xsl:for-each select="directive[@name]">
--- a/xslt/content.xslt +++ b/xslt/content.xslt @@ -13,6 +13,18 @@ <xsl:apply-templates/> </xsl:template> + <xsl:template match="section/section[@id and @name]"> + + <a name="{@id}"/> + <center> + <h5> + <xsl:value-of select="@name"/> + </h5> + </center> + + <xsl:apply-templates/> + </xsl:template> + <xsl:template match="section[@id and not(@name)]"> <a name="{@id}"/> @@ -31,6 +43,17 @@ <xsl:apply-templates/> </xsl:template> + <xsl:template match="section/section[not(@id) and @name]"> + + <center> + <h5> + <xsl:value-of select="@name"/> + </h5> + </center> + + <xsl:apply-templates/> + </xsl:template> + <xsl:template match="para"> <p> <xsl:apply-templates/>