1
0
Fork 0
mirror of synced 2024-11-27 11:15:35 -05:00
ultimate-vim/sources_non_forked/vim-snippets/snippets/xslt.snippets

98 lines
2 KiB
Text
Raw Normal View History

2012-08-16 23:41:25 -04:00
snippet apply-templates with-param
<xsl:apply-templates select="${1:*}">
<xsl:with-param name="${2:param}">${3}</xsl:with-param>${4}
</xsl:apply-templates>
2012-08-16 23:41:25 -04:00
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>
2012-08-16 23:41:25 -04:00
snippet apply-templates plain
<xsl:apply-templates select="${1:*}" />
2012-08-16 23:41:25 -04:00
snippet attribute blank
<xsl:attribute name="${1:name}">${2}</xsl:attribute>
2012-08-16 23:41:25 -04:00
snippet attribute value-of
<xsl:attribute name="${1:name}">
<xsl:value-of select="${2:*}" />
</xsl:attribute>
2012-08-16 23:41:25 -04:00
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>
2012-08-16 23:41:25 -04:00
snippet choose
<xsl:choose>
<xsl:when test="${1:value}">
${2}
</xsl:when>
2012-08-16 23:41:25 -04:00
</xsl:choose>
snippet copy-of
<xsl:copy-of select="${1:*}" />
2012-08-16 23:41:25 -04:00
snippet for-each
<xsl:for-each select="${1:*}">${2}
</xsl:for-each>
2012-08-16 23:41:25 -04:00
snippet if
<xsl:if test="${1:test}">${2}
</xsl:if>
2012-08-16 23:41:25 -04:00
snippet import
<xsl:import href="${1:stylesheet}" />
2012-08-16 23:41:25 -04:00
snippet include
<xsl:include href="${1:stylesheet}" />
2013-07-17 19:06:05 -04:00
2012-08-16 23:41:25 -04:00
snippet otherwise
<xsl:otherwise>${0}
2012-08-16 23:41:25 -04:00
</xsl:otherwise>
snippet param
<xsl:param name="${1:name}">${2}
</xsl:param>
2012-08-16 23:41:25 -04:00
snippet stylesheet
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">${0}
2012-08-16 23:41:25 -04:00
</xsl:stylesheet>
2013-07-17 19:06:05 -04:00
snippet template
<xsl:template match="${1:*}">${0}
2012-08-16 23:41:25 -04:00
</xsl:template>
snippet template named
<xsl:template name="${1:name}">${0}
2012-08-16 23:41:25 -04:00
</xsl:template>
snippet text
<xsl:text>${0}</xsl:text>
2012-08-16 23:41:25 -04:00
snippet value-of
<xsl:value-of select="${1:*}" />
2012-08-16 23:41:25 -04:00
snippet variable blank
<xsl:variable name="${1:name}">${0}
2012-08-16 23:41:25 -04:00
</xsl:variable>
snippet variable select
<xsl:variable select="${1:*}" />
2012-08-16 23:41:25 -04:00
snippet when
<xsl:when test="${1:test}">${0}
2012-08-16 23:41:25 -04:00
</xsl:when>
snippet with-param
<xsl:with-param name="${1:name}">${0}</xsl:with-param>
2013-07-17 19:06:05 -04:00
2012-08-16 23:41:25 -04:00
snippet with-param select
<xsl:with-param name="${1:name}" select="${0:*}" />
2013-07-17 19:06:05 -04:00