Skip to content

ymor/vscode-xslt-snippets

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

XSLT Snippets for Visual Studio Code

Handful snippets for working with xslt templates.

Snippets

Prefix Description
cm <!-- $1 -->
var <xsl:variable name="$1">$2</xsl:variable>
val <xsl:value-of select="$1" />
choose <xsl:choose><xsl:when test="$1">$2</xsl:when><xsl:otherwise>$3</xsl:otherwise</xsl:choose>
when <xsl:when test="$1">$2</xsl:when>
other <xsl:otherwise>$1</xsl:otherwise>
if <xsl:if test="$1">$2</xsl:if>
temp <xsl:template match="$1">$2</xsl:template>
param <xsl:param name="$1" />
with <xsl:with-param name="$1" select="$2" />
attribute <xsl:attribute name="$1">$2</xsl:attribute>
text <xsl:text>$1</xsl:text>
apply <xsl:apply-templates match="$1" />
copy <xsl:copy>$1</xsl:copy>
copy-of <xsl:copy-of select="$1">$2</xsl:copy-of>
for-each <xsl:for-each select="$1">$2</xsl:for-each>
call-template <xsl:call-template name="$1">$2</xsl:call-template>

About

XSLT Snippets for Visual Studio Code

Resources

License

Stars

Watchers

Forks

Packages

No packages published