dmarston    01/12/21 11:13:37

  Modified:    test/tests/conf/copy copy31.xsl
  Added:       test/tests/conf/copy copy51.xsl copy51.xml
  Log:
  Add a new test (copy51) to cover a situation that copy31
  doesn't exactly cover.
  
  Revision  Changes    Path
  1.2       +1 -1      xml-xalan/test/tests/conf/copy/copy31.xsl
  
  Index: copy31.xsl
  ===================================================================
  RCS file: /home/cvs/xml-xalan/test/tests/conf/copy/copy31.xsl,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- copy31.xsl        2001/08/03 15:01:42     1.1
  +++ copy31.xsl        2001/12/21 19:13:37     1.2
  @@ -6,7 +6,7 @@
     <!-- DocVersion: 19991116 -->
     <!-- Section: 7.5 -->
     <!-- Creator: David Marston -->
  -  <!-- Purpose: Test for xsl:copy-of with nodeset. Shows handling of namespaces. -->
  +  <!-- Purpose: Test for xsl:copy with nodeset. Shows handling of namespaces. -->
   
   <xsl:template match="/">
     <out>
  
  
  
  1.1                  xml-xalan/test/tests/conf/copy/copy51.xsl
  
  Index: copy51.xsl
  ===================================================================
  <?xml version="1.0"?>
  <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
      xmlns:target="name-b"
      exclude-result-prefixes="target"
      version="1.0">
  
    <!-- FileName: copy51 -->
    <!-- Document: http://www.w3.org/TR/xslt -->
    <!-- DocVersion: 19991116 -->
    <!-- Section: 7.5 -->
    <!-- Creator: David Marston -->
    <!-- Purpose: Test for xsl:copy on namespaces referenced directly. -->
    <!-- Elaboration: while namespace::* will include the implied declaration for
      The XML Namespace, it's not appropriate to serialize it as an explicit 
declaration.
      XML output from here could be pipelined to some other process that wants the XML
      namespace to be implicit only. -->
  
  <xsl:output method="xml" encoding="UTF-8"/>
  
  <xsl:template match="/">
    <out>
      <xsl:apply-templates select=".//target:sub"/>
    </out>
  </xsl:template>
  
  <xsl:template match="target:sub">
    <xsl:for-each select="namespace::*">
      <xsl:sort select="local-name(.)"/>
      <xsl:copy/>
    </xsl:for-each>
  </xsl:template>
  
  </xsl:stylesheet>
  
  
  1.1                  xml-xalan/test/tests/conf/copy/copy51.xml
  
  Index: copy51.xml
  ===================================================================
  <?xml version="1.0"?>
  <a:root xmlns:a="name-a">
    <b:sub xmlns:b="name-b"/>
    <c:sub xmlns:c="name-c"/>
  </a:root>
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to