xalan-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dmars...@apache.org
Subject cvs commit: xml-xalan/test/tests/conferr/copyerr copyerr07.xsl copyerr06.xsl copyerr07.xml copyerr06.xml
Date Fri, 13 Sep 2002 15:26:38 GMT
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


Mime
View raw message