comparison xslt/dirmap.xslt @ 1211:4011ba8fdf30

Regenerated.
author Ruslan Ermilov <ru@nginx.com>
date Sat, 31 May 2014 09:10:53 +0400
parents 0871621c6341
children
comparison
equal deleted inserted replaced
1210:5d64d8a856db 1211:4011ba8fdf30
4 --> 4 -->
5 5
6 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> 6 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
7 7
8 <xsl:output method="text"/> 8 <xsl:output method="text"/>
9
10 <xsl:strip-space elements="*"/>
9 11
10 <xsl:template match="link"> 12 <xsl:template match="link">
11 <xsl:value-of select="@id"/> 13 <xsl:value-of select="@id"/>
12 <xsl:text> </xsl:text> 14 <xsl:text> </xsl:text>
13 <xsl:value-of select="substring-before(@doc, '.xml')"/> 15 <xsl:value-of select="substring-before(@doc, '.xml')"/>
14 <xsl:text>.html#</xsl:text> 16 <xsl:text>.html#</xsl:text>
15 <xsl:value-of select="@id"/> 17 <xsl:value-of select="@id"/>
16 <xsl:text>;&#10;</xsl:text> 18 <xsl:text>;&#10;</xsl:text>
17 </xsl:template> 19 </xsl:template>
18 20
21 <xsl:template match="link[@id = 'include']">
22 <xsl:text>\</xsl:text>
23 <xsl:value-of select="@id"/>
24 <xsl:text> </xsl:text>
25 <xsl:value-of select="substring-before(@doc, '.xml')"/>
26 <xsl:text>.html#</xsl:text>
27 <xsl:value-of select="@id"/>
28 <xsl:text>;&#10;</xsl:text>
29 </xsl:template>
30
31 <xsl:template match="link[starts-with(@id, 'var_')]">
32 <xsl:text>$</xsl:text>
33 <xsl:value-of select="substring-after(@id, 'var_')"/>
34 <xsl:text> </xsl:text>
35 <xsl:value-of select="substring-before(@doc, '.xml')"/>
36 <xsl:text>.html#</xsl:text>
37 <xsl:value-of select="@id"/>
38 <xsl:text>;&#10;</xsl:text>
39 </xsl:template>
40
41 <xsl:template match="links | varlinks">
42 <xsl:for-each select="link"><xsl:sort select="@id"/>
43 <xsl:if test="count(preceding-sibling::link[@id = current()/@id]) = 0">
44 <xsl:apply-templates select="."/>
45 </xsl:if>
46 </xsl:for-each>
47 </xsl:template>
48
19 </xsl:stylesheet> 49 </xsl:stylesheet>