Bug 28430, fix spacing issues in test result generation
authorabraaksm
Tue, 07 Apr 2015 22:48:06 +0200
changeset 936 aacc11c061ac
parent 935 5986713e5c76
child 937 d6e14de632e4
Bug 28430, fix spacing issues in test result generation
tests/fn/id/_id-test-set.xml
tests/fn/id/id-014.xsl
tests/fn/id/id-037.xsl
--- a/tests/fn/id/_id-test-set.xml	Tue Apr 07 19:15:31 2015 +0200
+++ b/tests/fn/id/_id-test-set.xml	Tue Apr 07 22:48:06 2015 +0200
@@ -257,6 +257,7 @@
    <test-case name="id-014">
       <description>AElfred parser bug - parameter entities in internal subset (see XML source document)</description>
       <created by="Michael Kay" on="2012-11-07"/>
+      <modified by="Abel Braaksma" on="2015-04-07" change="Bug 28430, fixing spacing issues"/>
       <environment>
          <source role="." file="id080.xml"/>
       </environment>
@@ -677,9 +678,10 @@
    <test-case name="id-037">
       <description>test use of id() in pattern with a variable (XSLT 2.0 feature)</description>
       <created by="Michael Kay" on="2012-11-07"/>
+      <modified by="Abel Braaksma" on="2015-04-07" change="Bug 28430, fixing spacing issues"/>
       <environment ref="id017"/>
       <dependencies>
-         <spec value="XSLT10+"/>
+         <spec value="XSLT20+"/>
       </dependencies>
       <test>
          <stylesheet file="id-037.xsl"/>
--- a/tests/fn/id/id-014.xsl	Tue Apr 07 19:15:31 2015 +0200
+++ b/tests/fn/id/id-014.xsl	Tue Apr 07 22:48:06 2015 +0200
@@ -4,7 +4,8 @@
 <?spec xslt#copy-of?>
 <!-- AElfred parser bug - parameter entities in internal subset -->
 <!-- (see XML source document) -->
-
+  
+  <xsl:strip-space elements="*"/>
   <xsl:template match="/">
     <xsl:copy-of select="*"/>
   </xsl:template>
--- a/tests/fn/id/id-037.xsl	Tue Apr 07 19:15:31 2015 +0200
+++ b/tests/fn/id/id-037.xsl	Tue Apr 07 22:48:06 2015 +0200
@@ -5,13 +5,14 @@
 
 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="2.0">
 
-  <xsl:template match="/">
-      <d><xsl:apply-templates/></d>
-  </xsl:template>
+    <xsl:template match="/">
+        <d><xsl:apply-templates/></d>
+    </xsl:template>
   
-  <xsl:param name="x" select="'c'"/>
+    <xsl:param name="x" select="'c'"/>
   
-  <xsl:template match="a">[<xsl:value-of select="@id"/>]</xsl:template>
-  <xsl:template match="id($x)">[*<xsl:value-of select="@id"/>*]</xsl:template>
- 
+    <xsl:template match="a">[<xsl:value-of select="@id"/>]</xsl:template>
+    <xsl:template match="id($x)">[*<xsl:value-of select="@id"/>*]</xsl:template>
+
+    <xsl:template match="node()" ><xsl:apply-templates /></xsl:template>
 </xsl:stylesheet>