Mercurial > hg > nginx
diff docs/xslt/directive.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
new file mode 100644 --- /dev/null +++ b/docs/xslt/directive.xslt @@ -0,0 +1,36 @@ +<?xml version="1.0" encoding="utf-8"?> +<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> + + + <xsl:template match="directive"> + + <a name="{@name}"/> + <center> + <h4> + <xsl:value-of select="@name"/> + </h4> + </center> + <xsl:apply-templates select="syntax"/> + <xsl:apply-templates select="default"/> + <xsl:apply-templates select="context"/> + <xsl:apply-templates select="para"/> + </xsl:template> + + <xsl:template match="syntax"> + <xsl:text>syntax: </xsl:text> + <xsl:apply-templates/> + <br/> + </xsl:template> + + <xsl:template match="default"> + <xsl:text>default: </xsl:text> + <xsl:apply-templates/> + <br/> + </xsl:template> + + <xsl:template match="context"> + <xsl:text>context: </xsl:text> + <xsl:apply-templates/> + <br/> + </xsl:template> +</xsl:stylesheet> \ No newline at end of file