~ubuntu-branches/ubuntu/precise/gedit/precise

« back to all changes in this revision

Viewing changes to plugins/snippets/data/xslt.xml

  • Committer: Bazaar Package Importer
  • Author(s): Sebastien Bacher
  • Date: 2010-04-14 16:41:13 UTC
  • mfrom: (1.1.78 upstream)
  • Revision ID: james.westby@ubuntu.com-20100414164113-0xgl3u73pcs0ngbc
Tags: 2.30.0git20100413-0ubuntu1
* Updating to git snaptshot since 2.30.1 will be after lucid
* debian/patches/90_autoconf.patch:
  - new version update

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?xml version="1.0" encoding="UTF-8"?>
 
2
<snippets language="xslt">
 
3
  <snippet id="stylesheet">
 
4
    <text><![CDATA[<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
 
5
$0
 
6
</xsl:stylesheet>
 
7
]]></text>
 
8
    <description>StyleSheet</description>
 
9
    <tag>stylesheet</tag>
 
10
  </snippet>
 
11
  <snippet id="include">
 
12
    <text><![CDATA[<xsl:include href="$1"/>
 
13
]]></text>
 
14
    <description>Include</description>
 
15
    <tag>inc</tag>
 
16
  </snippet>
 
17
  <snippet id="import">
 
18
    <text><![CDATA[<xsl:import href="$1"/>
 
19
]]></text>
 
20
    <description>Import</description>
 
21
    <tag>imp</tag>
 
22
  </snippet>
 
23
  <snippet id="param">
 
24
    <text><![CDATA[<xsl:param name="$1"/>
 
25
]]></text>
 
26
    <description>Parameter</description>
 
27
    <tag>param</tag>
 
28
  </snippet>
 
29
  <snippet id="template">
 
30
    <text><![CDATA[<xsl:template ${1:[match,name]}="$2" ${3:mode=""}>
 
31
        $0
 
32
</xsl:template>
 
33
]]></text>
 
34
    <description>Template</description>
 
35
    <tag>templ</tag>
 
36
  </snippet>
 
37
  <snippet id="variable-1">
 
38
    <text><![CDATA[<xsl:variable name="$1">
 
39
        $0
 
40
</xsl:variable>
 
41
]]></text>
 
42
    <description>Variable</description>
 
43
    <tag>var</tag>
 
44
  </snippet>
 
45
  <snippet id="variable-2">
 
46
    <text><![CDATA[<xsl:variable name="$1" select="$2"/>
 
47
$0]]></text>
 
48
    <description>Variable with Select Attribute</description>
 
49
    <tag>var</tag>
 
50
  </snippet>
 
51
  <snippet id="choose">
 
52
    <text><![CDATA[<xsl:choose>
 
53
        <xsl:when test="$1">
 
54
                $2
 
55
        </xsl:when>
 
56
        $3
 
57
</xsl:choose>
 
58
]]></text>
 
59
    <description>Choose</description>
 
60
    <tag>choose</tag>
 
61
  </snippet>
 
62
  <snippet id="when">
 
63
    <text><![CDATA[<xsl:when test="$1">
 
64
        $2
 
65
</xsl:when>
 
66
$0]]></text>
 
67
    <description>When</description>
 
68
    <tag>when</tag>
 
69
  </snippet>
 
70
  <snippet id="otherwise">
 
71
    <text><![CDATA[<xsl:otherwise>
 
72
        $1
 
73
</xsl:otherwise>
 
74
$0]]></text>
 
75
    <description>Otherwise</description>
 
76
    <tag>otherwise</tag>
 
77
  </snippet>
 
78
  <snippet id="if">
 
79
    <text><![CDATA[<xsl:if test="$1">
 
80
        $2
 
81
</xsl:if>
 
82
$0]]></text>
 
83
    <description>If</description>
 
84
    <tag>if</tag>
 
85
  </snippet>
 
86
  <snippet id="value-of">
 
87
    <text><![CDATA[<xsl:value-of select="$1"/>
 
88
]]></text>
 
89
    <description>Value of</description>
 
90
    <tag>val</tag>
 
91
  </snippet>
 
92
  <snippet id="element">
 
93
    <text><![CDATA[<xsl:element name="$1">
 
94
</xsl:element>
 
95
$0]]></text>
 
96
    <description>Element</description>
 
97
    <tag>elem</tag>
 
98
  </snippet>
 
99
  <snippet id="attribute">
 
100
    <text><![CDATA[<xsl:attribute name="$1">$2</xsl:attribute>
 
101
$0]]></text>
 
102
    <description>Attribute</description>
 
103
    <tag>attr</tag>
 
104
  </snippet>
 
105
  <snippet id="text">
 
106
    <text><![CDATA[<xsl:text>${1:$GEDIT_SELECTED_TEXT}</xsl:text>
 
107
]]></text>
 
108
    <description>Text</description>
 
109
    <tag>text</tag>
 
110
  </snippet>
 
111
  <snippet id="comment">
 
112
    <text><![CDATA[<xsl:comment>${1:$GEDIT_SELECTED_TEXT}</xsl:comment>
 
113
]]></text>
 
114
    <description>Comment</description>
 
115
    <tag>comment</tag>
 
116
  </snippet>
 
117
  <snippet id="call-template">
 
118
    <text><![CDATA[<xsl:call-template name="$1"/>
 
119
]]></text>
 
120
    <description>Call Template</description>
 
121
    <tag>call</tag>
 
122
  </snippet>
 
123
  <snippet id="apply-templates">
 
124
    <text><![CDATA[<xsl:apply-templates mode="$1" select="$2"/>
 
125
$0]]></text>
 
126
    <description>Apply Templates</description>
 
127
    <tag>applyt</tag>
 
128
  </snippet>
 
129
  <snippet id="apply-imports">
 
130
    <text><![CDATA[<xsl:apply-imports/>
 
131
]]></text>
 
132
    <description>Apply Imports</description>
 
133
    <tag>applyimp</tag>
 
134
  </snippet>
 
135
  <snippet id="with-param">
 
136
    <text><![CDATA[<xsl:with-param name="$1">
 
137
        $2
 
138
</xsl:with-param>
 
139
$0]]></text>
 
140
    <description>With Param</description>
 
141
    <tag>with</tag>
 
142
  </snippet>
 
143
</snippets>