~ubuntu-branches/ubuntu/trusty/monodevelop/trusty-proposed

« back to all changes in this revision

Viewing changes to external/mono-tools/webdoc/wiki2ecmahelper.xsl

  • Committer: Package Import Robot
  • Author(s): Jo Shields
  • Date: 2013-05-12 09:46:03 UTC
  • mto: This revision was merged to the branch mainline in revision 29.
  • Revision ID: package-import@ubuntu.com-20130512094603-mad323bzcxvmcam0
Tags: upstream-4.0.5+dfsg
ImportĀ upstreamĀ versionĀ 4.0.5+dfsg

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
<xsl:transform xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
2
 
 
3
 
        <!-- default rule -->
4
 
        <xsl:template match="*">
5
 
                <xsl:copy>
6
 
                        <xsl:copy-of select="@*" />
7
 
                        <xsl:apply-templates />
8
 
                </xsl:copy>
9
 
        </xsl:template>
10
 
 
11
 
        <xsl:template match="code">
12
 
                <xsl:element name="c"><xsl:apply-templates /></xsl:element>
13
 
        </xsl:template>
14
 
 
15
 
        <xsl:template match="div">
16
 
                <xsl:choose>
17
 
                        <xsl:when test="@class = 'example'">
18
 
                                <example><xsl:apply-templates /></example>
19
 
                        </xsl:when>
20
 
                        <xsl:when test="@class = 'behavior'">
21
 
                                <block type="behavior"><xsl:apply-templates /></block>
22
 
                        </xsl:when>
23
 
                        <xsl:when test="@class = 'default'">
24
 
                                <block type="default"><xsl:apply-templates /></block>
25
 
                        </xsl:when>
26
 
                        <xsl:when test="@class = 'example-block'">
27
 
                                <block type="example"><xsl:apply-templates /></block>
28
 
                        </xsl:when>
29
 
                        <xsl:when test="@class = 'overrides'">
30
 
                                <block type="overrides"><xsl:apply-templates /></block>
31
 
                        </xsl:when>
32
 
                        <xsl:when test="@class = 'usage'">
33
 
                                <block type="usage"><xsl:apply-templates /></block>
34
 
                        </xsl:when>
35
 
                        <xsl:otherwise>
36
 
                                <xsl:copy-of select="." />
37
 
                        </xsl:otherwise>
38
 
                </xsl:choose>
39
 
        </xsl:template>
40
 
 
41
 
        <xsl:template match="table">
42
 
                <list type="table">
43
 
                        <xsl:if test="tr[1]/th">
44
 
                                <listheader><item>
45
 
                                <term>
46
 
                                        <xsl:apply-templates select="tr[1]/th[1]" />
47
 
                                </term>
48
 
                                <xsl:for-each select="tr[1]/th[position() > 1]">
49
 
                                        <description>
50
 
                                                <xsl:apply-templates />
51
 
                                        </description>
52
 
                                </xsl:for-each>
53
 
                                </item></listheader>
54
 
                        </xsl:if>
55
 
                        <xsl:for-each select="tr">
56
 
                                <item>
57
 
                                <term>
58
 
                                        <xsl:apply-templates select="td[1]" />
59
 
                                </term>
60
 
                                <xsl:for-each select="td[position() > 1]">
61
 
                                        <description>
62
 
                                                <xsl:apply-templates />
63
 
                                        </description>
64
 
                                </xsl:for-each>
65
 
                                </item>
66
 
                        </xsl:for-each>
67
 
                </list>
68
 
        </xsl:template>
69
 
 
70
 
</xsl:transform>