xml-xsl-snippet is a simple snippet vscode extension with a list of xml and xsl base snippet
Snippet location ./snippet/xsl.json
Commands overview :
- !xsl
- !xsltemplate
- !xsltemplateMode
- !xslapplytemplate
- !xslapplytemplatemode
- !xslvalof
- !xslelement
- !xslatr
- !xslkey
- !xslvalofkey
<?xml version="1.0" encoding ="UTF-8" ?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="/">
<html>
<body>
</body>
</html>
</xsl:template>
</xsl:stylesheet>
<xsl:template match="xmlTag">
</xsl:template>
<xsl:template match="xmlTag" mode="modeName">
</xsl:template>
<xsl:apply-templates select="templateName"/>
<xsl:apply-templates select="templateName" mode="modeName"/>
<xsl:value-of select="templateNameOrXmlTagName"/>
<xsl:element name="htmlElementName">
</xsl:element>
<xsl:attribute name="htmlAttributeName">
</xsl:attribute>
<xsl:key name="keyName" match="XmlTagToMatch" use="@xmlAttributeToSelect" />
<xsl:value-of select="key('xslkeyName',@AttributeToMathWith})"/>
Snippet location ./snippet/xml.json
Commands overviews
- !xml
<?xml version=\"1.0\" ?>
<?xml-stylesheet type=\"text/xsl\" href="file.xsl"?>
<!DOCTYPE dtdName SYSTEM "file.dtd">
<xmlTag>
</xmlTag>
git clone https://github.com/Thomascogez/xml-xslt-extension.git
command format !xmlORxslcommandname