[246237] Add XSLT 2.0 Basic Stylesheet
https://bugs.eclipse.org/bugs/show_bug.cgi?id=246237
diff --git a/bundles/org.eclipse.wst.xsl.ui/templates/file_templates.xml b/bundles/org.eclipse.wst.xsl.ui/templates/file_templates.xml
index b956560..3cd2919 100644
--- a/bundles/org.eclipse.wst.xsl.ui/templates/file_templates.xml
+++ b/bundles/org.eclipse.wst.xsl.ui/templates/file_templates.xml
@@ -12,6 +12,19 @@
<!-- TODO: Auto-generated template -->${cursor}
</xsl:template>
</xsl:stylesheet>]]></template>
+<template id="org.eclipse.wst.xslt.templates.xsl_basic.xslt2"
+ name="Basic stylesheet - XSLT 2.0"
+ context="xsl_new"
+ autoinsert="true"
+ deleted="false"
+ enabled="true"
+ description="XSLT 2.0 - Matches the root of the input"><![CDATA[<?xml version="1.0" encoding="${encoding}"?>
+<xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+ <xsl:template match="/">
+ <!-- TODO: Auto-generated template -->${cursor}
+ </xsl:template>
+</xsl:stylesheet>]]></template>
+
<template id="org.eclipse.wst.xslt.templates.xsl_copy"
name="Copy stylesheet"
context="xsl_new"
@@ -31,4 +44,23 @@
</xsl:copy>
</xsl:template>
</xsl:stylesheet>]]></template>
+<template id="org.eclipse.wst.xslt.templates.xsl_copy.xslt2"
+ name="XSLT 2.0 Copy stylesheet"
+ context="xsl_new"
+ autoinsert="true"
+ deleted="false"
+ enabled="true"
+ description="Makes a copy of the input"><![CDATA[<?xml version="1.0" encoding="${encoding}"?>
+<xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+ <xsl:template match="${cursor}">
+ <!-- TODO: Auto-generated template -->
+ </xsl:template>
+ <!-- standard copy template -->
+ <xsl:template match="@*|node()">
+ <xsl:copy>
+ <xsl:apply-templates select="@*"/>
+ <xsl:apply-templates/>
+ </xsl:copy>
+ </xsl:template>
+</xsl:stylesheet>]]></template>
</templates>
\ No newline at end of file