Mercurial > hg > nginx-quic
comparison 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 |
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="section[@name and @title]"> | |
6 | |
7 <a name="{@name}"/> | |
8 <center> | |
9 <h4> | |
10 <xsl:value-of select="@title"/> | |
11 </h4> | |
12 </center> | |
13 <xsl:apply-templates/> | |
14 </xsl:template> | |
15 | |
16 <xsl:template match="section[not(@name) and @title]"> | |
17 | |
18 <center> | |
19 <h4> | |
20 <xsl:value-of select="@title"/> | |
21 </h4> | |
22 </center> | |
23 <xsl:apply-templates/> | |
24 </xsl:template> | |
25 | |
26 <xsl:template match="section[not(@name) and not(@title)]"> | |
27 <xsl:apply-templates/> | |
28 </xsl:template> | |
29 | |
30 | |
31 <xsl:template match="para"> | |
32 <p> | |
33 <xsl:apply-templates/> | |
34 </p> | |
35 </xsl:template> | |
36 | |
37 | |
38 <xsl:template match="value"> | |
39 <i> | |
40 <xsl:apply-templates/> | |
41 </i> | |
42 </xsl:template> | |
43 </xsl:stylesheet> |