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...@locus.apache.org on 2000/12/16 00:01:23 UTC

cvs commit: xml-xalan/test/tests/conf/node node17.xsl node01.xsl node02.xml node02.xsl node03.xml node03.xsl node04.xml node04.xsl node05.xml node05.xsl node06.xml node06.xsl node07.xml node07.xsl node08.xml node08.xsl node09.xml node09.xsl node10.xml node10.xsl node11.xml node11.xsl node12.xml node12.xsl node13.xml node13.xsl node14.xml node14.xsl node15.xml node15.xsl node16.xml node16.xsl node17.xml node01.xml

dmarston    00/12/15 15:01:22

  Added:       test/tests/conf/node node17.xsl node01.xsl node02.xml
                        node02.xsl node03.xml node03.xsl node04.xml
                        node04.xsl node05.xml node05.xsl node06.xml
                        node06.xsl node07.xml node07.xsl node08.xml
                        node08.xsl node09.xml node09.xsl node10.xml
                        node10.xsl node11.xml node11.xsl node12.xml
                        node12.xsl node13.xml node13.xsl node14.xml
                        node14.xsl node15.xml node15.xsl node16.xml
                        node16.xsl node17.xml node01.xml
  Log:
  Copy of tests in Lotus/IBM repository
  
  Revision  Changes    Path
  1.1                  xml-xalan/test/tests/conf/node/node17.xsl
  
  Index: node17.xsl
  ===================================================================
  <?xml version="1.0"?>
  <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
  
    <!-- FileName: node17 -->
    <!-- Document: http://www.w3.org/TR/xpath -->
    <!-- DocVersion: 19991116 -->
    <!-- Section: 2.2 Axes-->
    <!-- Purpose: Test that 'namespace::node()' selects all namespaces. -->
  
  <xsl:template match="/">
    <out>
      <xsl:apply-templates/>
    </out>
  </xsl:template>
  
  <xsl:template match="doc">
    <xsl:for-each select="namespace::node()">
      <xsl:text>&#010;</xsl:text>
      <xsl:value-of select="name(.)"/>=<xsl:value-of select="."/><xsl:text>,</xsl:text>
    </xsl:for-each>
  </xsl:template>
  
  </xsl:stylesheet>
  
  
  
  1.1                  xml-xalan/test/tests/conf/node/node01.xsl
  
  Index: node01.xsl
  ===================================================================
  <?xml version="1.0"?> 
  <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
  
    <!-- FileName: NTST01 -->
    <!-- Document: http://www.w3.org/TR/xpath -->
    <!-- DocVersion: 19991116 -->
    <!-- Section: 2.3 -->
    <!-- Purpose: Test for text() node test. -->
  
  <!-- Should say "test" -->
  
  <xsl:template match="/doc">
    <out>
      <xsl:value-of select="./text()"/>
    </out>
  </xsl:template>
    
  <xsl:template match="text()">
    <xsl:value-of select="."/>
  </xsl:template>
   
  </xsl:stylesheet>
  
  
  
  1.1                  xml-xalan/test/tests/conf/node/node02.xml
  
  Index: node02.xml
  ===================================================================
  <?xml version="1.0"?> 
  <doc>
    <!-- This is a comment -->
  </doc>
  
  
  1.1                  xml-xalan/test/tests/conf/node/node02.xsl
  
  Index: node02.xsl
  ===================================================================
  <?xml version="1.0"?> 
  <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
  
    <!-- FileName: NTST02 -->
    <!-- Document: http://www.w3.org/TR/xpath -->
    <!-- DocVersion: 19991116 -->
    <!-- Section: 2.3 Node Tests -->
    <!-- Purpose: Test for comment() node test. -->
  
  <xsl:template match="/doc">
    <out>      
      <xsl:apply-templates select="./comment()"/>
    </out>
  </xsl:template>
    
  <xsl:template match="comment()">
    <xsl:text>Found-comment</xsl:text>
    <xsl:copy/>
  </xsl:template>
   
  </xsl:stylesheet>
  
  
  
  1.1                  xml-xalan/test/tests/conf/node/node03.xml
  
  Index: node03.xml
  ===================================================================
  <?xml version="1.0"?> 
  <?a-pi some data?>
  <doc>
    <!-- This is a comment -->
      test
  </doc>
  
  
  1.1                  xml-xalan/test/tests/conf/node/node03.xsl
  
  Index: node03.xsl
  ===================================================================
  <?xml version="1.0"?> 
  <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
  
    <!-- FileName: NTST03 -->
    <!-- Document: http://www.w3.org/TR/xpath -->
    <!-- DocVersion: 19991116 -->
    <!-- Section: 2.3 -->
    <!-- Purpose: Test for processing-instruction() node test. -->
  
  <!-- should say "Found-pi,,Found-pi" -->
  
  <xsl:template match="/">
    <out>
      <xsl:apply-templates select="./processing-instruction('a-pi')"/>
      <xsl:apply-templates select="./processing-instruction('*')"/>   
      <xsl:apply-templates select="./processing-instruction()"/>	
    </out>
  </xsl:template>
    
  <xsl:template match="processing-instruction('a-pi')">
    <xsl:text>Found-pi:</xsl:text>
    <xsl:value-of select="name()"/>
    <xsl:copy/>
  </xsl:template>
   
  </xsl:stylesheet>
  
  
  
  1.1                  xml-xalan/test/tests/conf/node/node04.xml
  
  Index: node04.xml
  ===================================================================
  <?xml version="1.0"?> 
  <doc xmlns:ns1="http://xsl.lotus.com/ns1"
       xmlns="http://xsl.lotus.com/ns2">
    <ns1:a attrib1="test"/>
    <b ns1:attrib2="test"/>
  </doc>
  
  
  1.1                  xml-xalan/test/tests/conf/node/node04.xsl
  
  Index: node04.xsl
  ===================================================================
  <?xml version="1.0"?> 
  <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"
                  xmlns:baz1="http://xsl.lotus.com/ns1"
                  xmlns:baz2="http://xsl.lotus.com/ns2">
  
    <!-- FileName: ntst04 -->
    <!-- Document: http://www.w3.org/TR/xpath -->
    <!-- DocVersion: 19991116 -->
    <!-- Section: 4.1 Node Set Functions  -->
    <!-- Purpose: Test of 'local-name()'  -->
  
  <xsl:template match="baz2:doc">
    <out>
      <xsl:value-of select="local-name(baz1:a)"/>
    </out>
  </xsl:template>
   
  </xsl:stylesheet>
  
  
  
  1.1                  xml-xalan/test/tests/conf/node/node05.xml
  
  Index: node05.xml
  ===================================================================
  <?xml version="1.0"?>
  <doc xmlns:ns1="http://xsl.lotus.com/ns1" 
       xmlns="http://xsl.lotus.com/ns2">
  <ns1:a attrib1="test"/>
  <b ns1:attrib2="test"/>
  </doc>
  
  
  1.1                  xml-xalan/test/tests/conf/node/node05.xsl
  
  Index: node05.xsl
  ===================================================================
  <?xml version="1.0"?> 
  
  <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"
                  xmlns:baz1="http://xsl.lotus.com/ns1"
                  xmlns:baz2="http://xsl.lotus.com/ns2">
  
    <!-- FileName: ntst05 -->
    <!-- Document: http://www.w3.org/TR/xpath -->
    <!-- DocVersion: 19991116 -->
    <!-- Section: 4.1 Node Set Functions  -->
    <!-- Purpose: Test of 'namespace-uri()'  -->
  
  <xsl:template match="baz2:doc">
    <out>
      <xsl:value-of select="namespace-uri(*)"/>
    </out>
  </xsl:template>
   
  </xsl:stylesheet>
  
  
  
  1.1                  xml-xalan/test/tests/conf/node/node06.xml
  
  Index: node06.xml
  ===================================================================
  <?xml version="1.0"?> 
  <doc xmlns:ns1="http://xsl.lotus.com/ns1"
       xmlns="http://xsl.lotus.com/ns2">
  <ns1:a attrib1="test"/>
  <b ns1:attrib2="test"/>
  </doc>
  
  
  1.1                  xml-xalan/test/tests/conf/node/node06.xsl
  
  Index: node06.xsl
  ===================================================================
  <?xml version="1.0"?> 
  
  <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"
                  xmlns:baz1="http://xsl.lotus.com/ns1"
                  xmlns:baz2="http://xsl.lotus.com/ns2">
  
    <!-- FileName: ntst06 -->
    <!-- Document: http://www.w3.org/TR/xpath -->
    <!-- DocVersion: 19991116 -->
    <!-- Section: 4.1 Node Set Functions  -->
    <!-- Purpose: Test of 'name()', without arguments  -->
  
  <xsl:template match="baz2:doc">
    <out>
      <xsl:value-of select="name()"/>
    </out>
  </xsl:template>
   
  </xsl:stylesheet>
  
  
  
  1.1                  xml-xalan/test/tests/conf/node/node07.xml
  
  Index: node07.xml
  ===================================================================
  <?xml version="1.0" ?>
  <doc>
  <a>1</a>
  <b>2</b>
  <c>3</c>
  </doc>
  
  
  1.1                  xml-xalan/test/tests/conf/node/node07.xsl
  
  Index: node07.xsl
  ===================================================================
  <?xml version="1.0"?>
  <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
  
    <!-- FileName: NTST07 -->
    <!-- Document: http://www.w3.org/TR/xpath -->
    <!-- DocVersion: 19991116 -->
    <!-- Section: 3 Data Model -->
    <!-- Purpose: Processing Instructions and comments within a stylesheet 
         are ignored. -->
  
  <?MyPI version="1.0"?>
  
  <xsl:template match="doc">
    <out>
    <?MyPI version="2.0"?>
    <!-- This template prints out 'Testing 1 2 3' -->
      <xsl:text>&#010;</xsl:text>
      <xsl:value-of select="'Testing '"/>
      <xsl:for-each select="*">
        <xsl:value-of select="."/><xsl:text> </xsl:text>		
        <?MyPI version="3.0"?>
      </xsl:for-each>
  
    <!-- This calls a named template -->
      <xsl:call-template name="ThatTemp">
        <xsl:with-param name="sam">quos</xsl:with-param>
        <?MyPI version="4.0"?>
      </xsl:call-template>
      <xsl:text>&#010;</xsl:text>
    </out>
  </xsl:template>
  
  <!-- This is the named template that is called from above -->
  <xsl:template name="ThatTemp">
    <xsl:param name="sam">bo</xsl:param>
    <?MyPI version="5.0"?>
    <xsl:copy-of select="$sam"/>
  </xsl:template>
  
  </xsl:stylesheet>
  
  
  
  1.1                  xml-xalan/test/tests/conf/node/node08.xml
  
  Index: node08.xml
  ===================================================================
  <?xml version="1.0"?>
  <docs xmlns:ped="http:\\www.ped.com"><?MyPI DoesNothing ?><!-- This is a big tree containing all letters of the alphabet -->
  <a attr1="This should not be seen">A</a>
  <b><c attr1="tsnbs" attr2="tsnbs">B-C</c>
  <d><e><f>TextNode_between_F_and_G
  <g><h><i><j><k><l><m><n><o><p><q><r><s><t><u><v><w><x><y><z><Yahoo>Yahoo</Yahoo>
  </z></y></x></w></v></u></t></s></r></q></p></o></n></m></l></k></j></i></h>SecondNode_after_H</g></f></e></d></b>
  </docs>
  
  
  1.1                  xml-xalan/test/tests/conf/node/node08.xsl
  
  Index: node08.xsl
  ===================================================================
  <?xml version="1.0"?> 
  <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
  
    <!-- FileName: ntst08 -->
    <!-- Document: http://www.w3.org/TR/xpath -->
    <!-- DocVersion: 19991116 -->
    <!-- Section: 5.1 Root Node. -->
    <!-- Purpose: String value of the root node is the concatenation of the string
         values of all text node descendants of the root node in document order. -->
  
  <xsl:template match="/">
  <root>
  	<xsl:value-of select="."/>
  </root>
  </xsl:template>
  
  </xsl:stylesheet>
  
  
  1.1                  xml-xalan/test/tests/conf/node/node09.xml
  
  Index: node09.xml
  ===================================================================
  <?xml version="1.0"?> 
  <doc>
    <!-- This is a comment -->
    Random content
  </doc>
  
  
  1.1                  xml-xalan/test/tests/conf/node/node09.xsl
  
  Index: node09.xsl
  ===================================================================
  <?xml version="1.0"?> 
  <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
  
    <!-- FileName: NTST09 -->
    <!-- Document: http://www.w3.org/TR/xpath -->
    <!-- DocVersion: 19991116 -->
    <!-- Section: 2.3 Nodes Tests -->
    <!-- Purpose: Test for value-of with comment() node test. -->
  
  <xsl:template match="/doc">
    <out>      
      <xsl:apply-templates select="./comment()"/>
    </out>
  </xsl:template>
    
  <xsl:template match="comment()">
    <xsl:value-of select="."/>
  </xsl:template>
   
  </xsl:stylesheet>
  
  
  
  1.1                  xml-xalan/test/tests/conf/node/node10.xml
  
  Index: node10.xml
  ===================================================================
  <?xml version="1.0"?> 
  <?a-pi some data?>
  <doc>
    <!-- This is a comment -->
    test
  </doc>
  
  
  1.1                  xml-xalan/test/tests/conf/node/node10.xsl
  
  Index: node10.xsl
  ===================================================================
  <?xml version="1.0"?> 
  <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
  
    <!-- FileName: NTST10 -->
    <!-- Document: http://www.w3.org/TR/xpath -->
    <!-- DocVersion: 19991116 -->
    <!-- Section: 2.3 -->
    <!-- Purpose: Test for value-of with processing-instruction() node test. -->
  
  <xsl:template match="/">
    <out>
      <xsl:apply-templates select="./processing-instruction()"/>	
    </out>
  </xsl:template>
    
  <xsl:template match="processing-instruction()">
    <xsl:text>Found-pi...</xsl:text>
    <xsl:value-of select="."/>
  </xsl:template>
   
  </xsl:stylesheet>
  
  
  
  1.1                  xml-xalan/test/tests/conf/node/node11.xml
  
  Index: node11.xml
  ===================================================================
  <?xml version="1.0"?> 
  <doc att="top">
    <?a-pi some data?>
    <!-- This is the 1st comment -->
    text-in-doc
    <inner blat="blob">
      inner-text
      <!-- This is the 2nd comment -->
      <sub>subtext</sub>
    </inner>
    text-in-doc2
  </doc>
  
  
  1.1                  xml-xalan/test/tests/conf/node/node11.xsl
  
  Index: node11.xsl
  ===================================================================
  <?xml version="1.0"?> 
  <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
  
    <!-- FileName: NTST11 -->
    <!-- Document: http://www.w3.org/TR/xpath -->
    <!-- DocVersion: 19991116 -->
    <!-- Section: 2.3 -->
    <!-- Purpose: Test for node tests in match patterns. -->
  
  <!-- Should say "test" -->
  
  <xsl:template match="/doc">
    <out>
      <xsl:apply-templates select="*|@*|comment()|processing-instruction()|text()"/>
    </out>
  </xsl:template>
  
  <xsl:template match="*"><!-- for child elements -->
    <xsl:text>E:</xsl:text><xsl:value-of select="name()"/>
    <xsl:apply-templates select="@*"/>
    <xsl:apply-templates/>
    <xsl:text>
  </xsl:text>
  </xsl:template>
  
  <xsl:template match="@*">
    <xsl:text>A:</xsl:text><xsl:value-of select="name()"/>
  </xsl:template>
  
  <xsl:template match="text()">
    <xsl:text>T:</xsl:text><xsl:value-of select="."/>
  </xsl:template>
  
  <xsl:template match="comment()">
    <xsl:text>C:</xsl:text><xsl:value-of select="."/>
  </xsl:template>
  
  <xsl:template match="processing-instruction()">
    <xsl:text>P:</xsl:text><xsl:value-of select="name()"/>
  </xsl:template>
  
  </xsl:stylesheet>
  
  
  
  1.1                  xml-xalan/test/tests/conf/node/node12.xml
  
  Index: node12.xml
  ===================================================================
  <?xml version="1.0"?> 
  <doc att="top">
    <?mypi some data?>
    <!-- This is the 1st comment -->
    text-in-doc
    <inner blat="blob">
      inner-text
      <!-- This is the 2nd comment -->
      <sub>subtext</sub>
    </inner>
    text-in-doc2
    <inner2 blat="bar">
      <sub>subtext</sub>final-text
    </inner2>
  </doc>
  
  
  1.1                  xml-xalan/test/tests/conf/node/node12.xsl
  
  Index: node12.xsl
  ===================================================================
  <?xml version="1.0"?> 
  <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
  
    <!-- FileName: NTST12 -->
    <!-- Document: http://www.w3.org/TR/xpath -->
    <!-- DocVersion: 19991116 -->
    <!-- Section: 2.3 -->
    <!-- Purpose: Test for node tests in select in for-each. -->
  
  <!-- Should say "test" -->
  
  <xsl:template match="/doc">
    <out>
      <xsl:text>ATTRIBUTES:</xsl:text>
      <xsl:for-each select="@*">
        <xsl:text>A-</xsl:text><xsl:value-of select="name()"/>
      </xsl:for-each>
      <xsl:text>
  TEXT:</xsl:text>
      <xsl:for-each select="text()">
        <xsl:text>T-</xsl:text><xsl:value-of select="."/>
      </xsl:for-each>
      <xsl:text>
  COMMENTS:</xsl:text>
      <xsl:for-each select="comment()">
        <xsl:text>C-</xsl:text><xsl:value-of select="."/>
      </xsl:for-each>
      <xsl:text>
  PIs:</xsl:text>
      <xsl:for-each select="processing-instruction()">
        <xsl:text>P-</xsl:text><xsl:value-of select="name()"/>
      </xsl:for-each>
      <xsl:text>
  CHILDREN:</xsl:text>
      <xsl:for-each select="*">
        <xsl:text>E-</xsl:text><xsl:value-of select="name()"/><xsl:text>
  </xsl:text>
        <xsl:apply-templates select="@*"/>
        <xsl:apply-templates/>
        <xsl:text>--End of child </xsl:text><xsl:value-of select="name()"/><xsl:text>
  </xsl:text>
      </xsl:for-each>
    </out>
  </xsl:template>
  
  <xsl:template match="*"><!-- for child elements -->
    <xsl:text>E:</xsl:text><xsl:value-of select="name()"/>
    <xsl:apply-templates select="@*"/>
    <xsl:apply-templates/>
    <xsl:text>
  </xsl:text>
  </xsl:template>
  
  <xsl:template match="@*">
    <xsl:text>A:</xsl:text><xsl:value-of select="name()"/>
  </xsl:template>
  
  <xsl:template match="text()">
    <xsl:text>T:</xsl:text><xsl:value-of select="."/>
  </xsl:template>
  
  <xsl:template match="comment()">
    <xsl:text>C:</xsl:text><xsl:value-of select="."/>
  </xsl:template>
  
  <xsl:template match="processing-instruction()">
    <xsl:text>P:</xsl:text><xsl:value-of select="name()"/>
  </xsl:template>
  
  </xsl:stylesheet>
  
  
  
  1.1                  xml-xalan/test/tests/conf/node/node13.xml
  
  Index: node13.xml
  ===================================================================
  <?xml version="1.0"?> 
  <!-- First comment -->
  <doc>
    <!-- Second comment -->
  </doc>
  <!-- Third comment -->
  
  
  1.1                  xml-xalan/test/tests/conf/node/node13.xsl
  
  Index: node13.xsl
  ===================================================================
  <?xml version="1.0"?> 
  <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
  
    <!-- FileName: NTST13 -->
    <!-- Document: http://www.w3.org/TR/xpath -->
    <!-- DocVersion: 19991116 -->
    <!-- Section: 5.1 Root node -->
    <!-- Purpose: Test for access to comments hanging off the root. -->
  
  <xsl:template match="/">
    <out>
      <xsl:text>
  Comments on the root node:</xsl:text>
      <xsl:for-each select="comment()">
        <xsl:text>
  </xsl:text><xsl:value-of select="."/>
      </xsl:for-each>
      <xsl:text>
  </xsl:text>
    </out>
  </xsl:template>
  
  </xsl:stylesheet>
  
  
  
  1.1                  xml-xalan/test/tests/conf/node/node14.xml
  
  Index: node14.xml
  ===================================================================
  <?xml version="1.0"?> 
  <?a-pi some data?>
  <doc>
    <?b-pi some data?>
  </doc>
  <?c-pi some data?>
  
  
  1.1                  xml-xalan/test/tests/conf/node/node14.xsl
  
  Index: node14.xsl
  ===================================================================
  <?xml version="1.0"?> 
  <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
  
    <!-- FileName: NTST14 -->
    <!-- Document: http://www.w3.org/TR/xpath -->
    <!-- DocVersion: 19991116 -->
    <!-- Section: 5.1 Root node -->
    <!-- Purpose: Test for access to PIs hanging off the root. -->
  
  <xsl:template match="/">
    <out>
      <xsl:text>
  Root-level processing instructions:</xsl:text>
      <xsl:for-each select="processing-instruction()">
        <xsl:text>
  </xsl:text><xsl:value-of select="name()"/>
      </xsl:for-each>
      <xsl:text>
  </xsl:text>
    </out>
  </xsl:template>
  
  </xsl:stylesheet>
  
  
  
  1.1                  xml-xalan/test/tests/conf/node/node15.xml
  
  Index: node15.xml
  ===================================================================
  <?xml version="1.0"?> 
  <doc att="top">
    <?a-pi some data?>
    <!-- This is the 1st comment -->
    text-in-doc
    <inner blat="blob">
      inner-text
      <!-- This is the 2nd comment -->
      <sub>subtext</sub>
    </inner>
    text-in-doc2
  </doc>
  
  
  1.1                  xml-xalan/test/tests/conf/node/node15.xsl
  
  Index: node15.xsl
  ===================================================================
  <?xml version="1.0"?>
  <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
  
    <!-- FileName: NTST15 -->
    <!-- Document: http://www.w3.org/TR/xpath -->
    <!-- DocVersion: 19991116 -->
    <!-- Section: 2.3 -->
    <!-- AdditionalSpec: XSLT 5.2 -->
    <!-- Purpose: Test for node() in match patterns. Default axis is child. -->
  
  <xsl:template match="/doc">
    <out>
      <xsl:apply-templates select="*|@*|comment()|processing-instruction()|text()"/>
    </out>
  </xsl:template>
  
  <xsl:template match="node()">
    <xsl:text>N-</xsl:text>
    <xsl:choose>
      <xsl:when test="name(.)!=''">
        <xsl:text>named:</xsl:text><xsl:value-of select="name()"/><xsl:text>...</xsl:text>
      </xsl:when>
      <xsl:when test=".!=''">
        <xsl:text>content:</xsl:text><xsl:value-of select="."/>
      </xsl:when>
      <xsl:otherwise>
        <xsl:text>UNKNOWN</xsl:text>
      </xsl:otherwise>
    </xsl:choose>
    <xsl:apply-templates select="@*"/>
    <xsl:apply-templates/>
    <xsl:text>,
  </xsl:text>
  </xsl:template>
  
  <xsl:template match="attribute::*" priority="-1">
    <xsl:text>A:</xsl:text><xsl:value-of select="name()"/>
    <xsl:text>
    </xsl:text>
  </xsl:template>
  
  <xsl:template match="text()" priority="-2"><!-- Override built-in template -->
    <xsl:text>Incorrect text match:</xsl:text><xsl:value-of select="."/>
  </xsl:template>
  
  </xsl:stylesheet>
  
  
  
  1.1                  xml-xalan/test/tests/conf/node/node16.xml
  
  Index: node16.xml
  ===================================================================
  <?xml version="1.0"?> 
  <far-north>
    <north>
      <near-north>
        <far-west/>
        <west/>
        <near-west/>
        <center center-attr-1="c1" center-attr-2="c2" center-attr-3="c3">
          <near-south>
            <south>
              <far-south/>
            </south>
          </near-south>
        </center>
        <near-east/>
        <east/>
        <far-east/>
      </near-north>
    </north>
  </far-north>
  
  
  
  1.1                  xml-xalan/test/tests/conf/node/node16.xsl
  
  Index: node16.xsl
  ===================================================================
  <?xml version="1.0"?> 
  <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
  
    <!-- FileName: axes60 -->
    <!-- Document: http://www.w3.org/TR/xpath -->
    <!-- DocVersion: 19991116 -->
    <!-- Section: 2.2 -->
    <!-- Purpose: Test for 'attribute::*' in match pattern. -->
  
  <xsl:template match="/">
    <out>
      <xsl:for-each select="//center">
        <xsl:apply-templates select="attribute::*"/>
      </xsl:for-each>
    </out>
  </xsl:template>
    
  <xsl:template match="attribute::*">
    <xsl:value-of select="name(.)"/><xsl:text> </xsl:text>
  </xsl:template>
   
  </xsl:stylesheet>
  
  
  
  1.1                  xml-xalan/test/tests/conf/node/node17.xml
  
  Index: node17.xml
  ===================================================================
  <?xml version="1.0"?>
  <docs>
    <doc x="x" y="y" z="z"
      xmlns:ext="http://somebody.elses.extension"
      xmlns:java="http://xml.apache.org/xslt/java"
      xmlns:ped="http://tester.com"
      xmlns:bdd="http://buster.com"
      xmlns:jad="http://administrator.com"/>
  </docs>
  
  
  1.1                  xml-xalan/test/tests/conf/node/node01.xml
  
  Index: node01.xml
  ===================================================================
  <?xml version="1.0"?> 
  <doc>
    test
  </doc>