[323510]: [releng] Migrate XSLT CI build to Maven 3/Tycho
https://bugs.eclipse.org/bugs/show_bug.cgi?id=323510
Add XSL UI Tests
diff --git a/tests/org.eclipse.wst.xsl.ui.tests/projectfiles/ChangeRequestsByResponsibility.xsl b/tests/org.eclipse.wst.xsl.ui.tests/projectfiles/ChangeRequestsByResponsibility.xsl
index 2ed1703..9e97525 100644
--- a/tests/org.eclipse.wst.xsl.ui.tests/projectfiles/ChangeRequestsByResponsibility.xsl
+++ b/tests/org.eclipse.wst.xsl.ui.tests/projectfiles/ChangeRequestsByResponsibility.xsl
@@ -1,71 +1,99 @@
<?xml version="1.0" encoding="UTF-8"?>
-<!--
-/*******************************************************************************
- * Copyright (c) 2008 Standards for Technology in Automotive Retail and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * David Carver - STAR - Stylesheet for testing purposes.
- *******************************************************************************/
- -->
-<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="2.0">
-
- <xsl:param name="date"></xsl:param>
+<!-- /*******************************************************************************
+ * Copyright (c) 2008 Standards for Technology in Automotive Retail and others.
+ * All rights reserved. This program and the accompanying materials * are
+ made available under the terms of the Eclipse Public License v1.0 * which
+ accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html
+ * * Contributors: * David Carver - STAR - Stylesheet for testing purposes.
+ *******************************************************************************/ -->
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+ version="2.0">
- <xsl:include href="utils.xsl"/>
- <xsl:template match="StarTeam">
- <html>
- <head>
- <title>Change Request by Responsibility</title>
- </head>
- <body>
- <p>
- <xsl:for-each-group select="ChangeRequest" group-by="AssignedTo">
- <table border="1">
- <caption><b>Change Requests Assigned To <xsl:value-of select="current-grouping-key()"/></b></caption>
-
- <xsl:call-template name="tableHeader"></xsl:call-template>
-
- <xsl:for-each select="current-group()">
- <xsl:sort select="Status" order="descending"/>
- <xsl:call-template name="ChangeRequest"/>
- </xsl:for-each>
- </table>
-
- </xsl:for-each-group>
- </p>
- </body>
- </html>
- </xsl:template>
-
- <xsl:template name="tableHeader">
- <tr bgcolor="silver">
- <td><strong>Number</strong></td>
- <td><strong>Creation Date</strong></td>
- <td><strong>Assigned To</strong></td>
- <td><strong>Category</strong></td>
- <td><strong>Component</strong></td>
- <td><strong>Synopsis</strong></td>
- <td><strong>Status</strong></td>
- </tr>
- </xsl:template>
-
- <xsl:template name="ChangeRequest">
- <tr>
- <td><xsl:value-of select="CRNumber"/></td>
- <td>
- <xsl:call-template name="long_date">
- <xsl:with-param name="date" select="CreatedOnDate"/>
- </xsl:call-template>
- </td>
- <td><xsl:value-of select="AssignedTo"/></td>
- <td><xsl:value-of select="Category"/></td>
- <td><xsl:value-of select="Component"/></td>
- <td><xsl:value-of select="Synopsis"/></td>
- <td><xsl:value-of select="Status"/></td>
- </tr>
- </xsl:template>
+ <xsl:param name="date"></xsl:param>
+
+ <xsl:include href="utils.xsl" />
+ <xsl:template match="StarTeam">
+ <html>
+ <head>
+ <title>Change Request by Responsibility</title>
+ </head>
+ <body>
+ <p>
+ <xsl:for-each-group select="ChangeRequest"
+ group-by="AssignedTo">
+ <table border="1">
+ <caption>
+ <b>
+ Change Requests Assigned To
+ <xsl:value-of select="current-grouping-key()" />
+ </b>
+ </caption>
+
+ <xsl:call-template name="tableHeader"></xsl:call-template>
+
+ <xsl:for-each select="current-group()">
+ <xsl:sort select="Status" order="descending" />
+ <xsl:call-template name="ChangeRequest" />
+ </xsl:for-each>
+ </table>
+
+ </xsl:for-each-group>
+ </p>
+ </body>
+ </html>
+ </xsl:template>
+
+ <xsl:template name="tableHeader">
+ <tr bgcolor="silver">
+ <td>
+ <strong>Number</strong>
+ </td>
+ <td>
+ <strong>Creation Date</strong>
+ </td>
+ <td>
+ <strong>Assigned To</strong>
+ </td>
+ <td>
+ <strong>Category</strong>
+ </td>
+ <td>
+ <strong>Component</strong>
+ </td>
+ <td>
+ <strong>Synopsis</strong>
+ </td>
+ <td>
+ <strong>Status</strong>
+ </td>
+ </tr>
+ </xsl:template>
+
+ <xsl:template name="ChangeRequest">
+ <tr>
+ <td>
+ <xsl:value-of select="CRNumber" />
+ </td>
+ <td>
+ <xsl:call-template name="long_date">
+ <xsl:with-param name="date" select="CreatedOnDate" />
+ </xsl:call-template>
+ </td>
+ <td>
+ <xsl:value-of select="AssignedTo" />
+ </td>
+ <td>
+ <xsl:value-of select="Category" />
+ </td>
+ <td>
+ <xsl:value-of select="Component" />
+ </td>
+ <td>
+ <xsl:value-of select="Synopsis" />
+ </td>
+ <td>
+ <xsl:value-of select="Status" />
+ </td>
+ </tr>
+ </xsl:template>
</xsl:stylesheet>
\ No newline at end of file
diff --git a/tests/org.eclipse.wst.xsl.ui.tests/projectfiles/ChangeRequestsByStatus.xsl b/tests/org.eclipse.wst.xsl.ui.tests/projectfiles/ChangeRequestsByStatus.xsl
index a3d011f..e07c063 100644
--- a/tests/org.eclipse.wst.xsl.ui.tests/projectfiles/ChangeRequestsByStatus.xsl
+++ b/tests/org.eclipse.wst.xsl.ui.tests/projectfiles/ChangeRequestsByStatus.xsl
@@ -1,72 +1,99 @@
<?xml version="1.0" encoding="UTF-8"?>
-<!--
-/*******************************************************************************
- * Copyright (c) 2008 Standards for Technology in Automotive Retail and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * David Carver - STAR - Stylesheet for testing purposes.
- *******************************************************************************/
+<!-- /*******************************************************************************
+ * Copyright (c) 2008 Standards for Technology in Automotive Retail and others.
+ * All rights reserved. This program and the accompanying materials * are
+ made available under the terms of the Eclipse Public License v1.0 * which
+ accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html
+ * * Contributors: * David Carver - STAR - Stylesheet for testing purposes.
+ *******************************************************************************/ -->
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+ version="2.0">
- -->
-<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="2.0">
-
- <xsl:param name="date"></xsl:param>
+ <xsl:param name="date"></xsl:param>
- <xsl:include href="utils.xsl"/>
- <xsl:template match="StarTeam">
- <html>
- <head>
- <title>Change Request by Status</title>
- </head>
- <body>
- <p>
- <xsl:for-each-group select="ChangeRequest" group-by="Status">
- <table border="1">
- <caption><b>Change Request Status<xsl:value-of select="current-grouping-key()"/></b></caption>
-
- <xsl:call-template name="tableHeader"></xsl:call-template>
-
- <xsl:for-each select="current-group()">
- <xsl:sort select="Category" order="descending"/>
- <xsl:call-template name="ChangeRequest"/>
- </xsl:for-each>
- </table>
-
- </xsl:for-each-group>
- </p>
- </body>
- </html>
- </xsl:template>
-
- <xsl:template name="tableHeader">
- <tr bgcolor="silver">
- <td><strong>Number</strong></td>
- <td><strong>Creation Date</strong></td>
- <td><strong>Assigned To</strong></td>
- <td><strong>Category</strong></td>
- <td><strong>Component</strong></td>
- <td><strong>Synopsis</strong></td>
- <td><strong>Status</strong></td>
- </tr>
- </xsl:template>
-
- <xsl:template name="ChangeRequest">
- <tr>
- <td><xsl:value-of select="CRNumber"/></td>
- <td>
- <xsl:call-template name="long_date">
- <xsl:with-param name="date" select="CreatedOnDate"/>
- </xsl:call-template>
- </td>
- <td><xsl:value-of select="AssignedTo"/></td>
- <td><xsl:value-of select="Category"/></td>
- <td><xsl:value-of select="Component"/></td>
- <td><xsl:value-of select="Synopsis"/></td>
- <td><xsl:value-of select="Status"/></td>
- </tr>
- </xsl:template>
+ <xsl:include href="utils.xsl" />
+ <xsl:template match="StarTeam">
+ <html>
+ <head>
+ <title>Change Request by Status</title>
+ </head>
+ <body>
+ <p>
+ <xsl:for-each-group select="ChangeRequest"
+ group-by="Status">
+ <table border="1">
+ <caption>
+ <b>
+ Change Request Status
+ <xsl:value-of select="current-grouping-key()" />
+ </b>
+ </caption>
+
+ <xsl:call-template name="tableHeader"></xsl:call-template>
+
+ <xsl:for-each select="current-group()">
+ <xsl:sort select="Category" order="descending" />
+ <xsl:call-template name="ChangeRequest" />
+ </xsl:for-each>
+ </table>
+
+ </xsl:for-each-group>
+ </p>
+ </body>
+ </html>
+ </xsl:template>
+
+ <xsl:template name="tableHeader">
+ <tr bgcolor="silver">
+ <td>
+ <strong>Number</strong>
+ </td>
+ <td>
+ <strong>Creation Date</strong>
+ </td>
+ <td>
+ <strong>Assigned To</strong>
+ </td>
+ <td>
+ <strong>Category</strong>
+ </td>
+ <td>
+ <strong>Component</strong>
+ </td>
+ <td>
+ <strong>Synopsis</strong>
+ </td>
+ <td>
+ <strong>Status</strong>
+ </td>
+ </tr>
+ </xsl:template>
+
+ <xsl:template name="ChangeRequest">
+ <tr>
+ <td>
+ <xsl:value-of select="CRNumber" />
+ </td>
+ <td>
+ <xsl:call-template name="long_date">
+ <xsl:with-param name="date" select="CreatedOnDate" />
+ </xsl:call-template>
+ </td>
+ <td>
+ <xsl:value-of select="AssignedTo" />
+ </td>
+ <td>
+ <xsl:value-of select="Category" />
+ </td>
+ <td>
+ <xsl:value-of select="Component" />
+ </td>
+ <td>
+ <xsl:value-of select="Synopsis" />
+ </td>
+ <td>
+ <xsl:value-of select="Status" />
+ </td>
+ </tr>
+ </xsl:template>
</xsl:stylesheet>
\ No newline at end of file
diff --git a/tests/org.eclipse.wst.xsl.ui.tests/projectfiles/DraftReleaseCRs.xsl b/tests/org.eclipse.wst.xsl.ui.tests/projectfiles/DraftReleaseCRs.xsl
index 9383417..bf9988a 100644
--- a/tests/org.eclipse.wst.xsl.ui.tests/projectfiles/DraftReleaseCRs.xsl
+++ b/tests/org.eclipse.wst.xsl.ui.tests/projectfiles/DraftReleaseCRs.xsl
@@ -1,100 +1,96 @@
<?xml version="1.0" encoding="UTF-8"?>
-<!--
-/*******************************************************************************
- * Copyright (c) 2008 Standards for Technology in Automotive Retail and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * David Carver - STAR - Stylesheet for testing purposes.
- *******************************************************************************/
-
- -->
-<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
- <xsl:param name="date"/>
- <xsl:include href="utils.xsl"/>
- <xsl:template match="StarTeam">
- <html>
- <head>
- <title>Change Request by Responsibility</title>
- </head>
- <body>
- <p>
- <table border="1">
- <caption>
- <b>Draft/Milestone Completed Change Requests</b>
- </caption>
- <xsl:call-template name="tableHeader"/>
- <xsl:for-each select="ChangeRequest[(Status = 'Fixed' or Status = 'In Progress') and (Category = 'XML' or Category = 'DTS')]">
- <xsl:sort select="ModifiedDate" order="descending"/>
- <xsl:sort select="AssignedTo" order="descending"/>
- <xsl:call-template name="ChangeRequest"/>
- </xsl:for-each>
- </table>
- </p>
- </body>
- </html>
- </xsl:template>
- <xsl:template name="tableHeader">
- <tr bgcolor="silver">
- <td>
- <strong>Number</strong>
- </td>
- <td>
- <strong>Creation Date</strong>
- </td>
- <td>
- <strong>Modified Date</strong>
- </td>
- <td>
- <strong>Category</strong>
- </td>
- <td>
- <strong>Component</strong>
- </td>
- <td>
- <strong>Synopsis</strong>
- </td>
- <td>
- <strong>Assigned To</strong>
- </td>
- <td>
- <strong>Status</strong>
- </td>
- </tr>
- </xsl:template>
- <xsl:template name="ChangeRequest">
- <tr>
- <td>
- <xsl:value-of select="CRNumber"/>
- </td>
- <td>
- <xsl:call-template name="long_date">
- <xsl:with-param name="date" select="CreatedOnDate"/>
- </xsl:call-template>
- </td>
- <td>
- <xsl:call-template name="long_date">
- <xsl:with-param name="date" select="ModifiedDate"/>
- </xsl:call-template>
- </td>
- <td>
- <xsl:value-of select="Category"/>
- </td>
- <td>
- <xsl:value-of select="Component"/>
- </td>
- <td>
- <xsl:value-of select="Synopsis"/>
- </td>
- <td>
- <xsl:value-of select="AssignedTo"/>
- </td>
- <td>
- <xsl:value-of select="Status"/>
- </td>
- </tr>
- </xsl:template>
+<!-- /*******************************************************************************
+ * Copyright (c) 2008 Standards for Technology in Automotive Retail and others.
+ * All rights reserved. This program and the accompanying materials * are
+ made available under the terms of the Eclipse Public License v1.0 * which
+ accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html
+ * * Contributors: * David Carver - STAR - Stylesheet for testing purposes.
+ *******************************************************************************/ -->
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+ version="1.0">
+ <xsl:param name="date" />
+ <xsl:include href="utils.xsl" />
+ <xsl:template match="StarTeam">
+ <html>
+ <head>
+ <title>Change Request by Responsibility</title>
+ </head>
+ <body>
+ <p>
+ <table border="1">
+ <caption>
+ <b>Draft/Milestone Completed Change Requests</b>
+ </caption>
+ <xsl:call-template name="tableHeader" />
+ <xsl:for-each
+ select="ChangeRequest[(Status = 'Fixed' or Status = 'In Progress') and (Category = 'XML' or Category = 'DTS')]">
+ <xsl:sort select="ModifiedDate" order="descending" />
+ <xsl:sort select="AssignedTo" order="descending" />
+ <xsl:call-template name="ChangeRequest" />
+ </xsl:for-each>
+ </table>
+ </p>
+ </body>
+ </html>
+ </xsl:template>
+ <xsl:template name="tableHeader">
+ <tr bgcolor="silver">
+ <td>
+ <strong>Number</strong>
+ </td>
+ <td>
+ <strong>Creation Date</strong>
+ </td>
+ <td>
+ <strong>Modified Date</strong>
+ </td>
+ <td>
+ <strong>Category</strong>
+ </td>
+ <td>
+ <strong>Component</strong>
+ </td>
+ <td>
+ <strong>Synopsis</strong>
+ </td>
+ <td>
+ <strong>Assigned To</strong>
+ </td>
+ <td>
+ <strong>Status</strong>
+ </td>
+ </tr>
+ </xsl:template>
+ <xsl:template name="ChangeRequest">
+ <tr>
+ <td>
+ <xsl:value-of select="CRNumber" />
+ </td>
+ <td>
+ <xsl:call-template name="long_date">
+ <xsl:with-param name="date" select="CreatedOnDate" />
+ </xsl:call-template>
+ </td>
+ <td>
+ <xsl:call-template name="long_date">
+ <xsl:with-param name="date" select="ModifiedDate" />
+ </xsl:call-template>
+ </td>
+ <td>
+ <xsl:value-of select="Category" />
+ </td>
+ <td>
+ <xsl:value-of select="Component" />
+ </td>
+ <td>
+ <xsl:value-of select="Synopsis" />
+ </td>
+ <td>
+ <xsl:value-of select="AssignedTo" />
+ </td>
+ <td>
+ <xsl:value-of select="Status" />
+ </td>
+ </tr>
+ </xsl:template>
</xsl:stylesheet>
diff --git a/tests/org.eclipse.wst.xsl.ui.tests/projectfiles/ListAllChangeRequests.xsl b/tests/org.eclipse.wst.xsl.ui.tests/projectfiles/ListAllChangeRequests.xsl
index 34df8de..475d29f 100644
--- a/tests/org.eclipse.wst.xsl.ui.tests/projectfiles/ListAllChangeRequests.xsl
+++ b/tests/org.eclipse.wst.xsl.ui.tests/projectfiles/ListAllChangeRequests.xsl
@@ -1,67 +1,91 @@
<?xml version="1.0" encoding="UTF-8"?>
-<!--
-/*******************************************************************************
- * Copyright (c) 2008 Standards for Technology in Automotive Retail and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * David Carver - STAR - Stylesheet for testing purposes.
- *******************************************************************************/
- -->
+<!-- /*******************************************************************************
+ * Copyright (c) 2008 Standards for Technology in Automotive Retail and others.
+ * All rights reserved. This program and the accompanying materials * are
+ made available under the terms of the Eclipse Public License v1.0 * which
+ accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html
+ * * Contributors: * David Carver - STAR - Stylesheet for testing purposes.
+ *******************************************************************************/ -->
-<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
-
- <xsl:param name="date"></xsl:param>
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+ version="1.0">
- <xsl:include href="utils.xsl"/>
- <xsl:template match="StarTeam">
- <html>
- <head>
- <title>List All Change Requests</title>
- </head>
- <body>
- <p>
- <table border="1">
- <caption><b>All Change Requests in XML/DTS</b></caption>
- <xsl:call-template name="tableHeader"></xsl:call-template>
- <xsl:for-each select="ChangeRequest">
- <xsl:sort select="Status"/>
- <xsl:call-template name="ChangeRequest"/>
- </xsl:for-each>
- </table>
- </p>
- </body>
- </html>
- </xsl:template>
-
- <xsl:template name="tableHeader">
- <tr bgcolor="silver">
- <td><strong>Number</strong></td>
- <td><strong>Creation Date</strong></td>
- <td><strong>Assigned To</strong></td>
- <td><strong>Category</strong></td>
- <td><strong>Component</strong></td>
- <td><strong>Synopsis</strong></td>
- <td><strong>Status</strong></td>
- </tr>
- </xsl:template>
-
- <xsl:template name="ChangeRequest">
- <tr>
- <td><xsl:value-of select="CRNumber"/></td>
- <td>
- <xsl:call-template name="long_date">
- <xsl:with-param name="date" select="CreatedOnDate"/>
- </xsl:call-template>
- </td>
- <td><xsl:value-of select="AssignedTo"/></td>
- <td><xsl:value-of select="Category"/></td>
- <td><xsl:value-of select="Component"/></td>
- <td><xsl:value-of select="Synopsis"/></td>
- <td><xsl:value-of select="Status"/></td>
- </tr>
- </xsl:template>
+ <xsl:param name="date"></xsl:param>
+
+ <xsl:include href="utils.xsl" />
+ <xsl:template match="StarTeam">
+ <html>
+ <head>
+ <title>List All Change Requests</title>
+ </head>
+ <body>
+ <p>
+ <table border="1">
+ <caption>
+ <b>All Change Requests in XML/DTS</b>
+ </caption>
+ <xsl:call-template name="tableHeader"></xsl:call-template>
+ <xsl:for-each select="ChangeRequest">
+ <xsl:sort select="Status" />
+ <xsl:call-template name="ChangeRequest" />
+ </xsl:for-each>
+ </table>
+ </p>
+ </body>
+ </html>
+ </xsl:template>
+
+ <xsl:template name="tableHeader">
+ <tr bgcolor="silver">
+ <td>
+ <strong>Number</strong>
+ </td>
+ <td>
+ <strong>Creation Date</strong>
+ </td>
+ <td>
+ <strong>Assigned To</strong>
+ </td>
+ <td>
+ <strong>Category</strong>
+ </td>
+ <td>
+ <strong>Component</strong>
+ </td>
+ <td>
+ <strong>Synopsis</strong>
+ </td>
+ <td>
+ <strong>Status</strong>
+ </td>
+ </tr>
+ </xsl:template>
+
+ <xsl:template name="ChangeRequest">
+ <tr>
+ <td>
+ <xsl:value-of select="CRNumber" />
+ </td>
+ <td>
+ <xsl:call-template name="long_date">
+ <xsl:with-param name="date" select="CreatedOnDate" />
+ </xsl:call-template>
+ </td>
+ <td>
+ <xsl:value-of select="AssignedTo" />
+ </td>
+ <td>
+ <xsl:value-of select="Category" />
+ </td>
+ <td>
+ <xsl:value-of select="Component" />
+ </td>
+ <td>
+ <xsl:value-of select="Synopsis" />
+ </td>
+ <td>
+ <xsl:value-of select="Status" />
+ </td>
+ </tr>
+ </xsl:template>
</xsl:stylesheet>
\ No newline at end of file
diff --git a/tests/org.eclipse.wst.xsl.ui.tests/projectfiles/OutstandingCRs.xsl b/tests/org.eclipse.wst.xsl.ui.tests/projectfiles/OutstandingCRs.xsl
index 288034b..3f214a8 100644
--- a/tests/org.eclipse.wst.xsl.ui.tests/projectfiles/OutstandingCRs.xsl
+++ b/tests/org.eclipse.wst.xsl.ui.tests/projectfiles/OutstandingCRs.xsl
@@ -1,91 +1,87 @@
<?xml version="1.0" encoding="UTF-8"?>
-<!--
-/*******************************************************************************
- * Copyright (c) 2008 Standards for Technology in Automotive Retail and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * David Carver - STAR - Stylesheet for testing purposes.
- *******************************************************************************/
- -->
+<!-- /*******************************************************************************
+ * Copyright (c) 2008 Standards for Technology in Automotive Retail and others.
+ * All rights reserved. This program and the accompanying materials * are
+ made available under the terms of the Eclipse Public License v1.0 * which
+ accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html
+ * * Contributors: * David Carver - STAR - Stylesheet for testing purposes.
+ *******************************************************************************/ -->
-<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="2.0">
- <xsl:param name="date"/>
- <xsl:include href="utils.xsl"/>
- <xsl:template match="StarTeam">
- <html>
- <head>
- <title>Outstanding/Unassigned Change Requests</title>
- </head>
- <body>
- <p>
- <table border="1">
- <caption>
- <b>Outstanding/Unassigned Change Requests</b>
- </caption>
- <xsl:call-template name="tableHeader"/>
- <xsl:for-each select="ChangeRequest[Status = 'New']">
- <xsl:call-template name="ChangeRequest"/>
- </xsl:for-each>
- </table>
- </p>
- </body>
- </html>
- </xsl:template>
-
- <xsl:template name="tableHeader">
- <tr bgcolor="silver">
- <td>
- <strong>Number</strong>
- </td>
- <td>
- <strong>Creation Date</strong>
- </td>
- <td>
- <strong>Assigned To</strong>
- </td>
- <td>
- <strong>Category</strong>
- </td>
- <td>
- <strong>Component</strong>
- </td>
- <td>
- <strong>Synopsis</strong>
- </td>
- <td>
- <strong>Status</strong>
- </td>
- </tr>
- </xsl:template>
- <xsl:template name="ChangeRequest">
- <tr>
- <td>
- <xsl:value-of select="CRNumber"/>
- </td>
- <td>
- <xsl:call-template name="long_date">
- <xsl:with-param name="date" select="CreatedOnDate"/>
- </xsl:call-template>
- </td>
- <td>
- <xsl:value-of select="AssignedTo"/>
- </td>
- <td>
- <xsl:value-of select="Category"/>
- </td>
- <td>
- <xsl:value-of select="Component"/>
- </td>
- <td>
- <xsl:value-of select="Synopsis"/>
- </td>
- <td>
- <xsl:value-of select="Status"/>
- </td>
- </tr>
- </xsl:template>
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+ version="2.0">
+ <xsl:param name="date" />
+ <xsl:include href="utils.xsl" />
+ <xsl:template match="StarTeam">
+ <html>
+ <head>
+ <title>Outstanding/Unassigned Change Requests</title>
+ </head>
+ <body>
+ <p>
+ <table border="1">
+ <caption>
+ <b>Outstanding/Unassigned Change Requests</b>
+ </caption>
+ <xsl:call-template name="tableHeader" />
+ <xsl:for-each select="ChangeRequest[Status = 'New']">
+ <xsl:call-template name="ChangeRequest" />
+ </xsl:for-each>
+ </table>
+ </p>
+ </body>
+ </html>
+ </xsl:template>
+
+ <xsl:template name="tableHeader">
+ <tr bgcolor="silver">
+ <td>
+ <strong>Number</strong>
+ </td>
+ <td>
+ <strong>Creation Date</strong>
+ </td>
+ <td>
+ <strong>Assigned To</strong>
+ </td>
+ <td>
+ <strong>Category</strong>
+ </td>
+ <td>
+ <strong>Component</strong>
+ </td>
+ <td>
+ <strong>Synopsis</strong>
+ </td>
+ <td>
+ <strong>Status</strong>
+ </td>
+ </tr>
+ </xsl:template>
+ <xsl:template name="ChangeRequest">
+ <tr>
+ <td>
+ <xsl:value-of select="CRNumber" />
+ </td>
+ <td>
+ <xsl:call-template name="long_date">
+ <xsl:with-param name="date" select="CreatedOnDate" />
+ </xsl:call-template>
+ </td>
+ <td>
+ <xsl:value-of select="AssignedTo" />
+ </td>
+ <td>
+ <xsl:value-of select="Category" />
+ </td>
+ <td>
+ <xsl:value-of select="Component" />
+ </td>
+ <td>
+ <xsl:value-of select="Synopsis" />
+ </td>
+ <td>
+ <xsl:value-of select="Status" />
+ </td>
+ </tr>
+ </xsl:template>
</xsl:stylesheet>
diff --git a/tests/org.eclipse.wst.xsl.ui.tests/projectfiles/TestNamedTemplatesAssist.xsl b/tests/org.eclipse.wst.xsl.ui.tests/projectfiles/TestNamedTemplatesAssist.xsl
index 8b76c9a..9e46d2a 100644
--- a/tests/org.eclipse.wst.xsl.ui.tests/projectfiles/TestNamedTemplatesAssist.xsl
+++ b/tests/org.eclipse.wst.xsl.ui.tests/projectfiles/TestNamedTemplatesAssist.xsl
@@ -1,72 +1,99 @@
<?xml version="1.0" encoding="UTF-8"?>
-<!--
-/*******************************************************************************
- * Copyright (c) 2008 Standards for Technology in Automotive Retail and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * David Carver - STAR - Stylesheet for testing purposes.
- *******************************************************************************/
+<!-- /*******************************************************************************
+ * Copyright (c) 2008 Standards for Technology in Automotive Retail and others.
+ * All rights reserved. This program and the accompanying materials * are
+ made available under the terms of the Eclipse Public License v1.0 * which
+ accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html
+ * * Contributors: * David Carver - STAR - Stylesheet for testing purposes.
+ *******************************************************************************/ -->
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+ version="2.0">
- -->
-<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="2.0">
-
- <xsl:param name="date"></xsl:param>
+ <xsl:param name="date"></xsl:param>
- <xsl:include href="utils.xsl"/>
- <xsl:template match="StarTeam">
- <html>
- <head>
- <title>Change Request by Status</title>
- </head>
- <body>
- <p>
- <xsl:for-each-group select="ChangeRequest" group-by="Status">
- <table border="1">
- <caption><b>Change Request Status<xsl:value-of select="current-grouping-key()"/></b></caption>
-
- <xsl:call-template name="tableHeader"></xsl:call-template>
-
- <xsl:for-each select="current-group()">
- <xsl:sort select="Category" order="descending"/>
- <xsl:call-template name="ChangeRequest"/>
- </xsl:for-each>
- </table>
-
- </xsl:for-each-group>
- </p>
- </body>
- </html>
- </xsl:template>
-
- <xsl:template name="">
- <tr bgcolor="silver">
- <td><strong>Number</strong></td>
- <td><strong>Creation Date</strong></td>
- <td><strong>Assigned To</strong></td>
- <td><strong>Category</strong></td>
- <td><strong>Component</strong></td>
- <td><strong>Synopsis</strong></td>
- <td><strong>Status</strong></td>
- </tr>
- </xsl:template>
-
- <xsl:template name="ChangeRequest">
- <tr>
- <td><xsl:value-of select="CRNumber"/></td>
- <td>
- <xsl:call-template name="long_date">
- <xsl:with-param name="date" select="CreatedOnDate"/>
- </xsl:call-template>
- </td>
- <td><xsl:value-of select="AssignedTo"/></td>
- <td><xsl:value-of select="Category"/></td>
- <td><xsl:value-of select="Component"/></td>
- <td><xsl:value-of select="Synopsis"/></td>
- <td><xsl:value-of select="Status"/></td>
- </tr>
- </xsl:template>
+ <xsl:include href="utils.xsl" />
+ <xsl:template match="StarTeam">
+ <html>
+ <head>
+ <title>Change Request by Status</title>
+ </head>
+ <body>
+ <p>
+ <xsl:for-each-group select="ChangeRequest"
+ group-by="Status">
+ <table border="1">
+ <caption>
+ <b>
+ Change Request Status
+ <xsl:value-of select="current-grouping-key()" />
+ </b>
+ </caption>
+
+ <xsl:call-template name="tableHeader"></xsl:call-template>
+
+ <xsl:for-each select="current-group()">
+ <xsl:sort select="Category" order="descending" />
+ <xsl:call-template name="ChangeRequest" />
+ </xsl:for-each>
+ </table>
+
+ </xsl:for-each-group>
+ </p>
+ </body>
+ </html>
+ </xsl:template>
+
+ <xsl:template name="">
+ <tr bgcolor="silver">
+ <td>
+ <strong>Number</strong>
+ </td>
+ <td>
+ <strong>Creation Date</strong>
+ </td>
+ <td>
+ <strong>Assigned To</strong>
+ </td>
+ <td>
+ <strong>Category</strong>
+ </td>
+ <td>
+ <strong>Component</strong>
+ </td>
+ <td>
+ <strong>Synopsis</strong>
+ </td>
+ <td>
+ <strong>Status</strong>
+ </td>
+ </tr>
+ </xsl:template>
+
+ <xsl:template name="ChangeRequest">
+ <tr>
+ <td>
+ <xsl:value-of select="CRNumber" />
+ </td>
+ <td>
+ <xsl:call-template name="long_date">
+ <xsl:with-param name="date" select="CreatedOnDate" />
+ </xsl:call-template>
+ </td>
+ <td>
+ <xsl:value-of select="AssignedTo" />
+ </td>
+ <td>
+ <xsl:value-of select="Category" />
+ </td>
+ <td>
+ <xsl:value-of select="Component" />
+ </td>
+ <td>
+ <xsl:value-of select="Synopsis" />
+ </td>
+ <td>
+ <xsl:value-of select="Status" />
+ </td>
+ </tr>
+ </xsl:template>
</xsl:stylesheet>
\ No newline at end of file
diff --git a/tests/org.eclipse.wst.xsl.ui.tests/projectfiles/TestResultPrefixes.xsl b/tests/org.eclipse.wst.xsl.ui.tests/projectfiles/TestResultPrefixes.xsl
index d8eccba..5b8fa9c 100644
--- a/tests/org.eclipse.wst.xsl.ui.tests/projectfiles/TestResultPrefixes.xsl
+++ b/tests/org.eclipse.wst.xsl.ui.tests/projectfiles/TestResultPrefixes.xsl
@@ -1,20 +1,15 @@
<?xml version="1.0" encoding="UTF-8"?>
-<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- exclude-result-prefixes="#all"
- xmlns:xhtml="http://www.w3.org/1999/xhtml">
- <xsl:template match="/">
- <!-- TODO: Auto-generated template -->
- </xsl:template>
+<xsl:stylesheet version="1.0"
+ xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+ exclude-result-prefixes="#all" xmlns:xhtml="http://www.w3.org/1999/xhtml">
+ <xsl:template match="/">
+ <!-- TODO: Auto-generated template -->
+ </xsl:template>
</xsl:stylesheet>
-<!--
-/*******************************************************************************
- * Copyright (c) 2008 Standards for Technology in Automotive Retail and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * David Carver - STAR - Stylesheet for testing purposes.
- *******************************************************************************/
- -->
\ No newline at end of file
+<!-- /*******************************************************************************
+ * Copyright (c) 2008 Standards for Technology in Automotive Retail and others.
+ * All rights reserved. This program and the accompanying materials * are
+ made available under the terms of the Eclipse Public License v1.0 * which
+ accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html
+ * * Contributors: * David Carver - STAR - Stylesheet for testing purposes.
+ *******************************************************************************/ -->
\ No newline at end of file
diff --git a/tests/org.eclipse.wst.xsl.ui.tests/projectfiles/TestResultPrefixesEmpty.xsl b/tests/org.eclipse.wst.xsl.ui.tests/projectfiles/TestResultPrefixesEmpty.xsl
index d03f3cf..8af0050 100644
--- a/tests/org.eclipse.wst.xsl.ui.tests/projectfiles/TestResultPrefixesEmpty.xsl
+++ b/tests/org.eclipse.wst.xsl.ui.tests/projectfiles/TestResultPrefixesEmpty.xsl
@@ -1,8 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
-<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- exclude-result-prefixes=""
- xmlns:xhtml="http://www.w3.org/1999/xhtml">
- <xsl:template match="/">
- <!-- TODO: Auto-generated template -->
- </xsl:template>
+<xsl:stylesheet version="1.0"
+ xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+ exclude-result-prefixes="" xmlns:xhtml="http://www.w3.org/1999/xhtml">
+ <xsl:template match="/">
+ <!-- TODO: Auto-generated template -->
+ </xsl:template>
</xsl:stylesheet>
\ No newline at end of file
diff --git a/tests/org.eclipse.wst.xsl.ui.tests/projectfiles/TestResultPrefixesWithXhtml.xsl b/tests/org.eclipse.wst.xsl.ui.tests/projectfiles/TestResultPrefixesWithXhtml.xsl
index 220b68a..beeaa17 100644
--- a/tests/org.eclipse.wst.xsl.ui.tests/projectfiles/TestResultPrefixesWithXhtml.xsl
+++ b/tests/org.eclipse.wst.xsl.ui.tests/projectfiles/TestResultPrefixesWithXhtml.xsl
@@ -1,21 +1,16 @@
<?xml version="1.0" encoding="UTF-8"?>
-<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- exclude-result-prefixes="xhtml "
- xmlns:xhtml="http://www.w3.org/1999/xhtml"
- xmlns:test="http://www.examples.org/">
- <xsl:template match="/">
- <!-- TODO: Auto-generated template -->
- </xsl:template>
+<xsl:stylesheet version="1.0"
+ xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+ exclude-result-prefixes="xhtml " xmlns:xhtml="http://www.w3.org/1999/xhtml"
+ xmlns:test="http://www.examples.org/">
+ <xsl:template match="/">
+ <!-- TODO: Auto-generated template -->
+ </xsl:template>
</xsl:stylesheet>
-<!--
-/*******************************************************************************
- * Copyright (c) 2008 Standards for Technology in Automotive Retail and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * David Carver - STAR - Stylesheet for testing purposes.
- *******************************************************************************/
- -->
\ No newline at end of file
+<!-- /*******************************************************************************
+ * Copyright (c) 2008 Standards for Technology in Automotive Retail and others.
+ * All rights reserved. This program and the accompanying materials * are
+ made available under the terms of the Eclipse Public License v1.0 * which
+ accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html
+ * * Contributors: * David Carver - STAR - Stylesheet for testing purposes.
+ *******************************************************************************/ -->
\ No newline at end of file
diff --git a/tests/org.eclipse.wst.xsl.ui.tests/projectfiles/TestTestAttributeProposals.xsl b/tests/org.eclipse.wst.xsl.ui.tests/projectfiles/TestTestAttributeProposals.xsl
index 4b7c07b..b35d27d 100644
--- a/tests/org.eclipse.wst.xsl.ui.tests/projectfiles/TestTestAttributeProposals.xsl
+++ b/tests/org.eclipse.wst.xsl.ui.tests/projectfiles/TestTestAttributeProposals.xsl
@@ -1,9 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
-<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
- <xsl:template match="/">
- <xsl:choose>
- <xsl:when test=""></xsl:when>
- </xsl:choose>
- </xsl:template>
+<xsl:stylesheet version="1.0"
+ xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+ <xsl:template match="/">
+ <xsl:choose>
+ <xsl:when test=""></xsl:when>
+ </xsl:choose>
+ </xsl:template>
</xsl:stylesheet>
<!-- Unit test to make sure we get proposals for test attributes -->
\ No newline at end of file
diff --git a/tests/org.eclipse.wst.xsl.ui.tests/projectfiles/TestXPathXMLProposals.xsl b/tests/org.eclipse.wst.xsl.ui.tests/projectfiles/TestXPathXMLProposals.xsl
index 08398ec..f8a3376 100644
--- a/tests/org.eclipse.wst.xsl.ui.tests/projectfiles/TestXPathXMLProposals.xsl
+++ b/tests/org.eclipse.wst.xsl.ui.tests/projectfiles/TestXPathXMLProposals.xsl
@@ -1,28 +1,23 @@
<?xml version="1.0" encoding="UTF-8"?>
-<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- exclude-result-prefixes="#all"
- xmlns:xsd="http://www.w3.org/2001/XMLSchema">
- <xsl:template match="/">
- <xsl:for-each select="">
-
- </xsl:for-each>
- <xsl:for-each select="/xsd:complexType/">
-
- </xsl:for-each>
- <xsl:for-each select="xsd:complexType/xsd:">
-
- </xsl:for-each>
- </xsl:template>
+<xsl:stylesheet version="1.0"
+ xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+ exclude-result-prefixes="#all" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+ <xsl:template match="/">
+ <xsl:for-each select="">
+
+ </xsl:for-each>
+ <xsl:for-each select="/xsd:complexType/">
+
+ </xsl:for-each>
+ <xsl:for-each select="xsd:complexType/xsd:">
+
+ </xsl:for-each>
+ </xsl:template>
</xsl:stylesheet>
-<!--
-/*******************************************************************************
- * Copyright (c) 2008 Standards for Technology in Automotive Retail and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * David Carver - STAR - Stylesheet for testing purposes.
- *******************************************************************************/
- -->
\ No newline at end of file
+<!-- /*******************************************************************************
+ * Copyright (c) 2008 Standards for Technology in Automotive Retail and others.
+ * All rights reserved. This program and the accompanying materials * are
+ made available under the terms of the Eclipse Public License v1.0 * which
+ accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html
+ * * Contributors: * David Carver - STAR - Stylesheet for testing purposes.
+ *******************************************************************************/ -->
\ No newline at end of file
diff --git a/tests/org.eclipse.wst.xsl.ui.tests/projectfiles/bug272760.xsl b/tests/org.eclipse.wst.xsl.ui.tests/projectfiles/bug272760.xsl
index a23ac67..91d82b9 100644
--- a/tests/org.eclipse.wst.xsl.ui.tests/projectfiles/bug272760.xsl
+++ b/tests/org.eclipse.wst.xsl.ui.tests/projectfiles/bug272760.xsl
@@ -1,49 +1,60 @@
-<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n" +
-<!--
- Copyright (c) IBM Corporation and others 2009. This page is made available under license. For full details see the LEGAL in the documentation book that contains this page.
-
- All Platform Debug contexts, those for org.eclipse.debug.ui, are located in this file
- All contexts are grouped by their relation, with all relations grouped alphabetically.
--->
-<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
- <xsl:output method="html" encoding="iso-8859-1" doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN" doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"/>n" +
- <xsl:template match="/">
-<html xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <title>Compare Details</title>
- </head>
- <body>
- <div align="left" class="main">
- <xsl:apply-templates select="deltas"/>
- </div>
- <p>
- <a href="http://validator.w3.org/check?uri=referer">
- <img src="http://www.w3.org/Icons/valid-xhtml10-blue" alt="Valid XHTML 1.0 Strict" height="31" width="88" />
- </a>
- </p>
- </body>
- </html>
- </xsl:template>
- <xsl:template match="deltas">
- <table border="1" width="90%">
- <tr bgcolor="#CC9933">
- <td>
- <h3>
- <a href="javascript:void(0)" class="typeslnk" onclick="expand(this)">
- // faulty source line follows
- <b>List of <xsl:value-of select= > Details</b>
- </a>
- </h3>
- </td>
- </tr>
- <xsl:for-each select="deltas/delta[@compatible='true']">
- <xsl:sort select="@compatible"/>
- <tr>
- <td>
- <xsl:value-of disable-output-escaping="yes" select="@message"/>
- </td>
- </tr>
- </xsl:for-each>
- </table>
- </xsl:template>
+<?xml version=\"1.0\" encoding=\"UTF-8\"?>
+\n" +
+<!-- Copyright (c) IBM Corporation and others 2009. This page is made available
+ under license. For full details see the LEGAL in the documentation book that
+ contains this page. All Platform Debug contexts, those for org.eclipse.debug.ui,
+ are located in this file All contexts are grouped by their relation, with
+ all relations grouped alphabetically. -->
+<xsl:stylesheet version="1.0"
+ xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+ <xsl:output method="html" encoding="iso-8859-1"
+ doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN"
+ doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" />
+ n" +
+ <xsl:template match="/">
+ <html xmlns="http://www.w3.org/1999/xhtml">
+ <head>
+ <title>Compare Details</title>
+ </head>
+ <body>
+ <div align="left" class="main">
+ <xsl:apply-templates select="deltas" />
+ </div>
+ <p>
+ <a href="http://validator.w3.org/check?uri=referer">
+ <img src="http://www.w3.org/Icons/valid-xhtml10-blue"
+ alt="Valid XHTML 1.0 Strict" height="31" width="88" />
+ </a>
+ </p>
+ </body>
+ </html>
+ </xsl:template>
+ <xsl:template match="deltas">
+ <table border="1" width="90%">
+ <tr bgcolor="#CC9933">
+ <td>
+ <h3>
+ <a href="javascript:void(0)" class="typeslnk"
+ onclick="expand(this)">
+ // faulty source line follows
+ <b>
+ List of
+ <xsl:value-of select=>
+ Details
+ </b>
+ </a>
+ </h3>
+ </td>
+ </tr>
+ <xsl:for-each select="deltas/delta[@compatible='true']">
+ <xsl:sort select="@compatible" />
+ <tr>
+ <td>
+ <xsl:value-of disable-output-escaping="yes"
+ select="@message" />
+ </td>
+ </tr>
+ </xsl:for-each>
+ </table>
+ </xsl:template>
</xsl:stylesheet>
diff --git a/tests/org.eclipse.wst.xsl.ui.tests/projectfiles/bug281420.xsl b/tests/org.eclipse.wst.xsl.ui.tests/projectfiles/bug281420.xsl
index 57d8ee6..ec7cc56 100644
--- a/tests/org.eclipse.wst.xsl.ui.tests/projectfiles/bug281420.xsl
+++ b/tests/org.eclipse.wst.xsl.ui.tests/projectfiles/bug281420.xsl
@@ -1,19 +1,17 @@
<?xml version="1.0" encoding="UTF-8"?>
-<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
- <xsl:variable name="test">0</xsl:variable>
- <xsl:template match="/">
- <xsl:value-of select="$"/>
- </xsl:template>
+<xsl:stylesheet version="1.0"
+ xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+ <xsl:variable name="test">
+ 0
+ </xsl:variable>
+ <xsl:template match="/">
+ <xsl:value-of select="$" />
+ </xsl:template>
</xsl:stylesheet>
-<!--
-/*******************************************************************************
- *Copyright (c) 2009 Standards for Technology in Automotive Retail and others.
- *All rights reserved. This program and the accompanying materials
- *are made available under the terms of the Eclipse Public License v1.0
- *which accompanies this distribution, and is available at
- *http://www.eclipse.org/legal/epl-v10.html
- *
- *Contributors:
- * David Carver (STAR) - bug 281420 - initial API and implementation
- *******************************************************************************/
- -->
\ No newline at end of file
+<!-- /*******************************************************************************
+ *Copyright (c) 2009 Standards for Technology in Automotive Retail and others.
+ *All rights reserved. This program and the accompanying materials *are made
+ available under the terms of the Eclipse Public License v1.0 *which accompanies
+ this distribution, and is available at *http://www.eclipse.org/legal/epl-v10.html
+ * *Contributors: * David Carver (STAR) - bug 281420 - initial API and implementation
+ *******************************************************************************/ -->
\ No newline at end of file
diff --git a/tests/org.eclipse.wst.xsl.ui.tests/projectfiles/bug290286.xsl b/tests/org.eclipse.wst.xsl.ui.tests/projectfiles/bug290286.xsl
index 454c5f2..1159c00 100644
--- a/tests/org.eclipse.wst.xsl.ui.tests/projectfiles/bug290286.xsl
+++ b/tests/org.eclipse.wst.xsl.ui.tests/projectfiles/bug290286.xsl
@@ -1,20 +1,20 @@
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="2.0"
- xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xs="http://www.w3.org/2001/XMLSchema"
- xmlns:abc="http://test.com/abc">
+ xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xs="http://www.w3.org/2001/XMLSchema"
+ xmlns:abc="http://test.com/abc">
- <xsl:template name="abc:test">
- <xsl:value-of select="." />
- </xsl:template>
+ <xsl:template name="abc:test">
+ <xsl:value-of select="." />
+ </xsl:template>
- <xsl:function name="abc:test2">
- <xsl:param name="value" />
- <xsl:value-of select="$value" />
- </xsl:function>
+ <xsl:function name="abc:test2">
+ <xsl:param name="value" />
+ <xsl:value-of select="$value" />
+ </xsl:function>
- <xsl:function name="abc:test3">
- <xsl:param name="value" />
- <xsl:value-of select="$value" />
- </xsl:function>
+ <xsl:function name="abc:test3">
+ <xsl:param name="value" />
+ <xsl:value-of select="$value" />
+ </xsl:function>
</xsl:stylesheet>
\ No newline at end of file
diff --git a/tests/org.eclipse.wst.xsl.ui.tests/projectfiles/bug294079.xsl b/tests/org.eclipse.wst.xsl.ui.tests/projectfiles/bug294079.xsl
index ffec532..36be1a7 100644
--- a/tests/org.eclipse.wst.xsl.ui.tests/projectfiles/bug294079.xsl
+++ b/tests/org.eclipse.wst.xsl.ui.tests/projectfiles/bug294079.xsl
@@ -1,7 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
-<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
- <xsl:template match="/">
- <!-- TODO: Auto-generated template -->
- <div id="{}"/>
- </xsl:template>
+<xsl:stylesheet version="1.0"
+ xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+ <xsl:template match="/">
+ <!-- TODO: Auto-generated template -->
+ <div id="{}" />
+ </xsl:template>
</xsl:stylesheet>
\ No newline at end of file
diff --git a/tests/org.eclipse.wst.xsl.ui.tests/projectfiles/build.xml b/tests/org.eclipse.wst.xsl.ui.tests/projectfiles/build.xml
index e75226c..b1e9a40 100644
--- a/tests/org.eclipse.wst.xsl.ui.tests/projectfiles/build.xml
+++ b/tests/org.eclipse.wst.xsl.ui.tests/projectfiles/build.xml
@@ -1,18 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- ======================================================================
- Sep 6, 2008 5:28:40 PM
-
- ProjectZipFile
-
- ============================ -->
+ Sep 6, 2008 5:28:40 PM ProjectZipFile ============================ -->
<project name="ProjectZipFile" default="default">
-
- <target name="default" description="description">
- <zip destfile="projectfiles.zip" compress="true" update="true" >
- <zipfileset dir=".">
- <include name="*.xsl"/>
- </zipfileset>
- </zip>
- </target>
+
+ <target name="default" description="description">
+ <zip destfile="projectfiles.zip" compress="true" update="true">
+ <zipfileset dir=".">
+ <include name="*.xsl" />
+ </zipfileset>
+ </zip>
+ </target>
</project>
diff --git a/tests/org.eclipse.wst.xsl.ui.tests/projectfiles/calltemplateTest.xsl b/tests/org.eclipse.wst.xsl.ui.tests/projectfiles/calltemplateTest.xsl
index 6c59b1b..c72a5b1 100644
--- a/tests/org.eclipse.wst.xsl.ui.tests/projectfiles/calltemplateTest.xsl
+++ b/tests/org.eclipse.wst.xsl.ui.tests/projectfiles/calltemplateTest.xsl
@@ -1,21 +1,19 @@
<?xml version="1.0" encoding="UTF-8"?>
-<!--
-/*******************************************************************************
- * Copyright (c) 2008 Standards for Technology in Automotive Retail and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * David Carver - STAR - Stylesheet for testing purposes.
- *******************************************************************************/
- -->
-<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
- <xsl:import href="utils.xsl"/>
- <xsl:template match="/">
- <xsl:call-template name="">
- <xsl:with-param name="date">20080930</xsl:with-param>
- </xsl:call-template>
- </xsl:template>
+<!-- /*******************************************************************************
+ * Copyright (c) 2008 Standards for Technology in Automotive Retail and others.
+ * All rights reserved. This program and the accompanying materials * are
+ made available under the terms of the Eclipse Public License v1.0 * which
+ accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html
+ * * Contributors: * David Carver - STAR - Stylesheet for testing purposes.
+ *******************************************************************************/ -->
+<xsl:stylesheet version="1.0"
+ xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+ <xsl:import href="utils.xsl" />
+ <xsl:template match="/">
+ <xsl:call-template name="">
+ <xsl:with-param name="date">
+ 20080930
+ </xsl:with-param>
+ </xsl:call-template>
+ </xsl:template>
</xsl:stylesheet>
diff --git a/tests/org.eclipse.wst.xsl.ui.tests/projectfiles/hrefs/mainFile.xsl b/tests/org.eclipse.wst.xsl.ui.tests/projectfiles/hrefs/mainFile.xsl
index acae6c0..fdcf46b 100644
--- a/tests/org.eclipse.wst.xsl.ui.tests/projectfiles/hrefs/mainFile.xsl
+++ b/tests/org.eclipse.wst.xsl.ui.tests/projectfiles/hrefs/mainFile.xsl
@@ -1,18 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>
-<!--
-/*******************************************************************************
- * Copyright (c) 2008 Chase Technology Ltd - http://www.chasetechnology.co.uk
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Doug Satchwell (Chase Technology Ltd) - initial API and implementation
- *******************************************************************************/
- -->
+<!-- /*******************************************************************************
+ * Copyright (c) 2008 Chase Technology Ltd - http://www.chasetechnology.co.uk
+ * All rights reserved. This program and the accompanying materials * are
+ made available under the terms of the Eclipse Public License v1.0 * which
+ accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html
+ * * Contributors: * Doug Satchwell (Chase Technology Ltd) - initial API and
+ implementation *******************************************************************************/ -->
-<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
- <xsl:include href="olib.xsl"/>
- <xsl:include href="../olib.xsl"/>
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+ version="1.0">
+ <xsl:include href="olib.xsl" />
+ <xsl:include href="../olib.xsl" />
</xsl:stylesheet>
\ No newline at end of file
diff --git a/tests/org.eclipse.wst.xsl.ui.tests/projectfiles/hrefs/olib.xsl b/tests/org.eclipse.wst.xsl.ui.tests/projectfiles/hrefs/olib.xsl
index 5fec68e..301d7dc 100644
--- a/tests/org.eclipse.wst.xsl.ui.tests/projectfiles/hrefs/olib.xsl
+++ b/tests/org.eclipse.wst.xsl.ui.tests/projectfiles/hrefs/olib.xsl
@@ -1,15 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
-<!--
-/*******************************************************************************
- * Copyright (c) 2008 Chase Technology Ltd - http://www.chasetechnology.co.uk
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Doug Satchwell (Chase Technology Ltd) - initial API and implementation
- *******************************************************************************/
- -->
-<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
+<!-- /*******************************************************************************
+ * Copyright (c) 2008 Chase Technology Ltd - http://www.chasetechnology.co.uk
+ * All rights reserved. This program and the accompanying materials * are
+ made available under the terms of the Eclipse Public License v1.0 * which
+ accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html
+ * * Contributors: * Doug Satchwell (Chase Technology Ltd) - initial API and
+ implementation *******************************************************************************/ -->
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+ version="1.0">
</xsl:stylesheet>
\ No newline at end of file
diff --git a/tests/org.eclipse.wst.xsl.ui.tests/projectfiles/hrefs/oneLevelUp/olib.xsl b/tests/org.eclipse.wst.xsl.ui.tests/projectfiles/hrefs/oneLevelUp/olib.xsl
index 5fec68e..301d7dc 100644
--- a/tests/org.eclipse.wst.xsl.ui.tests/projectfiles/hrefs/oneLevelUp/olib.xsl
+++ b/tests/org.eclipse.wst.xsl.ui.tests/projectfiles/hrefs/oneLevelUp/olib.xsl
@@ -1,15 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
-<!--
-/*******************************************************************************
- * Copyright (c) 2008 Chase Technology Ltd - http://www.chasetechnology.co.uk
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Doug Satchwell (Chase Technology Ltd) - initial API and implementation
- *******************************************************************************/
- -->
-<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
+<!-- /*******************************************************************************
+ * Copyright (c) 2008 Chase Technology Ltd - http://www.chasetechnology.co.uk
+ * All rights reserved. This program and the accompanying materials * are
+ made available under the terms of the Eclipse Public License v1.0 * which
+ accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html
+ * * Contributors: * Doug Satchwell (Chase Technology Ltd) - initial API and
+ implementation *******************************************************************************/ -->
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+ version="1.0">
</xsl:stylesheet>
\ No newline at end of file
diff --git a/tests/org.eclipse.wst.xsl.ui.tests/projectfiles/modeTest.xsl b/tests/org.eclipse.wst.xsl.ui.tests/projectfiles/modeTest.xsl
index ffccdd5..5297b4b 100644
--- a/tests/org.eclipse.wst.xsl.ui.tests/projectfiles/modeTest.xsl
+++ b/tests/org.eclipse.wst.xsl.ui.tests/projectfiles/modeTest.xsl
@@ -1,33 +1,29 @@
<?xml version="1.0" encoding="UTF-8"?>
-<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
- <xsl:include href="modeTest2.xsl"/>
- <xsl:template match="/">
-
- </xsl:template>
- <xsl:template match="something" mode="mode1">
-
- </xsl:template>
- <xsl:template match="something" mode="mode2">
-
-
- </xsl:template>
- <xsl:template name="something" mode="mode1">
-
- </xsl:template>
- <xsl:template name="test" mode="">
-
- </xsl:template>
-
+<xsl:stylesheet version="1.0"
+ xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+ <xsl:include href="modeTest2.xsl" />
+ <xsl:template match="/">
+
+ </xsl:template>
+ <xsl:template match="something" mode="mode1">
+
+ </xsl:template>
+ <xsl:template match="something" mode="mode2">
+
+
+ </xsl:template>
+ <xsl:template name="something" mode="mode1">
+
+ </xsl:template>
+ <xsl:template name="test" mode="">
+
+ </xsl:template>
+
</xsl:stylesheet>
-<!--
-/*******************************************************************************
- * Copyright (c) 2008 Standards for Technology in Automotive Retail and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * David Carver - STAR - Stylesheet for testing purposes.
- *******************************************************************************/
- -->
\ No newline at end of file
+<!-- /*******************************************************************************
+ * Copyright (c) 2008 Standards for Technology in Automotive Retail and others.
+ * All rights reserved. This program and the accompanying materials * are
+ made available under the terms of the Eclipse Public License v1.0 * which
+ accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html
+ * * Contributors: * David Carver - STAR - Stylesheet for testing purposes.
+ *******************************************************************************/ -->
\ No newline at end of file
diff --git a/tests/org.eclipse.wst.xsl.ui.tests/projectfiles/modeTest2.xsl b/tests/org.eclipse.wst.xsl.ui.tests/projectfiles/modeTest2.xsl
index 610c0f4..84a60eb 100644
--- a/tests/org.eclipse.wst.xsl.ui.tests/projectfiles/modeTest2.xsl
+++ b/tests/org.eclipse.wst.xsl.ui.tests/projectfiles/modeTest2.xsl
@@ -1,18 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>
-<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
- <xsl:template match="/" mode="mode3">
- <!-- TODO: Auto-generated template -->
- </xsl:template>
+<xsl:stylesheet version="1.0"
+ xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+ <xsl:template match="/" mode="mode3">
+ <!-- TODO: Auto-generated template -->
+ </xsl:template>
</xsl:stylesheet>
-<!--
-/*******************************************************************************
- * Copyright (c) 2008 Standards for Technology in Automotive Retail and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * David Carver - STAR - Stylesheet for testing purposes.
- *******************************************************************************/
- -->
\ No newline at end of file
+<!-- /*******************************************************************************
+ * Copyright (c) 2008 Standards for Technology in Automotive Retail and others.
+ * All rights reserved. This program and the accompanying materials * are
+ made available under the terms of the Eclipse Public License v1.0 * which
+ accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html
+ * * Contributors: * David Carver - STAR - Stylesheet for testing purposes.
+ *******************************************************************************/ -->
\ No newline at end of file
diff --git a/tests/org.eclipse.wst.xsl.ui.tests/projectfiles/olib.xsl b/tests/org.eclipse.wst.xsl.ui.tests/projectfiles/olib.xsl
index 5fec68e..301d7dc 100644
--- a/tests/org.eclipse.wst.xsl.ui.tests/projectfiles/olib.xsl
+++ b/tests/org.eclipse.wst.xsl.ui.tests/projectfiles/olib.xsl
@@ -1,15 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
-<!--
-/*******************************************************************************
- * Copyright (c) 2008 Chase Technology Ltd - http://www.chasetechnology.co.uk
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Doug Satchwell (Chase Technology Ltd) - initial API and implementation
- *******************************************************************************/
- -->
-<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
+<!-- /*******************************************************************************
+ * Copyright (c) 2008 Chase Technology Ltd - http://www.chasetechnology.co.uk
+ * All rights reserved. This program and the accompanying materials * are
+ made available under the terms of the Eclipse Public License v1.0 * which
+ accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html
+ * * Contributors: * Doug Satchwell (Chase Technology Ltd) - initial API and
+ implementation *******************************************************************************/ -->
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+ version="1.0">
</xsl:stylesheet>
\ No newline at end of file
diff --git a/tests/org.eclipse.wst.xsl.ui.tests/projectfiles/testElementProposals.xsl b/tests/org.eclipse.wst.xsl.ui.tests/projectfiles/testElementProposals.xsl
index 155c51b..d9cfa07 100644
--- a/tests/org.eclipse.wst.xsl.ui.tests/projectfiles/testElementProposals.xsl
+++ b/tests/org.eclipse.wst.xsl.ui.tests/projectfiles/testElementProposals.xsl
@@ -1,22 +1,17 @@
<?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 version="1.0"
+ xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+ <xsl:template match="/">
+ <html>
+ <body>
+ < </body>
+ </html>
+ </xsl:template>
</xsl:stylesheet>
-<!--
-/*******************************************************************************
- * Copyright (c) 2008 Standards for Technology in Automotive Retail and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * David Carver - STAR - Stylesheet for testing purposes.
- *******************************************************************************/
- -->
\ No newline at end of file
+<!-- /*******************************************************************************
+ * Copyright (c) 2008 Standards for Technology in Automotive Retail and others.
+ * All rights reserved. This program and the accompanying materials * are
+ made available under the terms of the Eclipse Public License v1.0 * which
+ accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html
+ * * Contributors: * David Carver - STAR - Stylesheet for testing purposes.
+ *******************************************************************************/ -->
\ No newline at end of file
diff --git a/tests/org.eclipse.wst.xsl.ui.tests/projectfiles/utils.xsl b/tests/org.eclipse.wst.xsl.ui.tests/projectfiles/utils.xsl
index db59b5c..5fc0044 100644
--- a/tests/org.eclipse.wst.xsl.ui.tests/projectfiles/utils.xsl
+++ b/tests/org.eclipse.wst.xsl.ui.tests/projectfiles/utils.xsl
@@ -1,42 +1,64 @@
<?xml version="1.0" encoding="UTF-8"?>
-<!--
-/*******************************************************************************
- * Copyright (c) 2008 Standards for Technology in Automotive Retail and others.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * David Carver - STAR - Stylesheet for testing purposes.
- *******************************************************************************/
- -->
+<!-- /*******************************************************************************
+ * Copyright (c) 2008 Standards for Technology in Automotive Retail and others.
+ * All rights reserved. This program and the accompanying materials * are
+ made available under the terms of the Eclipse Public License v1.0 * which
+ accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html
+ * * Contributors: * David Carver - STAR - Stylesheet for testing purposes.
+ *******************************************************************************/ -->
-<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
- <xsl:template name="long_date">
- <xsl:param name="date"/>
- <!-- Month -->
- <xsl:variable name="month" select="number(substring($date, 6, 2))"/>
- <xsl:choose>
- <xsl:when test="$month=1">January</xsl:when>
- <xsl:when test="$month=2">February</xsl:when>
- <xsl:when test="$month=3">March</xsl:when>
- <xsl:when test="$month=4">April</xsl:when>
- <xsl:when test="$month=5">May</xsl:when>
- <xsl:when test="$month=6">June</xsl:when>
- <xsl:when test="$month=7">July</xsl:when>
- <xsl:when test="$month=8">August</xsl:when>
- <xsl:when test="$month=9">September</xsl:when>
- <xsl:when test="$month=10">October</xsl:when>
- <xsl:when test="$month=11">November</xsl:when>
- <xsl:when test="$month=12">December</xsl:when>
- <xsl:otherwise>INVALID MONTH</xsl:otherwise>
- </xsl:choose>
- <xsl:text/>
- <!-- Day -->
- <xsl:value-of select="number(substring($date, 9, 2))" />
- <xsl:text >, </xsl:text>
- <!-- Year -->
- <xsl:value-of select="substring($date, 1, 4)" />
- </xsl:template>
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+ version="1.0">
+ <xsl:template name="long_date">
+ <xsl:param name="date" />
+ <!-- Month -->
+ <xsl:variable name="month" select="number(substring($date, 6, 2))" />
+ <xsl:choose>
+ <xsl:when test="$month=1">
+ January
+ </xsl:when>
+ <xsl:when test="$month=2">
+ February
+ </xsl:when>
+ <xsl:when test="$month=3">
+ March
+ </xsl:when>
+ <xsl:when test="$month=4">
+ April
+ </xsl:when>
+ <xsl:when test="$month=5">
+ May
+ </xsl:when>
+ <xsl:when test="$month=6">
+ June
+ </xsl:when>
+ <xsl:when test="$month=7">
+ July
+ </xsl:when>
+ <xsl:when test="$month=8">
+ August
+ </xsl:when>
+ <xsl:when test="$month=9">
+ September
+ </xsl:when>
+ <xsl:when test="$month=10">
+ October
+ </xsl:when>
+ <xsl:when test="$month=11">
+ November
+ </xsl:when>
+ <xsl:when test="$month=12">
+ December
+ </xsl:when>
+ <xsl:otherwise>
+ INVALID MONTH
+ </xsl:otherwise>
+ </xsl:choose>
+ <xsl:text />
+ <!-- Day -->
+ <xsl:value-of select="number(substring($date, 9, 2))" />
+ <xsl:text>, </xsl:text>
+ <!-- Year -->
+ <xsl:value-of select="substring($date, 1, 4)" />
+ </xsl:template>
</xsl:stylesheet>
\ No newline at end of file
diff --git a/tests/org.eclipse.wst.xsl.ui.tests/src/org/eclipse/wst/xsl/ui/tests/contentassist/TestCallTemplateCompletionProposal.java b/tests/org.eclipse.wst.xsl.ui.tests/src/org/eclipse/wst/xsl/ui/tests/contentassist/TestCallTemplateCompletionProposal.java
index 8cec13a..41e59f5 100644
--- a/tests/org.eclipse.wst.xsl.ui.tests/src/org/eclipse/wst/xsl/ui/tests/contentassist/TestCallTemplateCompletionProposal.java
+++ b/tests/org.eclipse.wst.xsl.ui.tests/src/org/eclipse/wst/xsl/ui/tests/contentassist/TestCallTemplateCompletionProposal.java
@@ -23,7 +23,7 @@
String xslFilePath = projectName + File.separator + fileName;
loadFileForTesting(xslFilePath);
- ICompletionProposal[] proposals = getProposals(16, 27);
+ ICompletionProposal[] proposals = getProposals(12, 31);
assertNotNull("Did not find proposals.", proposals);
}
@@ -33,7 +33,7 @@
String xslFilePath = projectName + File.separator + fileName;
loadFileForTesting(xslFilePath);
- ICompletionProposal[] proposals = getProposals(16, 27);
+ ICompletionProposal[] proposals = getProposals(12, 31);
assertNotNull("Did not find proposals.", proposals);
assertTrue("Empty proposals returned.", proposals.length > 0);
assertEquals("Wrong proposal found.", "long_date", proposals[0]
diff --git a/tests/org.eclipse.wst.xsl.ui.tests/src/org/eclipse/wst/xsl/ui/tests/contentassist/TestElementCompletionProposal.java b/tests/org.eclipse.wst.xsl.ui.tests/src/org/eclipse/wst/xsl/ui/tests/contentassist/TestElementCompletionProposal.java
index 09830ce..3786f1a 100644
--- a/tests/org.eclipse.wst.xsl.ui.tests/src/org/eclipse/wst/xsl/ui/tests/contentassist/TestElementCompletionProposal.java
+++ b/tests/org.eclipse.wst.xsl.ui.tests/src/org/eclipse/wst/xsl/ui/tests/contentassist/TestElementCompletionProposal.java
@@ -46,12 +46,10 @@
IStructuredDocument document = (IStructuredDocument) sourceViewer
.getDocument();
// Column is off by one when calculating for the offset position
- int column = 16;
- int line = 5;
+ int column = 13;
+ int line = 6;
- int offset = document.getLineOffset(line) + column;
-
- ICompletionProposal[] proposals = getProposals(offset);
+ ICompletionProposal[] proposals = getProposals(line, column);
assertNotNull("Did not find proposals.", proposals);
String proposalName = "";
@@ -72,12 +70,10 @@
IStructuredDocument document = (IStructuredDocument) sourceViewer
.getDocument();
// Column is off by one when calculating for the offset position
- int column = 16;
- int line = 5;
+ int column = 13;
+ int line = 6;
- int offset = document.getLineOffset(line) + column;
-
- ICompletionProposal[] proposals = getProposals(offset);
+ ICompletionProposal[] proposals = getProposals(line, column);
assertNotNull("Did not find proposals.", proposals);
String proposalName = "";
diff --git a/tests/org.eclipse.wst.xsl.ui.tests/src/org/eclipse/wst/xsl/ui/tests/contentassist/TestExcludeResultPrefixesCompletionProposal.java b/tests/org.eclipse.wst.xsl.ui.tests/src/org/eclipse/wst/xsl/ui/tests/contentassist/TestExcludeResultPrefixesCompletionProposal.java
index f61f2eb..5fe412d 100644
--- a/tests/org.eclipse.wst.xsl.ui.tests/src/org/eclipse/wst/xsl/ui/tests/contentassist/TestExcludeResultPrefixesCompletionProposal.java
+++ b/tests/org.eclipse.wst.xsl.ui.tests/src/org/eclipse/wst/xsl/ui/tests/contentassist/TestExcludeResultPrefixesCompletionProposal.java
@@ -56,7 +56,7 @@
public void testXHTMLNamespacePropsoalAvailable() throws Exception {
fileName = "TestResultPrefixesEmpty.xsl";
int column = 29;
- int line = 2;
+ int line = 3;
String xslFilePath = projectName + File.separator + fileName;
loadFileForTesting(xslFilePath);
IStructuredDocument document = (IStructuredDocument) sourceViewer
@@ -72,7 +72,7 @@
public void testAllPropsoalAvailable() throws Exception {
fileName = "TestResultPrefixesEmpty.xsl";
int column = 29;
- int line = 2;
+ int line = 3;
String xslFilePath = projectName + File.separator + fileName;
loadFileForTesting(xslFilePath);
IStructuredDocument document = (IStructuredDocument) sourceViewer
@@ -103,7 +103,7 @@
public void testTestProposal() throws Exception {
fileName = "TestResultPrefixesWithXhtml.xsl";
int column = 35;
- int line = 2;
+ int line = 3;
ICompletionProposal[] proposals = setupProposals(column, line);
assertNotNull("Did not find proposals.", proposals);
assertFalse("Proposals returned more than one.", proposals.length > 1);
diff --git a/tests/org.eclipse.wst.xsl.ui.tests/src/org/eclipse/wst/xsl/ui/tests/contentassist/TestTemplateModeCompletionProposal.java b/tests/org.eclipse.wst.xsl.ui.tests/src/org/eclipse/wst/xsl/ui/tests/contentassist/TestTemplateModeCompletionProposal.java
index e7f734f..6ddaf50 100644
--- a/tests/org.eclipse.wst.xsl.ui.tests/src/org/eclipse/wst/xsl/ui/tests/contentassist/TestTemplateModeCompletionProposal.java
+++ b/tests/org.eclipse.wst.xsl.ui.tests/src/org/eclipse/wst/xsl/ui/tests/contentassist/TestTemplateModeCompletionProposal.java
@@ -34,13 +34,13 @@
IStructuredDocument document = (IStructuredDocument) sourceViewer
.getDocument();
// Line is off by one when calculating for the offset position
- int chars = 36;
- int line = 16;
+ int chars = 35;
+ int line = 17;
int offset = document.getLineOffset(line) + chars;
// assertEquals("Wrong offset returned", 471, offset);
- ICompletionProposal[] proposals = getProposals(offset);
+ ICompletionProposal[] proposals = getProposals(line, chars);
assertProposalExists("mode1", proposals);
assertProposalExists("mode2", proposals);
assertProposalExists("mode3", proposals);
diff --git a/tests/org.eclipse.wst.xsl.ui.tests/src/org/eclipse/wst/xsl/ui/tests/contentassist/TestXPathXMLCompletionProposal.java b/tests/org.eclipse.wst.xsl.ui.tests/src/org/eclipse/wst/xsl/ui/tests/contentassist/TestXPathXMLCompletionProposal.java
index 17e774d..e157650 100644
--- a/tests/org.eclipse.wst.xsl.ui.tests/src/org/eclipse/wst/xsl/ui/tests/contentassist/TestXPathXMLCompletionProposal.java
+++ b/tests/org.eclipse.wst.xsl.ui.tests/src/org/eclipse/wst/xsl/ui/tests/contentassist/TestXPathXMLCompletionProposal.java
@@ -27,7 +27,7 @@
String xslFilePath = projectName + File.separator + fileName;
loadFileForTesting(xslFilePath);
- ICompletionProposal[] proposals = getProposals(5, 24);
+ ICompletionProposal[] proposals = getProposals(5, 29);
assertNotNull("Did not find proposals.", proposals);
for (int i = 0; i < proposals.length; i++) {
@@ -75,7 +75,7 @@
String xslFilePath = projectName + File.separator + fileName;
loadFileForTesting(xslFilePath);
- ICompletionProposal[] proposals = getProposals(4, 28);
+ ICompletionProposal[] proposals = getProposals(5, 25);
assertNotNull("Did not find proposals.", proposals);
for (int i = 0; i < proposals.length; i++) {
@@ -91,7 +91,7 @@
String xslFilePath = projectName + File.separator + fileName;
loadFileForTesting(xslFilePath);
- ICompletionProposal[] proposals = getProposals(4, 12);
+ ICompletionProposal[] proposals = getProposals(5, 16);
assertNotNull("Did not find proposals.", proposals);
for (int i = 0; i < proposals.length; i++) {
diff --git a/tests/org.eclipse.wst.xsl.ui.tests/src/org/eclipse/wst/xsl/ui/tests/contentassist/XSLCompletionTest.java b/tests/org.eclipse.wst.xsl.ui.tests/src/org/eclipse/wst/xsl/ui/tests/contentassist/XSLCompletionTest.java
index 1c8fb83..de11276 100755
--- a/tests/org.eclipse.wst.xsl.ui.tests/src/org/eclipse/wst/xsl/ui/tests/contentassist/XSLCompletionTest.java
+++ b/tests/org.eclipse.wst.xsl.ui.tests/src/org/eclipse/wst/xsl/ui/tests/contentassist/XSLCompletionTest.java
@@ -25,36 +25,36 @@
*/
public class XSLCompletionTest extends AbstractSourceViewerTest {
- public void testGetNodeAtLine15() throws Exception {
+ public void testGetNodeAtLine10() throws Exception {
fileName = "utils.xsl";
String xslFilePath = projectName + File.separator + fileName;
loadFileForTesting(xslFilePath);
IDOMNode node = (IDOMNode) ContentAssistUtils.getNodeAt(sourceViewer,
- sourceViewer.getDocument().getLineOffset(14) + 1);
+ sourceViewer.getDocument().getLineOffset(9) + 1);
assertEquals("Wrong node name returned:", "xsl:stylesheet", node
.getNodeName());
}
- public void testGetNodeAtLine16() throws Exception {
+ public void testGetNodeAtLine12() throws Exception {
fileName = "utils.xsl";
String xslFilePath = projectName + File.separator + fileName;
loadFileForTesting(xslFilePath);
IDOMNode node = (IDOMNode) ContentAssistUtils.getNodeAt(sourceViewer,
- sourceViewer.getDocument().getLineOffset(15) + 11);
+ sourceViewer.getDocument().getLineOffset(11) + 11);
assertEquals("Wrong node name returned:", "xsl:template", node
.getNodeName());
}
- public void testGetNodeAtLine17() throws Exception {
+ public void testGetNodeAtLine13() throws Exception {
fileName = "utils.xsl";
String xslFilePath = projectName + File.separator + fileName;
loadFileForTesting(xslFilePath);
IDOMNode node = (IDOMNode) ContentAssistUtils.getNodeAt(sourceViewer,
- sourceViewer.getDocument().getLineOffset(16) + 14);
+ sourceViewer.getDocument().getLineOffset(12) + 14);
assertEquals("Wrong node name returned:", "xsl:param", node
.getNodeName());
}
@@ -64,7 +64,7 @@
String xslFilePath = projectName + File.separator + fileName;
loadFileForTesting(xslFilePath);
- ICompletionProposal[] proposals = getProposals(838);
+ ICompletionProposal[] proposals = getProposals(14, 42);
assertTrue(proposals.length > 1);
ICompletionProposal proposal = proposals[0];
@@ -78,11 +78,11 @@
String xslFilePath = projectName + File.separator + fileName;
loadFileForTesting(xslFilePath);
- int offset = sourceViewer.getDocument().getLineOffset(18) + 44;
+ int offset = sourceViewer.getDocument().getLineOffset(14) + 42;
String s = sourceViewer.getDocument().get(offset - 1, 6);
assertEquals("number", s);
- ICompletionProposal[] proposals = getProposals(18, 43);
+ ICompletionProposal[] proposals = getProposals(14, 41);
assertTrue(proposals.length > 1);
ICompletionProposal proposal = proposals[3];
@@ -100,7 +100,7 @@
String xslFilePath = projectName + File.separator + fileName;
loadFileForTesting(xslFilePath);
- int offset = sourceViewer.getDocument().getLineOffset(18) + 44;
+ int offset = sourceViewer.getDocument().getLineOffset(14) + 42;
String s = sourceViewer.getDocument().get(offset - 9, 9);
assertEquals("select=\"n", s);
@@ -115,7 +115,7 @@
String xslFilePath = projectName + File.separator + fileName;
loadFileForTesting(xslFilePath);
- ICompletionProposal[] proposals = getXMLProposals(37, 18);
+ ICompletionProposal[] proposals = getXMLProposals(58, 60);
assertTrue(proposals.length >= 1);
ICompletionProposal proposal = proposals[0];
assertTrue("Wrong attribute proposal returned:", proposal
@@ -127,7 +127,7 @@
String xslFilePath = projectName + File.separator + fileName;
loadFileForTesting(xslFilePath);
- ICompletionProposal[] proposals = getXMLProposals(31, 58);
+ ICompletionProposal[] proposals = getXMLProposals(51, 20);
assertTrue(proposals.length >= 2);
ICompletionProposal proposal = proposals[1];
@@ -153,7 +153,7 @@
String xslFilePath = projectName + File.separator + fileName;
loadFileForTesting(xslFilePath);
- ICompletionProposal[] proposals = getProposals(4, 25);
+ ICompletionProposal[] proposals = getProposals(7, 29);
assertTrue("Did not find any proposals.", proposals.length > 0);
CustomCompletionProposal testprop = null;
for (int cnt = 0; cnt < proposals.length; cnt++) {
@@ -165,7 +165,7 @@
if (testprop == null) {
fail("Didn't find the $test proposal");
}
- int startoffset = calculateOffset(4, 24);
+ int startoffset = calculateOffset(7, 28);
if (testprop.getReplacementOffset() != startoffset) {
fail("Replacement Offset position worng expected " + startoffset
+ "but received " + testprop.getReplacementOffset());