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/15 20:58:18 UTC

cvs commit: xml-xalan/test/tests/conf/conflictres l.xsl conflictres01.xsl conflictres02.xml conflictres02.xsl conflictres03.xml conflictres03.xsl conflictres04.xml conflictres04.xsl conflictres05.xml conflictres05.xsl conflictres06.xml conflictres06.xsl conflictres07.xml conflictres07.xsl conflictres08.xml conflictres08.xsl conflictres09.xml conflictres09.xsl conflictres10.xml conflictres10.xsl conflictres11.xml conflictres11.xsl conflictres12.xml conflictres12.xsl conflictres13.xml conflictres13.xsl conflictres14.xml conflictres14.xsl conflictres15.xml conflictres15.xsl conflictres16.xml conflictres16.xsl conflictres17.xml conflictres17.xsl conflictres18.xml conflictres18.xsl conflictres19.xml conflictres19.xsl conflictres20.xml conflictres20.xsl conflictres21.xml conflictres21.xsl conflictres22.xml conflictres22.xsl conflictres23.xml conflictres23.xsl conflictres24.xml conflictres24.xsl k.xsl conflictres01.xml

dmarston    00/12/15 11:58:18

  Added:       test/tests/conf/conflictres l.xsl conflictres01.xsl
                        conflictres02.xml conflictres02.xsl
                        conflictres03.xml conflictres03.xsl
                        conflictres04.xml conflictres04.xsl
                        conflictres05.xml conflictres05.xsl
                        conflictres06.xml conflictres06.xsl
                        conflictres07.xml conflictres07.xsl
                        conflictres08.xml conflictres08.xsl
                        conflictres09.xml conflictres09.xsl
                        conflictres10.xml conflictres10.xsl
                        conflictres11.xml conflictres11.xsl
                        conflictres12.xml conflictres12.xsl
                        conflictres13.xml conflictres13.xsl
                        conflictres14.xml conflictres14.xsl
                        conflictres15.xml conflictres15.xsl
                        conflictres16.xml conflictres16.xsl
                        conflictres17.xml conflictres17.xsl
                        conflictres18.xml conflictres18.xsl
                        conflictres19.xml conflictres19.xsl
                        conflictres20.xml conflictres20.xsl
                        conflictres21.xml conflictres21.xsl
                        conflictres22.xml conflictres22.xsl
                        conflictres23.xml conflictres23.xsl
                        conflictres24.xml conflictres24.xsl k.xsl
                        conflictres01.xml
  Log:
  Copy of tests in Lotus/IBM repository
  
  Revision  Changes    Path
  1.1                  xml-xalan/test/tests/conf/conflictres/l.xsl
  
  Index: l.xsl
  ===================================================================
  <?xml version="1.0"?>
  <jad:transform xmlns:jad="http://www.w3.org/1999/XSL/Transform" version="1.0">
  <jad:output method="xml"/>
  
    <!-- FileName: l -->
    <!-- Document: http://www.w3.org/TR/xpath -->
    <!-- DocVersion: 19991116 -->
    <!-- Section: 2.1 XSLT Namespace. -->
    <!-- Purpose: Included by other tests.  -->
  
  <jad:template match="doc" priority="1.0">
    <out>
      <jad:value-of select="'In Include: Testing '"/>
      <jad:for-each select="*">
        <jad:value-of select="."/><jad:text> </jad:text>		
      </jad:for-each>
    </out>
  </jad:template>
  
  </jad:transform>
  
  
  1.1                  xml-xalan/test/tests/conf/conflictres/conflictres01.xsl
  
  Index: conflictres01.xsl
  ===================================================================
  <?xml version="1.0"?>
  <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
  
    <!-- FileName: conflictres01 -->
    <!-- Document: http://www.w3.org/TR/xslt -->
    <!-- DocVersion: 19991116 -->
    <!-- Section: 5.5 -->
    <!-- Creator: Paul Dick -->
    <!-- Purpose: Test match of element name. -->
  
  <xsl:template match="doc">
    <out>
      <xsl:apply-templates select="foo"/>
    </out>
  </xsl:template>
  
  <xsl:template match="foo">
    <xsl:text>Match-of-qualified-name</xsl:text>
  </xsl:template>
  
  <xsl:template match="*">
    <xsl:text>Match-of-wildcard</xsl:text>
  </xsl:template>
  
  <xsl:template match="node()">
    <xsl:text>Match-of-node-type</xsl:text>
  </xsl:template>
  
  </xsl:stylesheet>
  
  
  
  1.1                  xml-xalan/test/tests/conf/conflictres/conflictres02.xml
  
  Index: conflictres02.xml
  ===================================================================
  <?xml version="1.0"?>
  <doc>
    <foo test="true"/>
  </doc>
  
  
  1.1                  xml-xalan/test/tests/conf/conflictres/conflictres02.xsl
  
  Index: conflictres02.xsl
  ===================================================================
  <?xml version="1.0"?>
  <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
  
    <!-- FileName: conflictres02 -->
    <!-- Document: http://www.w3.org/TR/xslt -->
    <!-- DocVersion: 19991116 -->
    <!-- Section: 5.5 -->
    <!-- Purpose: Test for conflict resolution on wildcard names. -->
    <!-- Creator: Paul Dick -->
    <!-- Should see 1 conflict warning -->
  
  <xsl:template match="doc">
    <out>
      <xsl:apply-templates select="foo"/>
    </out>
  </xsl:template>
  
  <xsl:template match="node()">
    <xsl:text>Match-of-node-type</xsl:text>
  </xsl:template>
  
  <xsl:template match="*">
    <xsl:text>Match-of-wildcard</xsl:text>
  </xsl:template>
  
  </xsl:stylesheet>
  
  
  
  1.1                  xml-xalan/test/tests/conf/conflictres/conflictres03.xml
  
  Index: conflictres03.xml
  ===================================================================
  <?xml version="1.0"?>
  <doc>
    <foo test="true"/>
  </doc>
  
  
  1.1                  xml-xalan/test/tests/conf/conflictres/conflictres03.xsl
  
  Index: conflictres03.xsl
  ===================================================================
  <?xml version="1.0"?>
  <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
  
    <!-- FileName: conflictres03 -->
    <!-- Document: http://www.w3.org/TR/xslt -->
    <!-- DocVersion: 19991116 -->
    <!-- Section: 5.5 -->
    <!-- Purpose: Test for conflict resolution - nodetype. -->
    <!-- Creator: Paul Dick -->
    <!-- should see 1 conflict warning -->
  
  <xsl:template match="doc">
    <out>
      <xsl:apply-templates select="foo"/>
    </out>
  </xsl:template>
  
  <xsl:template match="*">
    <xsl:text>Match-of-wildcard</xsl:text>
  </xsl:template>
  
  <xsl:template match="node()">
    <xsl:text>Match-of-node-type</xsl:text>
  </xsl:template>
  
  </xsl:stylesheet>
  
  
  
  1.1                  xml-xalan/test/tests/conf/conflictres/conflictres04.xml
  
  Index: conflictres04.xml
  ===================================================================
  <?xml version="1.0"?> 
  <doc>
  	<foo test="true"/>
  </doc>
  
  
  1.1                  xml-xalan/test/tests/conf/conflictres/conflictres04.xsl
  
  Index: conflictres04.xsl
  ===================================================================
  <?xml version="1.0"?>
  <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
  
    <!-- FileName: conflictres04 -->
    <!-- Document: http://www.w3.org/TR/xslt -->
    <!-- DocVersion: 19991116 -->
    <!-- Section: 5.6 -->
    <!-- Purpose: Test for nodetest override of default priority. Also, node selected is attribute instead of element. -->
    <!-- Creator: Paul Dick -->
    <!-- No conflict warnings should be seen. -->
  
  <xsl:template match="doc" priority="10">
    <out>
      <xsl:apply-templates select="foo/@test"/>
    </out>
  </xsl:template>
  
  <xsl:template match="foo">
    <xsl:text>Match-of-qualified-name</xsl:text>
  </xsl:template>
  
  <xsl:template match="*">
    <xsl:text>Match-of-wildcard</xsl:text>
  </xsl:template>
  
  <xsl:template match="node()" priority="1">
    <xsl:text>Match-of-node-type</xsl:text>
  </xsl:template>
  
  </xsl:stylesheet>
  
  
  
  1.1                  xml-xalan/test/tests/conf/conflictres/conflictres05.xml
  
  Index: conflictres05.xml
  ===================================================================
  <?xml version="1.0"?>
  <doc>
    <foo test="true"/>
  </doc>
  
  
  1.1                  xml-xalan/test/tests/conf/conflictres/conflictres05.xsl
  
  Index: conflictres05.xsl
  ===================================================================
  <?xml version="1.0"?>
  <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
  
    <!-- FileName: conflictres05 -->
    <!-- Document: http://www.w3.org/TR/xslt -->
    <!-- DocVersion: 19991116 -->
    <!-- Section: 5.5 -->
    <!-- Creator: Paul Dick -->
    <!-- Purpose: Test for conflict resolution between simple and non-simple node patterns. -->
  
    <!-- No conflict warnings should be seen. -->	       
  <!-- May be obsolete; wording of spec has changed. -->
  
  <xsl:template match="doc">
    <out>
      <xsl:apply-templates select="foo"/>
    </out>
  </xsl:template>
  
  <xsl:template match="doc/foo">
    <xsl:text>Match of non-simple '/'</xsl:text>
  </xsl:template>
  
  <xsl:template match="foo">
    <xsl:text>Match-of-qualified-name</xsl:text>
  </xsl:template>
  
  <xsl:template match="*">
    <xsl:text>Match-of-wildcard</xsl:text>
  </xsl:template>
  
  <xsl:template match="node()">
    <xsl:text>Match-of-node-type</xsl:text>
  </xsl:template>
  
  </xsl:stylesheet>
  
  
  
  1.1                  xml-xalan/test/tests/conf/conflictres/conflictres06.xml
  
  Index: conflictres06.xml
  ===================================================================
  <?xml version="1.0"?> 
  <doc>
    <file test="true"/>
    <file test="false"/>
  </doc>
  
  
  1.1                  xml-xalan/test/tests/conf/conflictres/conflictres06.xsl
  
  Index: conflictres06.xsl
  ===================================================================
  <?xml version="1.0"?>
  <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
  
    <!-- FileName: conflictres06 -->
    <!-- Document: http://www.w3.org/TR/xslt -->
    <!-- DocVersion: 19991116 -->
    <!-- Section: 5.5 -->
    <!-- Purpose: Test for conflict resolution on a predicate -->
    <!-- Creator: Paul Dick -->
    <!-- No conflict warnings should be seen. -->
  
  <xsl:template match="doc">
    <out>
      <xsl:apply-templates select="file"/>
    </out>
  </xsl:template>
  
  <xsl:template match="file[@test='false']"><!-- default priority is 0.5 -->
    <xsl:text>Match-predicated-node-name</xsl:text>
  </xsl:template>
  
  <xsl:template match="file"><!-- default priority is 0 -->
    <xsl:text>Match-on-node-name,</xsl:text>
  </xsl:template>
  
  <xsl:template match="*">
    <xsl:text>Match-of-wildcard,</xsl:text>
  </xsl:template>
  
  <xsl:template match="node()">
    <xsl:text>Match-of-node,</xsl:text>
  </xsl:template>
  
  </xsl:stylesheet>
  
  
  
  1.1                  xml-xalan/test/tests/conf/conflictres/conflictres07.xml
  
  Index: conflictres07.xml
  ===================================================================
  <?xml version="1.0"?> 
  <doc>
    <foo test="true"/>
  </doc>
  
  
  1.1                  xml-xalan/test/tests/conf/conflictres/conflictres07.xsl
  
  Index: conflictres07.xsl
  ===================================================================
  <?xml version="1.0"?>
  <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
  
    <!-- FileName: conflictres07 -->
    <!-- Document: http://www.w3.org/TR/xslt -->
    <!-- DocVersion: 19991116 -->
    <!-- Section: 5.5 -->
    <!-- Purpose: Test for conflict resolution with 2 non-simple patterns (predicate and '/') -->
    <!-- Creator: Paul Dick -->
    <!-- 1 conflict warning should be seen. -->
    <!-- Should say "Match of non-simple '/'" -->
  
  <xsl:template match="doc">
    <out> 
      <xsl:apply-templates select="foo"/>
    </out>
  </xsl:template>
  
  <xsl:template match="foo[@test]">
    <xsl:text>Match-of-non-simple '[...]'</xsl:text>
  </xsl:template>
  
  <xsl:template match="doc/foo">
    <xsl:text>Match-of-non-simple '/'</xsl:text>
  </xsl:template>
  
  <xsl:template match="foo">
    <xsl:text>Match-of-qualified-name</xsl:text>
  </xsl:template>
  
  <xsl:template match="*">
    <xsl:text>Match-of-wildcard</xsl:text>
  </xsl:template>
  
  <xsl:template match="node()">
    <xsl:text>Match-of-node-type</xsl:text>
  </xsl:template>
  
  </xsl:stylesheet>
  
  
  
  1.1                  xml-xalan/test/tests/conf/conflictres/conflictres08.xml
  
  Index: conflictres08.xml
  ===================================================================
  <?xml version="1.0"?>
  <doc>
    <foo test="true"/>
  </doc>
  
  
  1.1                  xml-xalan/test/tests/conf/conflictres/conflictres08.xsl
  
  Index: conflictres08.xsl
  ===================================================================
  <?xml version="1.0"?>
  <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
  
    <!-- FileName: conflictres08 -->
    <!-- Document: http://www.w3.org/TR/xslt -->
    <!-- DocVersion: 19991116 -->
    <!-- Section: 5.5 -->
    <!-- Purpose: Test for conflict resolution with 2 non-simple patterns ('/' and predicate) -->
    <!-- Creator: Paul Dick -->
    <!-- 1 conflict warning should be seen. -->
    <!-- Should say "Match of non-simple '[...]'" -->
  
  <xsl:template match="doc">
    <out>
      <xsl:apply-templates select="foo"/>
    </out>
  </xsl:template>
  
  <xsl:template match="doc/foo">
    <xsl:text>Match-of-non-simple '/'</xsl:text>
  </xsl:template>
  
  <xsl:template match="foo[@test]">
    <xsl:text>Match-of-non-simple '[...]'</xsl:text>
  </xsl:template>
  
  <xsl:template match="foo">
    <xsl:text>Match-of-qualified-name</xsl:text>
  </xsl:template>
  
  <xsl:template match="*">
    <xsl:text>Match-of-wildcard</xsl:text>
  </xsl:template>
  
  <xsl:template match="node()">
    <xsl:text>Match-of-node-type</xsl:text>
  </xsl:template>
  
  </xsl:stylesheet>
  
  
  
  1.1                  xml-xalan/test/tests/conf/conflictres/conflictres09.xml
  
  Index: conflictres09.xml
  ===================================================================
  <?xml version="1.0" ?>
  <doc>
  <a>1</a>
  <b>2</b>
  <c>3</c>
  </doc>
  
  
  1.1                  xml-xalan/test/tests/conf/conflictres/conflictres09.xsl
  
  Index: conflictres09.xsl
  ===================================================================
  <?xml version="1.0"?>
  <ped:transform xmlns:ped="http://www.w3.org/1999/XSL/Transform" version="1.0">
  
    <!-- FileName: conflictres09 -->
    <!-- Document: http://www.w3.org/TR/xpath -->
    <!-- DocVersion: 19991116 -->
    <!-- Section: 5.5 Conflict Resolution for Template rules. -->
    <!-- Creator: Paul Dick -->
    <!-- Purpose: Verify that template with higher priority executes, and that
    	   one with a lower import precedence does not. -->
  
  <ped:import href="k.xsl"/>
  <ped:include href="l.xsl"/>
  <ped:output method="xml"/>
  
  <ped:template match="doc">
    <out>
      <ped:value-of select="'Testing '"/>
      <ped:for-each select="*">
        <ped:value-of select="."/><ped:text> </ped:text>		
      </ped:for-each>
    </out>
  </ped:template>
  
  </ped:transform>
  
  
  
  1.1                  xml-xalan/test/tests/conf/conflictres/conflictres10.xml
  
  Index: conflictres10.xml
  ===================================================================
  <?xml version="1.0"?>
  <doc>
    <a/>
  </doc>
  
  
  1.1                  xml-xalan/test/tests/conf/conflictres/conflictres10.xsl
  
  Index: conflictres10.xsl
  ===================================================================
  <?xml version="1.0"?>
  <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
  
    <!-- FileName: conflictres10 -->
    <!-- Document: http://www.w3.org/TR/xslt -->
    <!-- DocVersion: 19991116 -->
    <!-- Section: 5.5 -->
    <!-- Creator: David Marston -->
    <!-- Purpose: Test that second instance of template wins. -->
  
  <xsl:template match="doc">
    <out>
      <xsl:apply-templates/>
    </out>
  </xsl:template>
  
  <xsl:template match="*">
    <xsl:text>First Match-of-wildcard</xsl:text>
  </xsl:template>
  
  <xsl:template match="*">
    <xsl:text>Second Match-of-wildcard</xsl:text>
  </xsl:template>
  
  </xsl:stylesheet>
  
  
  1.1                  xml-xalan/test/tests/conf/conflictres/conflictres11.xml
  
  Index: conflictres11.xml
  ===================================================================
  <?xml version="1.0"?>
  <doc><foo>text-in-foo</foo></doc>
  
  
  1.1                  xml-xalan/test/tests/conf/conflictres/conflictres11.xsl
  
  Index: conflictres11.xsl
  ===================================================================
  <?xml version="1.0"?>
  <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
  
    <!-- FileName: conflictres11 -->
    <!-- Document: http://www.w3.org/TR/xslt -->
    <!-- DocVersion: 19991116 -->
    <!-- Section: 5.5 -->
    <!-- Creator: David Marston -->
    <!-- Purpose: Test for conflict resolution - two different node tests. -->
    <!-- should see 1 conflict warning -->
  
  <xsl:template match="doc">
    <out>
      <xsl:apply-templates/>
    </out>
  </xsl:template>
  
  <xsl:template match="node()">
    <xsl:text>Match-of-node,</xsl:text>
    <xsl:apply-templates/>
  </xsl:template>
  
  <xsl:template match="text()">
    <xsl:text>Match-of-text,</xsl:text>
    <xsl:apply-templates/>
  </xsl:template>
  
  </xsl:stylesheet>
  
  
  
  1.1                  xml-xalan/test/tests/conf/conflictres/conflictres12.xml
  
  Index: conflictres12.xml
  ===================================================================
  <?xml version="1.0"?>
  <doc>
    <a>
      <b/>
      <b><b/></b>
      <c><b/></c>
    </a>
  </doc>
  
  
  1.1                  xml-xalan/test/tests/conf/conflictres/conflictres12.xsl
  
  Index: conflictres12.xsl
  ===================================================================
  <?xml version="1.0"?>
  <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
  
    <!-- FileName: conflictres12 -->
    <!-- Document: http://www.w3.org/TR/xslt -->
    <!-- DocVersion: 19991116 -->
    <!-- Section: 5.5 -->
    <!-- Creator: David Marston -->
    <!-- Purpose: Test that child and descendant are equal in priority. -->
    <!-- should see 2 conflict warnings -->
  
  <xsl:template match="doc">
    <out>
      <xsl:apply-templates/>
    </out>
  </xsl:template>
  
  <xsl:template match="a//b">
    <xsl:text>Descendant,</xsl:text>
    <xsl:apply-templates/>
  </xsl:template>
  
  <xsl:template match="a/b">
    <xsl:text>Child,</xsl:text>
    <xsl:apply-templates/>
  </xsl:template>
  
  </xsl:stylesheet>
  
  
  
  1.1                  xml-xalan/test/tests/conf/conflictres/conflictres13.xml
  
  Index: conflictres13.xml
  ===================================================================
  <?xml version="1.0"?>
  <doc>
    <a>
      <b><c/></b>
      <b><d/></b>
      <e><c/></e>
    </a>
  </doc>
  
  
  1.1                  xml-xalan/test/tests/conf/conflictres/conflictres13.xsl
  
  Index: conflictres13.xsl
  ===================================================================
  <?xml version="1.0"?>
  <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
  
    <!-- FileName: conflictres13 -->
    <!-- Document: http://www.w3.org/TR/xslt -->
    <!-- DocVersion: 19991116 -->
    <!-- Section: 5.5 -->
    <!-- Creator: David Marston -->
    <!-- Purpose: Test that two patterns containing * at one level are equal
       in priority, despite one * being deeper. -->
    <!-- should see 1 conflict warning -->
  
  <xsl:template match="doc">
    <out>
      <xsl:apply-templates/>
    </out>
  </xsl:template>
  
  <xsl:template match="a|b|e">
    <xsl:value-of select="name(.)"/><xsl:text>:</xsl:text>
    <xsl:apply-templates/>
  </xsl:template>
  
  <xsl:template match="a/b/*">
    <xsl:value-of select="name(.)"/><xsl:text>-Wildcard-last,</xsl:text>
  </xsl:template>
  
  <xsl:template match="a/*/c">
    <xsl:value-of select="name(.)"/><xsl:text>-Wildcard-middle,</xsl:text>
    <xsl:apply-templates/>
  </xsl:template>
  
  </xsl:stylesheet>
  
  
  
  1.1                  xml-xalan/test/tests/conf/conflictres/conflictres14.xml
  
  Index: conflictres14.xml
  ===================================================================
  <?xml version="1.0"?>
  <doc>
    <a>
      <b><c/></b>
      <d><c/></d>
    </a>
  </doc>
  
  
  1.1                  xml-xalan/test/tests/conf/conflictres/conflictres14.xsl
  
  Index: conflictres14.xsl
  ===================================================================
  <?xml version="1.0"?>
  <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
  
    <!-- FileName: conflictres14 -->
    <!-- Document: http://www.w3.org/TR/xslt -->
    <!-- DocVersion: 19991116 -->
    <!-- Section: 5.5 -->
    <!-- Creator: David Marston -->
    <!-- Purpose: Test that pattern containing * at one level is equal in priority
       to one containing * at two levels. -->
    <!-- should see 1 conflict warning -->
  
  <xsl:template match="doc">
    <out>
      <xsl:apply-templates/>
    </out>
  </xsl:template>
  
  <xsl:template match="a|b|d">
    <xsl:value-of select="name(.)"/><xsl:text>:</xsl:text>
    <xsl:apply-templates/>
  </xsl:template>
  
  <xsl:template match="a/*/*">
    <xsl:value-of select="name(.)"/><xsl:text>-Two-wildcards,</xsl:text>
    <xsl:apply-templates/>
  </xsl:template>
  
  <xsl:template match="a/b/*">
    <xsl:value-of select="name(.)"/><xsl:text>-Wildcard-last,</xsl:text>
  </xsl:template>
  
  </xsl:stylesheet>
  
  
  
  1.1                  xml-xalan/test/tests/conf/conflictres/conflictres15.xml
  
  Index: conflictres15.xml
  ===================================================================
  <?xml version="1.0"?>
  <doc>
    <a>
      <b><c/></b>
      <b><c><d><e/></d></c></b>
      <e><c/></e>
      <e><b><c/></b></e>
      <e><c><d/></c></e>
    </a>
  </doc>
  
  
  1.1                  xml-xalan/test/tests/conf/conflictres/conflictres15.xsl
  
  Index: conflictres15.xsl
  ===================================================================
  <?xml version="1.0"?>
  <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
  
    <!-- FileName: conflictres15 -->
    <!-- Document: http://www.w3.org/TR/xslt -->
    <!-- DocVersion: 19991116 -->
    <!-- Section: 5.5 -->
    <!-- Creator: David Marston -->
    <!-- Purpose: Test that pattern a//c is higher priority than a/*/c, even though
       it allows more nodes to qualify. -->
    <!-- should see 4 conflict warnings -->
  
  <xsl:template match="doc">
    <out>
      <xsl:apply-templates/>
    </out>
  </xsl:template>
  
  <xsl:template match="a|b|d|e">
    <xsl:value-of select="name(.)"/><xsl:text>:</xsl:text>
    <xsl:apply-templates/>
  </xsl:template>
  
  <xsl:template match="a//c">
    <xsl:value-of select="name(.)"/><xsl:text>-Descendant,</xsl:text>
  </xsl:template>
  
  <xsl:template match="a/*/c">
    <xsl:value-of select="name(.)"/><xsl:text>-Grandchild,</xsl:text>
    <xsl:apply-templates/>
  </xsl:template>
  
  </xsl:stylesheet>
  
  
  
  1.1                  xml-xalan/test/tests/conf/conflictres/conflictres16.xml
  
  Index: conflictres16.xml
  ===================================================================
  <?xml version="1.0"?> 
  <doc>
    <file test="true"/>
    <file test="false"/>
  </doc>
  
  
  1.1                  xml-xalan/test/tests/conf/conflictres/conflictres16.xsl
  
  Index: conflictres16.xsl
  ===================================================================
  <?xml version="1.0"?>
  <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
  
    <!-- FileName: conflictres16 -->
    <!-- Document: http://www.w3.org/TR/xslt -->
    <!-- DocVersion: 19991116 -->
    <!-- Section: 5.5 -->
    <!-- Creator: David Marston -->
    <!-- Purpose: Test for conflict resolution on a predicate of a wildcard -->
    <!-- No conflict warnings should be seen. -->
  
  <xsl:template match="doc">
    <out>
      <xsl:apply-templates select="file"/>
    </out>
  </xsl:template>
  
  <xsl:template match="*[@test='false']">
    <xsl:text>Match-predicated-wildcard,</xsl:text>
  </xsl:template>
  
  <xsl:template match="*">
    <xsl:text>Match-wildcard,</xsl:text>
  </xsl:template>
  
  </xsl:stylesheet>
  
  
  
  1.1                  xml-xalan/test/tests/conf/conflictres/conflictres17.xml
  
  Index: conflictres17.xml
  ===================================================================
  <?xml version="1.0"?> 
  <doc>
    <file test="true"/>
    <file test="false"/>
  </doc>
  
  
  1.1                  xml-xalan/test/tests/conf/conflictres/conflictres17.xsl
  
  Index: conflictres17.xsl
  ===================================================================
  <?xml version="1.0"?>
  <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
  
    <!-- FileName: conflictres17 -->
    <!-- Document: http://www.w3.org/TR/xslt -->
    <!-- DocVersion: 19991116 -->
    <!-- Section: 5.5 -->
    <!-- Creator: David Marston -->
    <!-- Purpose: If equal priorities are explicitly assigned, default priority
       rules have no effect on resolving conflicts. -->
    <!-- should see 1 conflict warning -->
  
  <xsl:template match="doc">
    <out>
      <xsl:apply-templates select="file"/>
    </out>
  </xsl:template>
  
  <xsl:template match="file[@test='false']" priority="2">
    <xsl:text>Match-predicated-wildcard,</xsl:text>
  </xsl:template>
  
  <xsl:template match="file" priority="2">
    <xsl:text>Match-wildcard,</xsl:text>
  </xsl:template>
  
  </xsl:stylesheet>
  
  
  
  1.1                  xml-xalan/test/tests/conf/conflictres/conflictres18.xml
  
  Index: conflictres18.xml
  ===================================================================
  <?xml version="1.0"?>
  <doc>
    <a x1="big" x2="bigger"/>
  </doc>
  
  
  1.1                  xml-xalan/test/tests/conf/conflictres/conflictres18.xsl
  
  Index: conflictres18.xsl
  ===================================================================
  <?xml version="1.0"?>
  <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
  
    <!-- FileName: conflictres18 -->
    <!-- Document: http://www.w3.org/TR/xslt -->
    <!-- DocVersion: 19991116 -->
    <!-- Section: 5.5 -->
    <!-- Creator: David Marston -->
    <!-- Purpose: Test that @foo has higher priority than @*. -->
    <!-- should see no conflict warnings -->
  
  <xsl:template match="doc">
    <out>
      <xsl:apply-templates/>
    </out>
  </xsl:template>
  
  <xsl:template match="a">
    <xsl:text>a: </xsl:text>
    <xsl:apply-templates select="@*"/>
  </xsl:template>
  
  <xsl:template match="@*">
    <xsl:value-of select="name(.)"/><xsl:text>-Wildcard,</xsl:text>
  </xsl:template>
  
  <xsl:template match="@x1">
    <xsl:text>Found x1 attribute,</xsl:text>
  </xsl:template>
  
  </xsl:stylesheet>
  
  
  
  1.1                  xml-xalan/test/tests/conf/conflictres/conflictres19.xml
  
  Index: conflictres19.xml
  ===================================================================
  <?xml version="1.0"?>
  <doc xmlns:ped="http://www.ped.com">
    <a x1="big" x2="bigger" ped:x3="small" ped:x4="smaller"/>
  </doc>
  
  
  1.1                  xml-xalan/test/tests/conf/conflictres/conflictres19.xsl
  
  Index: conflictres19.xsl
  ===================================================================
  <?xml version="1.0"?>
  <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
      version="1.0" xmlns:ped="http://www.ped.com" 
      exclude-result-prefixes="ped">
  
    <!-- FileName: conflictres19 -->
    <!-- Document: http://www.w3.org/TR/xslt -->
    <!-- DocVersion: 19991116 -->
    <!-- Section: 5.5 -->
    <!-- Creator: David Marston -->
    <!-- Purpose: Test priority rankings of non-namespaced and
       namespaced attributes. The @ped:* ranks above @* and below the others. -->
    <!-- should see no conflict warnings -->
  
  <xsl:template match="doc">
    <out>
      <xsl:apply-templates/>
    </out>
  </xsl:template>
  
  <xsl:template match="a">
    <xsl:text>a...
  </xsl:text>
    <xsl:apply-templates select="@*"/>
  </xsl:template>
  
  <xsl:template match="@*">
    <xsl:value-of select="name(.)"/><xsl:text>-Wildcard,</xsl:text>
  </xsl:template>
  
  <xsl:template match="@x1">
    <xsl:text>got x1 attribute,</xsl:text>
  </xsl:template>
  
  <xsl:template match="@ped:*">
    <xsl:value-of select="name(.)"/><xsl:text>-Qualified-wildcard,</xsl:text>
  </xsl:template>
  
  <xsl:template match="@ped:x3">
    <xsl:text>got ped:x3 attribute,</xsl:text>
  </xsl:template>
  
  </xsl:stylesheet>
  
  
  
  1.1                  xml-xalan/test/tests/conf/conflictres/conflictres20.xml
  
  Index: conflictres20.xml
  ===================================================================
  <?xml version="1.0"?>
  <doc xmlns:ped="http://www.ped.com">
    <a/>
    <ped:a/>
    <ped:b/>
  </doc>
  
  
  1.1                  xml-xalan/test/tests/conf/conflictres/conflictres20.xsl
  
  Index: conflictres20.xsl
  ===================================================================
  <?xml version="1.0"?>
  <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
      version="1.0" xmlns:ped="http://www.ped.com" 
      exclude-result-prefixes="ped">
  
    <!-- FileName: conflictres20 -->
    <!-- Document: http://www.w3.org/TR/xslt -->
    <!-- DocVersion: 19991116 -->
    <!-- Section: 5.5 -->
    <!-- Creator: David Marston -->
    <!-- Purpose: Test priority rankings of non-namespaced and
       namespaced elements. The ped:* ranks above * and below the others. -->
    <!-- should see no conflict warnings -->
  
  <xsl:template match="doc">
    <out>
      <xsl:apply-templates/>
    </out>
  </xsl:template>
  
  <xsl:template match="*">
    <xsl:value-of select="name(.)"/><xsl:text>-Wildcard,</xsl:text>
  </xsl:template>
  
  <xsl:template match="ped:*">
    <xsl:value-of select="name(.)"/><xsl:text>-Qualified-wildcard,</xsl:text>
  </xsl:template>
  
  <xsl:template match="ped:b">
    <xsl:text>found ped:b,</xsl:text>
  </xsl:template>
  
  </xsl:stylesheet>
  
  
  
  1.1                  xml-xalan/test/tests/conf/conflictres/conflictres21.xml
  
  Index: conflictres21.xml
  ===================================================================
  <?xml version="1.0"?>
  <doc><a>a-text</a><b>b-text</b></doc>
  
  
  1.1                  xml-xalan/test/tests/conf/conflictres/conflictres21.xsl
  
  Index: conflictres21.xsl
  ===================================================================
  <?xml version="1.0"?>
  <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
  
    <!-- FileName: conflictres21 -->
    <!-- Document: http://www.w3.org/TR/xslt -->
    <!-- DocVersion: 19991116 -->
    <!-- Section: 5.5 -->
    <!-- Creator: David Marston -->
    <!-- Purpose: Test for conflict resolution on a predicate of a node test. -->
    <!-- should see 1 conflict warning -->
  
  <xsl:template match="doc">
    <out>
      <xsl:apply-templates/>
    </out>
  </xsl:template>
  
  <xsl:template match="text()">
    <xsl:text>Any-text,</xsl:text>
  </xsl:template>
  
  <xsl:template match="text()[.='a-text']">
    <xsl:text>Specific-text,</xsl:text>
  </xsl:template>
  
  </xsl:stylesheet>
  
  
  
  1.1                  xml-xalan/test/tests/conf/conflictres/conflictres22.xml
  
  Index: conflictres22.xml
  ===================================================================
  <?xml version="1.0"?>
  <doc><!-- a-comment --><!-- b-comment --></doc>
  
  
  1.1                  xml-xalan/test/tests/conf/conflictres/conflictres22.xsl
  
  Index: conflictres22.xsl
  ===================================================================
  <?xml version="1.0"?>
  <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
  
    <!-- FileName: conflictres22 -->
    <!-- Document: http://www.w3.org/TR/xslt -->
    <!-- DocVersion: 19991116 -->
    <!-- Section: 5.5 -->
    <!-- Creator: David Marston -->
    <!-- Purpose: Test for conflict resolution on a predicate of a node test for comments. -->
    <!-- should see 1 conflict warning -->
  
  <xsl:template match="doc">
    <out>
      <xsl:apply-templates/>
    </out>
  </xsl:template>
  
  <xsl:template match="comment()">
    <xsl:text>Any-comment,</xsl:text>
  </xsl:template>
  
  <xsl:template match="comment()[.=' a-comment ']">
    <xsl:text>Specific-comment,</xsl:text>
  </xsl:template>
  
  </xsl:stylesheet>
  
  
  
  1.1                  xml-xalan/test/tests/conf/conflictres/conflictres23.xml
  
  Index: conflictres23.xml
  ===================================================================
  <?xml version="1.0"?>
  <doc>
    <?a-pi some data?>
    <?b-pi some data?>
    <?b-pi junk?>
    <?c-pi junk?>
  </doc>
  
  
  1.1                  xml-xalan/test/tests/conf/conflictres/conflictres23.xsl
  
  Index: conflictres23.xsl
  ===================================================================
  <?xml version="1.0"?>
  <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
  
    <!-- FileName: conflictres23 -->
    <!-- Document: http://www.w3.org/TR/xslt -->
    <!-- DocVersion: 19991116 -->
    <!-- Section: 5.5 -->
    <!-- Creator: David Marston -->
    <!-- Purpose: Test for conflict resolution on processing-instruction() node test. -->
    <!-- should see 1 conflict warning, because presence of a predicate raises priority to 0.5 -->
  
  <xsl:template match="doc">
    <out>
      <xsl:apply-templates/>
    </out>
  </xsl:template>
  
  <xsl:template match="processing-instruction('b-pi')[.='junk']">
    <xsl:text>PI-by-name-and-content:</xsl:text><xsl:value-of select="name(.)"/>
  </xsl:template>
  
  <xsl:template match="processing-instruction()">
    <xsl:text>Any-PI:</xsl:text><xsl:value-of select="name(.)"/>
  </xsl:template>
  
  <xsl:template match="processing-instruction()[.='junk']">
    <xsl:text>PI-by-content:</xsl:text><xsl:value-of select="name(.)"/>
  </xsl:template>
  
  <xsl:template match="processing-instruction('b-pi')">
    <xsl:text>PI-named-b:</xsl:text><xsl:value-of select="."/>
  </xsl:template>
  
  </xsl:stylesheet>
  
  
  
  1.1                  xml-xalan/test/tests/conf/conflictres/conflictres24.xml
  
  Index: conflictres24.xml
  ===================================================================
  <?xml version="1.0"?>
  <doc>
    <a>Element content</a>
  </doc>
  
  
  1.1                  xml-xalan/test/tests/conf/conflictres/conflictres24.xsl
  
  Index: conflictres24.xsl
  ===================================================================
  <?xml version="1.0"?>
  <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
  
    <!-- FileName: conflictres24 -->
    <!-- Scenario: Standard-XML -->
    <!-- Document: http://www.w3.org/TR/xslt -->
    <!-- DocVersion: 19991116 -->
    <!-- Section: 5.5 -->
    <!-- Purpose: Test for conflict resolution on templates assigned equal priority. -->
    <!-- Creator: Gary Peskin -->
    <!-- should see 1 conflict warning, because both templates are at same priority, but
       the last one should be selected. If priorities weren't assigned, more specific one
       (the "a" template) would have won. -->
  
  <xsl:strip-space elements="doc"/>
  
  <xsl:template match="doc">
    <out>
      <xsl:apply-templates/>
    </out>
  </xsl:template>
  
  <xsl:template match="a" priority="-2.0">
    <xsl:text>This template should not be matched.</xsl:text>
  </xsl:template>
  
  <xsl:template match="node()" priority="-2.0">
    <xsl:text>This template should be matched.</xsl:text>
  </xsl:template>
  
  </xsl:stylesheet>
  
  
  
  1.1                  xml-xalan/test/tests/conf/conflictres/k.xsl
  
  Index: k.xsl
  ===================================================================
  <?xml version="1.0"?>
  <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
  <xsl:output method="xml"/>
  
    <!-- FileName: k -->
    <!-- Document: http://www.w3.org/TR/xpath -->
    <!-- DocVersion: 19991116 -->
    <!-- Section: 2.1 XSLT Namespace. -->
    <!-- Purpose: Imported by other tests.  -->
  
  <xsl:template match="doc" priority="2.0">
    <out>
      <xsl:value-of select="'In Import: Testing '"/>
      <xsl:for-each select="*">
        <xsl:value-of select="."/><xsl:text> </xsl:text>		
      </xsl:for-each>
    </out>
  </xsl:template>
  
  </xsl:stylesheet>
  
  
  1.1                  xml-xalan/test/tests/conf/conflictres/conflictres01.xml
  
  Index: conflictres01.xml
  ===================================================================
  <?xml version="1.0"?>
  <doc>
    <foo test="true"/>
  </doc>