Mercurial > hg > nginx-site
comparison xslt/link.xslt @ 1156:8e8a6a7cff2b
Added variables index.
author | Vladimir Homutov <vl@nginx.com> |
---|---|
date | Wed, 16 Apr 2014 14:22:51 +0400 |
parents | c454373427ef |
children | 7e662eae0429 |
comparison
equal
deleted
inserted
replaced
1155:07402a11fd8d | 1156:8e8a6a7cff2b |
---|---|
2 <!-- | 2 <!-- |
3 Copyright (C) Igor Sysoev | 3 Copyright (C) Igor Sysoev |
4 Copyright (C) Nginx, Inc. | 4 Copyright (C) Nginx, Inc. |
5 --> | 5 --> |
6 | 6 |
7 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> | 7 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0" xmlns:math="http://exslt.org/math" extension-element-prefixes="math"> |
8 | 8 |
9 <xsl:template match="img"> <img src="{@href}"> <xsl:apply-templates/> </img> </xsl:template> | 9 <xsl:template match="img"> <img src="{@href}"> <xsl:apply-templates/> </img> </xsl:template> |
10 | 10 |
11 <xsl:template match="origin"> | 11 <xsl:template match="origin"> |
12 <a> | 12 <a> |
55 </xsl:if> | 55 </xsl:if> |
56 <br/> | 56 <br/> |
57 </xsl:for-each> | 57 </xsl:for-each> |
58 </xsl:template> | 58 </xsl:template> |
59 | 59 |
60 <xsl:template match="varlinks"> | |
61 <xsl:for-each select="link"><xsl:sort select="@id"/> | |
62 <a href="{substring-before(@doc, '.xml')}.html#{@id}"><xsl:apply-templates/></a> | |
63 <xsl:if test="count(../link[@id = current()/@id and @doc != current()/@doc]) > 0"> | |
64 <xsl:text> (</xsl:text> | |
65 <xsl:value-of select="substring-before(substring-after(@doc, '/'), '.xml')"/> | |
66 <xsl:text>)</xsl:text> | |
67 </xsl:if> | |
68 <br/> | |
69 </xsl:for-each> | |
70 </xsl:template> | |
71 | |
60 </xsl:stylesheet> | 72 </xsl:stylesheet> |