Sublime Forum

Close Tag does not work correctly for XSL files (ST3)

#1

Steps to reproduce

  1. Copy-paste this snippet into ST3 and set the syntax as XSL:

[code]<xsl:stylesheet version=“1.0” xmlns:xsl=“http://www.w3.org/1999/XSL/Transform”>
<xsl:template match=“pattern”>
<xsl:if test="*">
<xsl:value-of select=“Expression”/>

</xsl:template>
</xsl:stylesheet>[/code]

  1. Place your cursor after the <xsl:value-of select=“Expression”/> tag.

  2. Choose Edit > Tag > Close Tag or press Alt + . (on Windows).

Expected behavior

ST3 closes the xsl:if tag.

Actual behavior

ST3 closes the (already self-closed) xsl:value-of/ tag.

Is there any way to fix this? I think the Tag package may have fixed this problem for ST2, but it doesn’t seem to work with ST3.

0 Likes