Skip to content
| Marketplace
Sign in
Visual Studio Code>Snippets>XSLT SnippetsNew to Visual Studio Code? Get it now.
XSLT Snippets

XSLT Snippets

Marvin Hagemeister

|
27,037 installs
| (2) | Free
XSLT Snippets
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

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 select="$1">$2</xsl:when><xsl:otherwise>$3</xsl:otherwise</xsl:choose>
when <xsl:when select="$1">$2</xsl:when>
otherwise <xsl:otherwise>$1</xsl:otherwise>
if <xsl:if select="$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" />
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft