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 2002/09/13 17:26:38 UTC

cvs commit: xml-xalan/test/tests/conferr/copyerr copyerr07.xsl copyerr06.xsl copyerr07.xml copyerr06.xml

dmarston    2002/09/13 08:26:38

  Added:       test/tests/conferr/copyerr copyerr07.xsl copyerr06.xsl
                        copyerr07.xml copyerr06.xml
  Log:
  Illegal placement of an attribute via copy or copy-of should get
  the same error as illegal placement via xsl:attribute.
  
  Revision  Changes    Path
  1.1                  xml-xalan/test/tests/conferr/copyerr/copyerr07.xsl
  
  Index: copyerr07.xsl
  ===================================================================
  <?xml version="1.0"?>
  <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
  
    <!-- FileName: COPYerr07 -->
    <!-- Document: http://www.w3.org/TR/xslt -->
    <!-- DocVersion: 19991116 -->
    <!-- Section: 11.3 -->
    <!-- Creator: David Marston -->
    <!-- ExpectedException: Attempt to write an attribute after child element -->
    <!-- Purpose: Try to copy an attribute, via copy, after child element. -->
  
  <xsl:output method="xml" encoding="UTF-8"/>
  
  <xsl:template match="/">
    <out>
      <child/>
      <xsl:apply-templates select="doc/@*"/>
    </out>
  </xsl:template>
  
  <xsl:template match="@*">
    <xsl:copy/>
  </xsl:template>
  
  </xsl:stylesheet>
  
  
  1.1                  xml-xalan/test/tests/conferr/copyerr/copyerr06.xsl
  
  Index: copyerr06.xsl
  ===================================================================
  <?xml version="1.0"?>
  <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
  
    <!-- FileName: COPYerr06 -->
    <!-- Document: http://www.w3.org/TR/xslt -->
    <!-- DocVersion: 19991116 -->
    <!-- Section: 11.3 -->
    <!-- Creator: David Marston -->
    <!-- ExpectedException: Attempt to write an attribute after child element -->
    <!-- Purpose: Try to copy an attribute, via copy-of, after child element. -->
  
  <xsl:output method="xml" encoding="UTF-8"/>
  
  <xsl:template match="/">
    <out>
      <child/>
      <xsl:copy-of select="doc/@*"/>
    </out>
  </xsl:template>
  
  </xsl:stylesheet>
  
  
  1.1                  xml-xalan/test/tests/conferr/copyerr/copyerr07.xml
  
  Index: copyerr07.xml
  ===================================================================
  <?xml version="1.0"?> 
  <doc top="gotcha"></doc>
  
  
  1.1                  xml-xalan/test/tests/conferr/copyerr/copyerr06.xml
  
  Index: copyerr06.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