nginx/docs/xslt/content.xslt

44 lines
906 B
HTML
Raw Normal View History

2011-08-05 17:25:34 +08:00
<?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]">
2011-08-09 23:15:36 +08:00
2011-08-05 17:25:34 +08:00
<a name="{@name}"/>
<center>
<h4>
2011-08-09 23:15:36 +08:00
<xsl:value-of select="@title"/>
2011-08-05 17:25:34 +08:00
</h4>
</center>
2011-08-09 23:15:36 +08:00
2011-08-05 17:25:34 +08:00
<xsl:apply-templates/>
</xsl:template>
2011-08-09 23:15:36 +08:00
2011-08-05 17:25:34 +08:00
<xsl:template match="section[not(@name) and @title]">
2011-08-09 23:15:36 +08:00
2011-08-05 17:25:34 +08:00
<center>
<h4>
2011-08-09 23:15:36 +08:00
<xsl:value-of select="@title"/>
2011-08-05 17:25:34 +08:00
</h4>
</center>
2011-08-09 23:15:36 +08:00
2011-08-05 17:25:34 +08:00
<xsl:apply-templates/>
</xsl:template>
2011-08-09 23:15:36 +08:00
2011-08-05 17:25:34 +08:00
<xsl:template match="section[not(@name) and not(@title)]">
<xsl:apply-templates/>
</xsl:template>
<xsl:template match="para">
<p>
2011-08-09 23:15:36 +08:00
<xsl:apply-templates/>
2011-08-05 17:25:34 +08:00
</p>
</xsl:template>
<xsl:template match="value">
<i>
2011-08-09 23:15:36 +08:00
<xsl:apply-templates/>
2011-08-05 17:25:34 +08:00
</i>
</xsl:template>
2011-08-09 23:15:36 +08:00
</xsl:stylesheet>