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...@apache.org on 2001/08/03 16:58:11 UTC

cvs commit: xml-xalan/test/tests/conf/copy/err copyerr05.xsl copyerr04.xsl copyerr05.xml copyerr04.xml

dmarston    01/08/03 07:58:11

  Added:       test/tests/conf/copy/err copyerr05.xsl copyerr04.xsl
                        copyerr05.xml copyerr04.xml
  Log:
  New error cases: premature attribute
  
  Revision  Changes    Path
  1.1                  xml-xalan/test/tests/conf/copy/err/copyerr05.xsl
  
  Index: copyerr05.xsl
  ===================================================================
  <?xml version="1.0"?>
  <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
  
    <!-- FileName: COPYerr05 -->
    <!-- Document: http://www.w3.org/TR/xslt -->
    <!-- DocVersion: 19991116 -->
    <!-- Section: 11.3 -->
    <!-- Creator: David Marston -->
    <!-- ExpectedException: Attempt to write an attribute with no element -->
    <!-- Purpose: Try to copy an attribute, via copy, before there is any element produced. -->
  
  <xsl:output method="xml" encoding="UTF-8"/>
  
  <xsl:template match="/">
    <xsl:apply-templates select="doc/@*"/>
  </xsl:template>
  
  <xsl:template match="@*">
    <xsl:copy/>
  </xsl:template>
  
  </xsl:stylesheet>
  
  
  1.1                  xml-xalan/test/tests/conf/copy/err/copyerr04.xsl
  
  Index: copyerr04.xsl
  ===================================================================
  <?xml version="1.0"?>
  <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
  
    <!-- FileName: COPYerr04 -->
    <!-- Document: http://www.w3.org/TR/xslt -->
    <!-- DocVersion: 19991116 -->
    <!-- Section: 11.3 -->
    <!-- Creator: David Marston -->
    <!-- ExpectedException: Attempt to write an attribute with no element -->
    <!-- Purpose: Try to copy an attribute, via copy-of, before there is any element produced. -->
  
  <xsl:output method="xml" encoding="UTF-8"/>
  
  <xsl:template match="/">
    <xsl:copy-of select="doc/@*"/>
  </xsl:template>
  
  </xsl:stylesheet>
  
  
  1.1                  xml-xalan/test/tests/conf/copy/err/copyerr05.xml
  
  Index: copyerr05.xml
  ===================================================================
  <?xml version="1.0"?> 
  <doc top="gotcha"></doc>
  
  
  1.1                  xml-xalan/test/tests/conf/copy/err/copyerr04.xml
  
  Index: copyerr04.xml
  ===================================================================
  <?xml version="1.0"?> 
  <doc top="gotcha"></doc>
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-cvs-help@xml.apache.org