Mercurial > hg > nginx
diff docs/xslt/content.xslt @ 3996:fc808f006ff4
skeleton for documentation processing
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Fri, 05 Aug 2011 09:25:34 +0000 |
parents | |
children | 131adbb6c82d |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/docs/xslt/content.xslt Fri Aug 05 09:25:34 2011 +0000 @@ -0,0 +1,43 @@ +<?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]"> + + <a name="{@name}"/> + <center> + <h4> + <xsl:value-of select="@title"/> + </h4> + </center> + <xsl:apply-templates/> + </xsl:template> + + <xsl:template match="section[not(@name) and @title]"> + + <center> + <h4> + <xsl:value-of select="@title"/> + </h4> + </center> + <xsl:apply-templates/> + </xsl:template> + + <xsl:template match="section[not(@name) and not(@title)]"> + <xsl:apply-templates/> + </xsl:template> + + + <xsl:template match="para"> + <p> + <xsl:apply-templates/> + </p> + </xsl:template> + + + <xsl:template match="value"> + <i> + <xsl:apply-templates/> + </i> + </xsl:template> +</xsl:stylesheet> \ No newline at end of file