You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xalan.apache.org by dm...@locus.apache.org on 2000/12/15 22:43:12 UTC

cvs commit: xml-xalan/test/tests/conf/whitespace whitespace22.xsl space.xsl whitespace01.xml whitespace01.xsl whitespace02.xml whitespace02.xsl whitespace03.xml whitespace03.xsl whitespace04.xml whitespace04.xsl whitespace05.xml whitespace05.xsl whitespace06.xml whitespace06.xsl whitespace07.xml whitespace07.xsl whitespace08.xml whitespace08.xsl whitespace09.xml whitespace09.xsl whitespace10.xml whitespace10.xsl whitespace11.xml whitespace11.xsl whitespace12.xml whitespace12.xsl whitespace13.xml whitespace13.xsl whitespace14.xml whitespace14.xsl whitespace15.xml whitespace15.xsl whitespace16.xml whitespace16.xsl whitespace17.xml whitespace17.xsl whitespace18.xml whitespace18.xsl whitespace19.xml whitespace19.xsl whitespace20.xml whitespace20.xsl whitespace21.xml whitespace21.xsl whitespace22.xml space.xml

dmarston    00/12/15 13:43:12

  Added:       test/tests/conf/whitespace whitespace22.xsl space.xsl
                        whitespace01.xml whitespace01.xsl whitespace02.xml
                        whitespace02.xsl whitespace03.xml whitespace03.xsl
                        whitespace04.xml whitespace04.xsl whitespace05.xml
                        whitespace05.xsl whitespace06.xml whitespace06.xsl
                        whitespace07.xml whitespace07.xsl whitespace08.xml
                        whitespace08.xsl whitespace09.xml whitespace09.xsl
                        whitespace10.xml whitespace10.xsl whitespace11.xml
                        whitespace11.xsl whitespace12.xml whitespace12.xsl
                        whitespace13.xml whitespace13.xsl whitespace14.xml
                        whitespace14.xsl whitespace15.xml whitespace15.xsl
                        whitespace16.xml whitespace16.xsl whitespace17.xml
                        whitespace17.xsl whitespace18.xml whitespace18.xsl
                        whitespace19.xml whitespace19.xsl whitespace20.xml
                        whitespace20.xsl whitespace21.xml whitespace21.xsl
                        whitespace22.xml space.xml
  Log:
  Copy of tests in Lotus/IBM repository
  
  Revision  Changes    Path
  1.1                  xml-xalan/test/tests/conf/whitespace/whitespace22.xsl
  
  Index: whitespace22.xsl
  ===================================================================
  <?xml version="1.0"?> 
  <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0" 
                  xmlns:ns1="www.ns1.com" xmlns:ns2="www.ns2.com"
                  exclude-result-prefixes="ns1 ns2">
  
    <!-- FileName: whitespace22 -->
    <!-- Document: http://www.w3.org/TR/xslt -->
    <!-- DocVersion: 19991116 -->
    <!-- Section: 3.4 Whitespace Stripping -->
    <!-- Purpose: Testing the applicable match for a particular element, also
         verifying that preserve-space works with namespace-prefixed element.
         This generate an error, recovering with the match that occurs last in
         the stylesheet. -->
  
  <xsl:strip-space elements="ns1:test ns2:test"/>
  <xsl:preserve-space elements="ns1:test"/>
    
  <xsl:template match="doc">
    <out>
      <xsl:apply-templates select="*"/>
    </out>
  </xsl:template>
     
  </xsl:stylesheet>
  
  
  
  1.1                  xml-xalan/test/tests/conf/whitespace/space.xsl
  
  Index: space.xsl
  ===================================================================
  <xsl:stylesheet
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"
    xmlns="http://www.w3.org/TR/REC-html40"
    result-ns="">
  
  <xsl:strip-space elements="document"/>
  
  <xsl:template match="document">
    <xsl:apply-templates/>
  </xsl:template>
  
  <xsl:template match="section">
    <xsl:text>Position:</xsl:text><xsl:value-of select="position()"/>
    <xsl:text>,Last:</xsl:text><xsl:value-of select="last()"/>
  </xsl:template>
  
  </xsl:stylesheet>
  
  
  
  
  1.1                  xml-xalan/test/tests/conf/whitespace/whitespace01.xml
  
  Index: whitespace01.xml
  ===================================================================
  <?xml version="1.0"?> 
  <doc>
    <test1>
           <a>a</a>
                  <b>b</b>
    </test1>
    <test2>
           <c>c</c>
                  <d>d</d>
    </test2>
  </doc>
  
  
  
  1.1                  xml-xalan/test/tests/conf/whitespace/whitespace01.xsl
  
  Index: whitespace01.xsl
  ===================================================================
  <?xml version="1.0"?> 
  <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
  
    <!-- FileName: WHTE01 -->
    <!-- Document: http://www.w3.org/TR/xslt -->
    <!-- DocVersion: 19990922 -->
    <!-- Section: 3.4 -->
    <!-- Purpose: Test strip-space directive. -->
  
  <xsl:strip-space elements="test1"/>
    
  <xsl:template match="doc">
    <out>
      <xsl:apply-templates select="*"/>
    </out>
  </xsl:template>
     
  </xsl:stylesheet>
  
  
  
  1.1                  xml-xalan/test/tests/conf/whitespace/whitespace02.xml
  
  Index: whitespace02.xml
  ===================================================================
  <?xml version="1.0"?> 
  <doc>
    <test1>
           <a>a</a>
                  <b>b</b>
    </test1>
    <test2>
           <c>c</c>
                  <d>d</d>
    </test2>
  </doc>
  
  
  
  1.1                  xml-xalan/test/tests/conf/whitespace/whitespace02.xsl
  
  Index: whitespace02.xsl
  ===================================================================
  <?xml version="1.0"?> 
  <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
  
    <!-- FileName: WHTE02 -->
    <!-- Document: http://www.w3.org/TR/xslt -->
    <!-- DocVersion: 19990922 -->
    <!-- Section: 3.4 -->
    <!-- Purpose: Test strip-space on list of specified elements. -->
  
  <xsl:strip-space elements="test1 test2"/>
  
  <xsl:template match="doc">
    <out>
      <xsl:apply-templates select="*"/>
    </out>
  </xsl:template>
     
  </xsl:stylesheet>
  
  
  
  1.1                  xml-xalan/test/tests/conf/whitespace/whitespace03.xml
  
  Index: whitespace03.xml
  ===================================================================
  <?xml version="1.0"?> 
  <doc>
    <test1>
           <a>a</a>
                  <b>b</b>
    </test1>
    <test2>
           <c>c</c>
                  <d>d</d>
    </test2>
  </doc>
  
  
  
  1.1                  xml-xalan/test/tests/conf/whitespace/whitespace03.xsl
  
  Index: whitespace03.xsl
  ===================================================================
  <?xml version="1.0"?> 
  <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
  
    <!-- FileName: WHTE03 -->
    <!-- Document: http://www.w3.org/TR/xslt -->
    <!-- DocVersion: 19990922 -->
    <!-- Section: 3.4 -->
    <!-- Purpose: Test strip-space with wildcard element selector. -->
  
  <xsl:strip-space elements="*"/>
    
  <xsl:template match="doc">
    <out>
      <xsl:apply-templates select="*"/>
    </out>
  </xsl:template>
     
  </xsl:stylesheet>
  
  
  
  1.1                  xml-xalan/test/tests/conf/whitespace/whitespace04.xml
  
  Index: whitespace04.xml
  ===================================================================
  <?xml version="1.0"?> 
  <doc>
    <test1>
  	<a>a</a>
  	<b>b</b>
    </test1>
    <test2>
  	<c>c</c>
  	<d>d</d>
    </test2>
  </doc>
  
  
  
  1.1                  xml-xalan/test/tests/conf/whitespace/whitespace04.xsl
  
  Index: whitespace04.xsl
  ===================================================================
  <?xml version="1.0"?> 
  <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
  
    <!-- FileName: whte04 -->
    <!-- Document: http://www.w3.org/TR/xslt -->
    <!-- DocVersion: 19991116 -->
    <!-- Section: 3.4 Whitespace Stripping -->
    <!-- Purpose: Test wildcard on strip-space overridden by preserve-space for one element. -->
  
  <xsl:strip-space elements="*"/>
  <xsl:preserve-space elements="test2"/>
    
  <xsl:template match="doc">
    <out>
      <xsl:apply-templates select="*"/>
    </out>
  </xsl:template>
     
  </xsl:stylesheet>
  
  
  
  1.1                  xml-xalan/test/tests/conf/whitespace/whitespace05.xml
  
  Index: whitespace05.xml
  ===================================================================
  <?xml version="1.0"?> 
  <doc>
      <a>a</a>
          <b> <!-- test -->b</b>
  </doc>
  
  
  
  1.1                  xml-xalan/test/tests/conf/whitespace/whitespace05.xsl
  
  Index: whitespace05.xsl
  ===================================================================
  <?xml version="1.0"?> 
  <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
  
    <!-- FileName: WHTE05 -->
    <!-- Document: http://www.w3.org/TR/xslt -->
    <!-- DocVersion: 19990922 -->
    <!-- Section: 3.4 -->
    <!-- Purpose: Test stripping an element that has whitespace plus a comment containing whitespace. -->
  
  <xsl:strip-space elements="b"/>
   
  <xsl:template match="doc">
    <out>
      <xsl:apply-templates select="*"/>
    </out>
  </xsl:template>
     
  </xsl:stylesheet>
  
  
  
  1.1                  xml-xalan/test/tests/conf/whitespace/whitespace06.xml
  
  Index: whitespace06.xml
  ===================================================================
  <?xml version="1.0"?> 
  <doc xmlns:foo="ns1" xmlns:roo="ns2">
    <foo:test>
           <a>a</a>
                  <b>b</b>
    </foo:test>
    <roo:test>
           <c>c</c>
                  <d>d</d>
    </roo:test>
  </doc>
  
  
  
  1.1                  xml-xalan/test/tests/conf/whitespace/whitespace06.xsl
  
  Index: whitespace06.xsl
  ===================================================================
  <?xml version="1.0"?> 
  <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0" 
                  xmlns:ns1="ns1">
  
    <!-- FileName: WHTE06 -->
    <!-- Document: http://www.w3.org/TR/xslt -->
    <!-- DocVersion: 19990922 -->
    <!-- Section: 3.4 -->
    <!-- Purpose: Test element specifier that has a namespace qualifier. -->
  
  <xsl:strip-space elements="ns1:test"/>
    
  <xsl:template match="doc">
    <out>
      <xsl:apply-templates select="*"/>
    </out>
  </xsl:template>
     
  </xsl:stylesheet>
  
  
  
  1.1                  xml-xalan/test/tests/conf/whitespace/whitespace07.xml
  
  Index: whitespace07.xml
  ===================================================================
  <?xml version="1.0"?> 
  <doc xmlns:foo="ns1" xmlns:roo="ns2">
    <foo:test>
           <a>a</a>
                  <b>b</b>
    </foo:test>
    <roo:test>
           <c>c</c>
                  <d>d</d>
    </roo:test>
  </doc>
  
  
  
  1.1                  xml-xalan/test/tests/conf/whitespace/whitespace07.xsl
  
  Index: whitespace07.xsl
  ===================================================================
  <?xml version="1.0"?> 
  <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0" 
                  xmlns:ns1="ns1">
  
    <!-- FileName: WHTE07 -->
    <!-- Document: http://www.w3.org/TR/xslt -->
    <!-- DocVersion: 19990922 -->
    <!-- Section: 3.4 -->
    <!-- Purpose: Test for element specifier that is a wildcard but qualified by a namespace. -->
  
  <xsl:strip-space elements="ns1:*"/>
    
  <xsl:template match="doc">
    <out>
      <xsl:apply-templates select="*"/>
    </out>
  </xsl:template>
     
  </xsl:stylesheet>
  
  
  
  1.1                  xml-xalan/test/tests/conf/whitespace/whitespace08.xml
  
  Index: whitespace08.xml
  ===================================================================
  <?xml version="1.0"?> 
  <doc>
  </doc>
  
  
  1.1                  xml-xalan/test/tests/conf/whitespace/whitespace08.xsl
  
  Index: whitespace08.xsl
  ===================================================================
  <?xml version="1.0"?> 
  <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
  
    <!-- FileName: WHTE08 -->
    <!-- Document: http://www.w3.org/TR/xslt -->
    <!-- DocVersion: 19990922 -->
    <!-- Section: 3.4 -->
    <!-- Purpose: Test default whitespace handling. -->
  
  <xsl:template match="/">
    <out>
      <xsl:text> </xsl:text>
    </out>
  </xsl:template>
   
  </xsl:stylesheet>
  
  
  
  1.1                  xml-xalan/test/tests/conf/whitespace/whitespace09.xml
  
  Index: whitespace09.xml
  ===================================================================
  <?xml version="1.0"?> 
  <doc>
  </doc>
  
  
  1.1                  xml-xalan/test/tests/conf/whitespace/whitespace09.xsl
  
  Index: whitespace09.xsl
  ===================================================================
  <?xml version="1.0"?> 
  <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
  
    <!-- FileName: WHTE09 -->
    <!-- Document: http://www.w3.org/TR/xslt -->
    <!-- DocVersion: 19990922 -->
    <!-- Section: 3.4 -->
    <!-- Purpose: Test output of newline via CDATA section in template. -->
  
  <xsl:template match="/"><out>
    <![CDATA[
        ]]>
        </out></xsl:template>
   
  </xsl:stylesheet>
  
  
  
  1.1                  xml-xalan/test/tests/conf/whitespace/whitespace10.xml
  
  Index: whitespace10.xml
  ===================================================================
  <?xml version="1.0"?> 
  <doc>
  </doc>
  
  
  1.1                  xml-xalan/test/tests/conf/whitespace/whitespace10.xsl
  
  Index: whitespace10.xsl
  ===================================================================
  <?xml version="1.0"?> 
  <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
  
    <!-- FileName: WHTE10 -->
    <!-- Document: http://www.w3.org/TR/xslt -->
    <!-- DocVersion: 19990922 -->
    <!-- Section: 3.4 -->
    <!-- Purpose: Test whitespace as LRE in template. -->
  
  <xsl:template match="/"><out>
        x
        </out></xsl:template>
   
  </xsl:stylesheet>
  
  
  
  1.1                  xml-xalan/test/tests/conf/whitespace/whitespace11.xml
  
  Index: whitespace11.xml
  ===================================================================
  <?xml version="1.0"?> 
  <doc>
  </doc>
  
  
  1.1                  xml-xalan/test/tests/conf/whitespace/whitespace11.xsl
  
  Index: whitespace11.xsl
  ===================================================================
  <?xml version="1.0"?> 
  <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
  
    <!-- FileName: WHTE11 -->
    <!-- Document: http://www.w3.org/TR/xslt -->
    <!-- DocVersion: 19990922 -->
    <!-- Section: 3.4 -->
    <!-- Purpose: Test whitespace in template matched on root. -->
  
  <xsl:template match="/">
        x
        </xsl:template>
   
  </xsl:stylesheet>
  
  
  
  1.1                  xml-xalan/test/tests/conf/whitespace/whitespace12.xml
  
  Index: whitespace12.xml
  ===================================================================
  <?xml version="1.0"?> 
  <document>
    <section/>  <section/>  <section/>
  </document>
  
  
  1.1                  xml-xalan/test/tests/conf/whitespace/whitespace12.xsl
  
  Index: whitespace12.xsl
  ===================================================================
  <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
  
    <!-- FileName: WHTE12 -->
    <!-- Document: http://www.w3.org/TR/xslt -->
    <!-- DocVersion: 19990922 -->
    <!-- Section: 16 -->
    <!-- Purpose: Test xsl:output with indent. -->
  
  <xsl:output indent="yes"/>
    
  <xsl:strip-space elements="document"/>
  
  <xsl:template match="document">
    <out>
      <xsl:apply-templates/>
    </out>
  </xsl:template>
  
  <xsl:template match="section">
    <xsl:text>Position:</xsl:text><xsl:value-of select="position()"/>
    <xsl:text>,Last:</xsl:text><xsl:value-of select="last()"/><xsl:text>
  </xsl:text>
  </xsl:template>
  
  </xsl:stylesheet>
  
  
  
  1.1                  xml-xalan/test/tests/conf/whitespace/whitespace13.xml
  
  Index: whitespace13.xml
  ===================================================================
  <?xml version="1.0"?> 
  <doc>
    <foo>a</foo>
  </doc>
  
  
  1.1                  xml-xalan/test/tests/conf/whitespace/whitespace13.xsl
  
  Index: whitespace13.xsl
  ===================================================================
  <?xml version="1.0"?> 
  <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
  
    <!-- FileName: WHTE13 -->
    <!-- Document: http://www.w3.org/TR/xslt -->
    <!-- DocVersion: 19990922 -->
    <!-- Section: 3.4 -->
    <!-- Purpose: Test default whitespace handling where both source and template have space. -->
  
  <xsl:template match="/">
    <out> <![CDATA[test]]> </out>
  </xsl:template>
  
  </xsl:stylesheet>
  
  
  
  1.1                  xml-xalan/test/tests/conf/whitespace/whitespace14.xml
  
  Index: whitespace14.xml
  ===================================================================
  <?xml version="1.0"?> 
  <doc>
  </doc>
  
  
  1.1                  xml-xalan/test/tests/conf/whitespace/whitespace14.xsl
  
  Index: whitespace14.xsl
  ===================================================================
  <?xml version="1.0"?>
  <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
  
    <!-- FileName: WHTE14 -->
    <!-- Document: http://www.w3.org/TR/xslt -->
    <!-- DocVersion: 19991116 -->
    <!-- Section: 3.4 -->
    <!-- Purpose: Test use of whitespace character entity's. -->
  
  <xsl:template match="/">
  <out>,
  <a>&#32;a</a><b>&#09;b</b><c>&#13;c</c><d>&#10;d</d>
  </out>
  </xsl:template>
   
  </xsl:stylesheet>
  
  
  
  1.1                  xml-xalan/test/tests/conf/whitespace/whitespace15.xml
  
  Index: whitespace15.xml
  ===================================================================
  <?xml version="1.0"?> 
  <doc/>
  
  
  1.1                  xml-xalan/test/tests/conf/whitespace/whitespace15.xsl
  
  Index: whitespace15.xsl
  ===================================================================
  <?xml version="1.0"?>
  <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
  
    <!-- FileName: WHTE15 -->
    <!-- Document: http://www.w3.org/TR/xslt -->
    <!-- DocVersion: 19990922 -->
    <!-- Section: 3.4 -->
    <!-- Purpose: Test default whitespace handling. -->
  
  <xsl:template match="/">
    <out/>
  </xsl:template>
  
  </xsl:stylesheet>
  
  
  
  1.1                  xml-xalan/test/tests/conf/whitespace/whitespace16.xml
  
  Index: whitespace16.xml
  ===================================================================
  <?xml version="1.0"?> 
  <doc/>
  
  
  1.1                  xml-xalan/test/tests/conf/whitespace/whitespace16.xsl
  
  Index: whitespace16.xsl
  ===================================================================
  <?xml version="1.0"?>
  <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
  
    <!-- FileName: whte16 -->
    <!-- Document: http://www.w3.org/TR/xslt -->
    <!-- DocVersion: 19991116 -->
    <!-- Section: 3.4 -->
    <!-- Purpose: This is a general test of whitespace handling.
    	   It verifies the handling of the special whitespace
    	   characters; space, tab, CR, LF. In different situations.
    			1. within xsl:text where they should not be stripped,
    			2. within LRE's <end2> where they may be stripped. -->
  
  <xsl:template match="/">
    <out>
  	<xsl:text> a. <!-- This -->
  	 ,</xsl:text>
      <xsl:text>&#32;</xsl:text>,	<!-- Contains space -->
      <xsl:text>&#09;	</xsl:text>, <!-- Contains tab and 1 tab -->
      <xsl:text>&#13;		</xsl:text>, <!-- Contains CR and 2 tabs -->
      <xsl:text>&#10;			</xsl:text> <!-- Contains NL and 3 tabs -->
  
  
  
  
  	 
  
  
  	<end>		This will not be stripped.	</end>,
  	<end2>&#32;	&#09;	&#13;	&#10;     </end2>
    </out>
  </xsl:template>
   
  </xsl:stylesheet>
  
  
  
  1.1                  xml-xalan/test/tests/conf/whitespace/whitespace17.xml
  
  Index: whitespace17.xml
  ===================================================================
  <?xml version="1.0"?> 
  <doc>
  	<foo>a</foo>
  </doc>
  
  
  1.1                  xml-xalan/test/tests/conf/whitespace/whitespace17.xsl
  
  Index: whitespace17.xsl
  ===================================================================
  <?xml version="1.0"?>
  <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
  
    <!-- FileName: WHTE17 -->
    <!-- Document: http://www.w3.org/TR/xslt -->
    <!-- DocVersion: 19991116 -->
    <!-- Section: 16 -->
    <!-- Purpose: Test indent on xsl:output with copy-of. -->
  
  <xsl:output indent="yes"/>
  
  <xsl:template match="/">
  	<xsl:copy-of select="doc"/>
  </xsl:template>
  
  </xsl:stylesheet>
  
  
  
  1.1                  xml-xalan/test/tests/conf/whitespace/whitespace18.xml
  
  Index: whitespace18.xml
  ===================================================================
  <?xml version="1.0"?>
  <doc>
     <alpha key="a"/>
     <alpha key="b"/>
     <alpha key="c"/>
     <alpha key="d"/>
     <alpha key="e"/>
     <alpha key="f"/>
     <alpha key="g"/>
  </doc>
  
  
  1.1                  xml-xalan/test/tests/conf/whitespace/whitespace18.xsl
  
  Index: whitespace18.xsl
  ===================================================================
  <?xml version="1.0" encoding="iso-8859-1" ?>
  <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
  
    <!-- FileName: whte18 -->
    <!-- Document: http://www.w3.org/TR/xslt -->
    <!-- DocVersion: 19991116 -->
    <!-- Section: 3.4 Whitespace Stripping -->
    <!-- Purpose: xsl:text node should not contribute any text nodes 
         to the result tree. -->
  
  <xsl:template match="/">
  <out><xsl:text>&#010;</xsl:text>
  <xsl:for-each select="doc/alpha">
     <xsl:value-of select="@key"/>|<xsl:text/>
  </xsl:for-each>
  </out>
  
  </xsl:template>
  </xsl:stylesheet>
  
  
  1.1                  xml-xalan/test/tests/conf/whitespace/whitespace19.xml
  
  Index: whitespace19.xml
  ===================================================================
  <?xml version="1.0"?>
  <doc>
     <alpha key="a"/>
     <alpha key="b"/>
     <alpha key="c"/>
     <alpha key="d"/>
     <alpha key="e"/>
     <alpha key="f"/>
     <alpha key="g"/>
  </doc>
  
  
  1.1                  xml-xalan/test/tests/conf/whitespace/whitespace19.xsl
  
  Index: whitespace19.xsl
  ===================================================================
  <?xml version="1.0" encoding="iso-8859-1" ?>
  <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
  
    <!-- FileName: whte19 -->
    <!-- Document: http://www.w3.org/TR/xslt -->
    <!-- DocVersion: 19991116 -->
    <!-- Section: 3.4 Whitespace Stripping -->
    <!-- Purpose: Stylesheet is whitespace stripped before processing. -->
  
  <xsl:template match="/">
  <out>
  <xsl:for-each select="doc/alpha">
      <xsl:value-of select="@key"/>|<xsl:text/> </xsl:for-each>
  
  
  
  </out>
  </xsl:template>
  </xsl:stylesheet>
  
  
  1.1                  xml-xalan/test/tests/conf/whitespace/whitespace20.xml
  
  Index: whitespace20.xml
  ===================================================================
  <?xml version="1.0"?>
  <doc>
  </doc>
  
  
  1.1                  xml-xalan/test/tests/conf/whitespace/whitespace20.xsl
  
  Index: whitespace20.xsl
  ===================================================================
  <?xml version="1.0"?>
  <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
  <xsl:output indent="yes"/>
  
    <!-- FileName: whte20 -->
    <!-- Document: http://www.w3.org/TR/xslt -->
    <!-- DocVersion: 19991116 -->
    <!-- Section: 3.4 Whitespace Stripping -->
    <!-- Purpose: xml:space attributes need to be perserved. -->
  
  <xsl:template match="/">
   <root>
     <out xml:space="default">        Test of xml:space w/default         </out>
     <out xml:space="preserve">       Test of xml:space w/perserve        </out>
   </root>
  </xsl:template>
  </xsl:stylesheet>
  
  
  1.1                  xml-xalan/test/tests/conf/whitespace/whitespace21.xml
  
  Index: whitespace21.xml
  ===================================================================
  <?xml version="1.0"?>
  <doc></doc>
  
  
  1.1                  xml-xalan/test/tests/conf/whitespace/whitespace21.xsl
  
  Index: whitespace21.xsl
  ===================================================================
  <?xml version="1.0"?>
  <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
  
    <!-- FileName: WHTE21 -->
    <!-- Document: http://www.w3.org/TR/xslt -->
    <!-- DocVersion: 19991116 -->
    <!-- Section: 3.4 Whitespace Stripping -->
    <!-- Purpose: Test for whitespace handling with comments in literal sections -->
  
  <xsl:template match="/">
    <out>x
      <!-- this is a comment -->y
      <!-- this is another comment -->
      <z><!-- this is another comment --> </z>
    </out>
  </xsl:template>
  
  </xsl:stylesheet>
  
  
  1.1                  xml-xalan/test/tests/conf/whitespace/whitespace22.xml
  
  Index: whitespace22.xml
  ===================================================================
  <?xml version="1.0"?> 
  <doc xmlns:ns1="www.ns1.com" xmlns:ns2="www.ns2.com">
    <ns2:test>
           <c>c</c>
                  <d>d</d>
    </ns2:test>
    <ns1:test>
           <a>a</a>
                  <b>b</b>
    </ns1:test>
  
  </doc>
  
  
  
  1.1                  xml-xalan/test/tests/conf/whitespace/space.xml
  
  Index: space.xml
  ===================================================================
  <document>
    <section/>  <section/>  <section/>
  </document>