Project

General

Profile

root / branches / compiler / cSharp / ooasCompiler / src / libs / c5 / docNet / overview.xslt @ 3

1
<?xml version="1.0" ?>
2
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
3
<xsl:output encoding = "ISO-8859-1"/>
4
    <xsl:template match="/">
5
        <html>
6
            <head>
7
                <title>
8
                    <xsl:text>DocNet documentation for</xsl:text>
9
                    <xsl:value-of select="Assembly/@Name" /></title>
10
                <link rel="stylesheet" type="text/css" href="docnet.css" />
11
            </head>
12
            <body>
13
                <h3>Interfaces overview</h3>
14
                <xsl:for-each select="/Assembly/Interface[@Access != 'private']">
15
                    <xsl:sort select="@Name" />
16
                    <xsl:call-template name="htmllink" />
17
                    <xsl:if test="position()!=last()">,<br/> </xsl:if>
18
                </xsl:for-each>
19
                <h3>Classes overview</h3>
20
                <xsl:for-each select="/Assembly/Class[@Access != 'private']">
21
                    <xsl:sort select="@Name" />
22
                    <xsl:call-template name="htmllink" />
23
                    <xsl:if test="position()!=last()">,<br/> </xsl:if>
24
                </xsl:for-each>
25
                <h3>Value Types overview</h3>
26
                <xsl:for-each select="/Assembly/Struct[@Access != 'private']">
27
                    <xsl:sort select="@Name" />
28
                    <xsl:call-template name="htmllink" />
29
                    <xsl:if test="position()!=last()">,<br/> </xsl:if>
30
                </xsl:for-each>
31
                <h3>Delegates overview</h3>
32
                <xsl:for-each select="/Assembly/Delegate[@Access != 'private']">
33
                    <xsl:sort select="@Name" />
34
                    <xsl:call-template name="htmllink" />
35
                    <xsl:if test="position()!=last()">,<br/> </xsl:if>
36
                </xsl:for-each>
37
            </body>
38
        </html>
39
    </xsl:template>
40
    <xsl:template match="Signature">
41
        <code>
42
            <xsl:value-of select="." />
43
        </code>
44
    </xsl:template>
45
    <xsl:template name="htmllink">
46
        <xsl:choose>
47
            <xsl:when test="@refid">
48
                <xsl:element name="a">
49
                    <xsl:attribute name="href">
50
                        <!--xsl:text>main.htm#</xsl:text>
51
                        <xsl:value-of select="@refid" /-->
52
                        <xsl:text>types/</xsl:text><xsl:value-of select="translate(substring(@refid,3),'`','_')" /><xsl:text>.htm</xsl:text>
53
                    </xsl:attribute>
54
                    <xsl:attribute name="target">
55
                        <xsl:text>main</xsl:text>
56
                    </xsl:attribute>
57
                    <xsl:apply-templates select="Signature" />
58
                </xsl:element>
59
            </xsl:when>
60
            <xsl:otherwise>
61
                <xsl:apply-templates select="Signature" />
62
            </xsl:otherwise>
63
        </xsl:choose>
64
    </xsl:template>
65
</xsl:stylesheet>