source: trunk/t3d/xslt/dependencies.xsl @ 57

Last change on this file since 57 was 7, checked in by phdmakk, 14 years ago
  • Property svn:mime-type set to text/plain
File size: 1.1 KB
Line 
1<?xml version="1.0"?>
2<xsl:stylesheet version="1.0"
3xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
4
5<xsl:template match="/">
6 <xsl:param name="modulenames" select="//element[not(@module = preceding-sibling::*/@module)]/@module"/>
7  <html>
8  <head>
9  </head>
10  <body>
11
12   <xsl:for-each select="$modulenames">
13    <xsl:call-template name="module">
14     <xsl:with-param name="modulename" select="."/>
15    </xsl:call-template>
16   </xsl:for-each>
17
18  </body>
19  </html>
20</xsl:template>
21
22
23<xsl:template name="module">
24 <xsl:param name="modulename"/>
25 <p><xsl:value-of select="."/></p>
26 <xsl:apply-templates select="//element[@module = $modulename]"/>
27</xsl:template>
28
29<xsl:template match="element">
30 <p><a name="{@id}"><xsl:value-of select="@name"/></a></p>
31 <xsl:apply-templates select="reflist"/>
32</xsl:template>
33
34
35<xsl:template match="reflist">
36 <xsl:apply-templates select="ref"/>
37</xsl:template>
38
39<xsl:template match="ref">
40 <xsl:param name="id" select="@id"/>
41 <xsl:param name="ref" select="//element[@id = $id]"/>
42
43 <p><xsl:value-of select="'->'"/><a href="{concat('#', $id)}"><xsl:value-of select="$ref/@name"/></a></p>
44 
45
46</xsl:template>
47
48
49</xsl:stylesheet>
Note: See TracBrowser for help on using the repository browser.