dmarston    00/12/15 13:39:50

  Added:       test/tests/conf/whitespace/err whitespaceerr04.xsl
                        whitespaceerr01.xsl whitespaceerr02.xml
                        whitespaceerr02.xsl whitespaceerr03.xml
                        whitespaceerr03.xsl whitespaceerr04.xml
                        whitespaceerr01.xml
  Log:
  Copy of tests in Lotus/IBM repository
  
  Revision  Changes    Path
  1.1                  
xml-xalan/test/tests/conf/whitespace/err/whitespaceerr04.xsl
  
  Index: whitespaceerr04.xsl
  ===================================================================
  <?xml version="1.0"?> 
  <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"; 
version="1.0">
  
    <!-- FileName: WHTEerr04 -->
    <!-- Document: http://www.w3.org/TR/xslt -->
    <!-- DocVersion: 19991116 -->
    <!-- Section: 3.4 Whitespace Stripping -->
    <!-- Purpose: Test placement of strip-space inside atemplate, which is 
illegal. -->
    <!-- ExpectedException: xsl:strip-space is not allowed inside a template! 
-->
    <!-- ExpectedException: XSLT: (StylesheetHandler) xsl:strip-space is not 
allowed inside a template! -->
  
  <xsl:template match="doc">
    <out>
      <xsl:strip-space elements="test2"/>
    </out>
  </xsl:template>
     
  </xsl:stylesheet>
  
  
  
  1.1                  
xml-xalan/test/tests/conf/whitespace/err/whitespaceerr01.xsl
  
  Index: whitespaceerr01.xsl
  ===================================================================
  <?xml version="1.0"?> 
  <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"; 
version="1.0">
  
    <!-- FileName: whteerr01 -->
    <!-- Document: http://www.w3.org/TR/xslt -->
    <!-- DocVersion: 19991116 -->
    <!-- Section: 3.4 Whitespace Stripping -->
    <!-- Purpose: Test error reporting when required attribute, elements, is 
missing
         from xsl:strip-space. -->
    <!-- ExpectedException: (StylesheetHandler) xsl:strip-space requires an 
elements attribute! -->
    <!-- ExpectedException: org.apache.xalan.xslt.XSLProcessorException: 
(StylesheetHandler) xsl:strip-space requires an elements attribute! -->
  
  <xsl:strip-space/>
  
  <xsl:template match="doc">
      <xsl:apply-templates select="*"/>
  
  </xsl:template>
     
  </xsl:stylesheet>
  
  
  
  1.1                  
xml-xalan/test/tests/conf/whitespace/err/whitespaceerr02.xml
  
  Index: whitespaceerr02.xml
  ===================================================================
  <?xml version="1.0"?> 
  <doc>
  </doc>
  
  
  1.1                  
xml-xalan/test/tests/conf/whitespace/err/whitespaceerr02.xsl
  
  Index: whitespaceerr02.xsl
  ===================================================================
  <?xml version="1.0"?> 
  <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"; 
version="1.0">
  
    <!-- FileName: whteerr02 -->
    <!-- Document: http://www.w3.org/TR/xslt -->
    <!-- DocVersion: 19991116 -->
    <!-- Section: 3.4 Whitespace Stripping -->
    <!-- Purpose: Test error reporting when required attribute, elements, is 
missing
         from xsl:preserve-space. -->
    <!-- ExpectedException: (StylesheetHandler) xsl:preserve-space requires an 
elements attribute! -->
    <!-- ExpectedException: org.apache.xalan.xslt.XSLProcessorException: 
(StylesheetHandler) xsl:preserve-space requires an elements attribute! -->
  
  <xsl:preserve-space/>
    
  <xsl:template match="doc">
      <xsl:apply-templates select="*"/>
  </xsl:template>
     
  </xsl:stylesheet>
  
  
  
  1.1                  
xml-xalan/test/tests/conf/whitespace/err/whitespaceerr03.xml
  
  Index: whitespaceerr03.xml
  ===================================================================
  <?xml version="1.0"?> 
  <doc>
  </doc>
  
  
  1.1                  
xml-xalan/test/tests/conf/whitespace/err/whitespaceerr03.xsl
  
  Index: whitespaceerr03.xsl
  ===================================================================
  <?xml version="1.0"?> 
  <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"; 
version="1.0">
  
    <!-- FileName: WHTEerr03 -->
    <!-- Document: http://www.w3.org/TR/xslt -->
    <!-- DocVersion: 19991116 -->
    <!-- Section: 3.4 Whitespace Stripping -->
    <!-- Purpose: Test placement of preserve-space inside atemplate, which is 
illegal. -->
    <!-- ExpectedException: xsl:preserve-space is not allowed inside a 
template! -->
    <!-- ExpectedException: XSLT: (StylesheetHandler) xsl:preserve-space is not 
allowed inside a template! -->
  
  <xsl:template match="doc">
    <out>
      <xsl:preserve-space elements="test2"/>
    </out>
  </xsl:template>
     
  </xsl:stylesheet>
  
  
  
  1.1                  
xml-xalan/test/tests/conf/whitespace/err/whitespaceerr04.xml
  
  Index: whitespaceerr04.xml
  ===================================================================
  <?xml version="1.0"?> 
  <doc>
  </doc>
  
  
  1.1                  
xml-xalan/test/tests/conf/whitespace/err/whitespaceerr01.xml
  
  Index: whitespaceerr01.xml
  ===================================================================
  <?xml version="1.0"?> 
  <doc>
  </doc>
  
  

Reply via email to