Mercurial > hg > nginx
comparison 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 |
comparison
equal
deleted
inserted
replaced
3995:3ce6b8cedcb9 | 3996:fc808f006ff4 |
---|---|
1 <?xml version="1.0" encoding="utf-8"?> | |
2 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> | |
3 | |
4 | |
5 <xsl:template match="directive"> | |
6 | |
7 <a name="{@name}"/> | |
8 <center> | |
9 <h4> | |
10 <xsl:value-of select="@name"/> | |
11 </h4> | |
12 </center> | |
13 <xsl:apply-templates select="syntax"/> | |
14 <xsl:apply-templates select="default"/> | |
15 <xsl:apply-templates select="context"/> | |
16 <xsl:apply-templates select="para"/> | |
17 </xsl:template> | |
18 | |
19 <xsl:template match="syntax"> | |
20 <xsl:text>syntax: </xsl:text> | |
21 <xsl:apply-templates/> | |
22 <br/> | |
23 </xsl:template> | |
24 | |
25 <xsl:template match="default"> | |
26 <xsl:text>default: </xsl:text> | |
27 <xsl:apply-templates/> | |
28 <br/> | |
29 </xsl:template> | |
30 | |
31 <xsl:template match="context"> | |
32 <xsl:text>context: </xsl:text> | |
33 <xsl:apply-templates/> | |
34 <br/> | |
35 </xsl:template> | |
36 </xsl:stylesheet> |