blob: 700e77d74be2e5dfeb97ae3171101b3dbf3e4b8b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
|
snippet apply-templates with-param
<xsl:apply-templates select="${1:*}">
<xsl:with-param name="${2:param}">${3}</xsl:with-param>${4}
</xsl:apply-templates>
snippet apply-templates sort-by
<xsl:apply-templates select="${1:*}">
<xsl:sort select="${2:node}" order="${3:ascending}" data-type="${4:text}">${5}
</xsl:apply-templates>
snippet apply-templates plain
<xsl:apply-templates select="${1:*}" />
snippet attribute blank
<xsl:attribute name="${1:name}">${2}</xsl:attribute>
snippet attribute value-of
<xsl:attribute name="${1:name}">
<xsl:value-of select="${2:*}" />
</xsl:attribute>
snippet call-template
<xsl:call-template name="${1:template}" />
snippet call-template with-param
<xsl:call-template name="${1:template}">
<xsl:with-param name="${2:param}">${3}</xsl:with-param>${4}
</xsl:call-template>
snippet choose
<xsl:choose>
<xsl:when test="${1:value}">
${2}
</xsl:when>
</xsl:choose>
snippet copy-of
<xsl:copy-of select="${1:*}" />
snippet for-each
<xsl:for-each select="${1:*}">${2}
</xsl:for-each>
snippet if
<xsl:if test="${1:test}">${2}
</xsl:if>
snippet import
<xsl:import href="${1:stylesheet}" />
snippet include
<xsl:include href="${1:stylesheet}" />
snippet otherwise
<xsl:otherwise>${0}
</xsl:otherwise>
snippet param
<xsl:param name="${1:name}">${2}
</xsl:param>
snippet stylesheet
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">${0}
</xsl:stylesheet>
snippet template
<xsl:template match="${1:*}">${0}
</xsl:template>
snippet template named
<xsl:template name="${1:name}">${0}
</xsl:template>
snippet text
<xsl:text>${0}</xsl:text>
snippet value-of
<xsl:value-of select="${1:*}" />
snippet variable blank
<xsl:variable name="${1:name}">${0}
</xsl:variable>
snippet variable select
<xsl:variable select="${1:*}" />
snippet when
<xsl:when test="${1:test}">${0}
</xsl:when>
snippet with-param
<xsl:with-param name="${1:name}">${0}</xsl:with-param>
snippet with-param select
<xsl:with-param name="${1:name}" select="${0:*}" />
|