dmarston    00/12/19 14:54:11

  Modified:    test/tests/conf/output output75.xsl output59.xsl
                        output63.xsl
  Added:       test/tests/conf/output output46.xsl output46.xml
  Log:
  Better handling of new-lines and other special characters
  
  Revision  Changes    Path
  1.2       +5 -5      xml-xalan/test/tests/conf/output/output75.xsl
  
  Index: output75.xsl
  ===================================================================
  RCS file: /home/cvs/xml-xalan/test/tests/conf/output/output75.xsl,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- output75.xsl      2000/12/15 22:54:52     1.1
  +++ output75.xsl      2000/12/19 22:54:08     1.2
  @@ -1,7 +1,7 @@
   <?xml version="1.0"?> 
   <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"; 
version="1.0">
   
  -<xsl:output method="xml" indent="yes"/>
  +<xsl:output method="xml"/>
   
     <!-- FileName: output75 -->
     <!-- Document: http://www.w3.org/TR/xslt -->
  @@ -15,14 +15,14 @@
     <!-- Author: Paul Dick -->
   
   <xsl:template match="doc">
  - <xml>
  + <xml><xsl:text>&#10;</xsl:text>
     <out1>
        <xsl:attribute name="attrib1">
                <xsl:text 
disable-output-escaping="no">_&lt;Whoa-No&gt;_</xsl:text>
        </xsl:attribute>
        <xsl:attribute name="attrib2">
                <xsl:value-of select="a" disable-output-escaping="no"/>
  -     </xsl:attribute></out1>
  +     </xsl:attribute></out1><xsl:text>&#10;</xsl:text>
   
     <!-- This is the error case. It should come out as d-o-e="no" -->
     <out2>
  @@ -31,11 +31,11 @@
        </xsl:attribute>
        <xsl:attribute name="attrib4">
                <xsl:value-of select="a" disable-output-escaping="yes"/>
  -     </xsl:attribute></out2>
  +     </xsl:attribute></out2><xsl:text>&#10;</xsl:text>
   
     <out3>
        <xsl:value-of select="a" disable-output-escaping="yes"/>
  -  </out3>
  +  </out3><xsl:text>&#10;</xsl:text>
    </xml>
   </xsl:template>
    
  
  
  
  1.2       +2 -1      xml-xalan/test/tests/conf/output/output59.xsl
  
  Index: output59.xsl
  ===================================================================
  RCS file: /home/cvs/xml-xalan/test/tests/conf/output/output59.xsl,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- output59.xsl      2000/12/15 22:54:51     1.1
  +++ output59.xsl      2000/12/19 22:54:08     1.2
  @@ -7,7 +7,8 @@
     <!-- Document: http://www.w3.org/TR/xslt -->
     <!-- DocVersion: 19991116 -->
     <!-- Section: 7.3 Creating Processing Instructions -->
  -  <!-- Purpose: Test creation of a top-level processing-instruction. -->
  +  <!-- Purpose: Test creation of a top-level processing-instruction before 
the 
  +                document element. -->
   
   <xsl:template match="/">
    <xsl:processing-instruction name="my-pi">href="book.css" 
type="text/css"</xsl:processing-instruction>
  
  
  
  1.2       +5 -1      xml-xalan/test/tests/conf/output/output63.xsl
  
  Index: output63.xsl
  ===================================================================
  RCS file: /home/cvs/xml-xalan/test/tests/conf/output/output63.xsl,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- output63.xsl      2000/12/15 22:54:51     1.1
  +++ output63.xsl      2000/12/19 22:54:08     1.2
  @@ -7,7 +7,11 @@
     <!-- Document: http://www.w3.org/TR/xslt -->
     <!-- DocVersion: 19991116 -->
     <!-- Section: 16.2 HTML Output Method -->
  -  <!-- Purpose: ??? -->
  +  <!-- Purpose: The html output method should not output an element 
  +                differently from the xml output method unless the 
  +                expanded-name of the element has a null namespace URI; an 
  +                element whose expanded-name has a non-null namespace URI 
  +                should be output as XML.  -->
   
   <xsl:output method="html"/>
   
  
  
  
  1.1                  xml-xalan/test/tests/conf/output/output46.xsl
  
  Index: output46.xsl
  ===================================================================
  <?xml version="1.0"?> 
  <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"; 
version="1.0">
  <xsl:output cdata-section-elements="test"/>
  <xsl:output method="html" 
              doctype-public="-//W3C//DTD HTML 4.0 Transitional"
                        cdata-section-elements="example"/>
  
  
    <!-- FileName: outp46 -->
    <!-- Document: http://www.w3.org/TR/xslt -->
    <!-- DocVersion: 19991116 -->
    <!-- Section: 16 Output -->
    <!-- Purpose: All xsl:output elements are merged into a single element.
         cdata-section-elements will contain the union of the specified values.
         It is an error if there is more than one such value for an attribute.
         The processor may signal an error; or recover by using the value
         that occurs last in the stylesheet.
         
         Both example and test should be wrapped by CDATA, and the output should
         be HTML. -->
  
  <xsl:template match="/">
        <example>&lt;foo></example>
        <test>]]&gt;</test>
  </xsl:template>
   
  </xsl:stylesheet>
  
  
  
  1.1                  xml-xalan/test/tests/conf/output/output46.xml
  
  Index: output46.xml
  ===================================================================
  <?xml version="1.0"?> 
  <doc>
  </doc>
  
  

Reply via email to