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 2001/11/21 17:36:53 UTC

cvs commit: xml-xalan/test/tests/conf/impincl/fragments imp21d.xsl i13incl.xsl i23incl.xsl i23sub.xsl i24imp.xsl imp20b.xsl imp20c.xsl imp20d.xsl imp21b.xsl imp21c.xsl i13imp.xsl

dmarston    01/11/21 08:36:53

  Added:       test/tests/conf/impincl/fragments imp21d.xsl i13incl.xsl
                        i23incl.xsl i23sub.xsl i24imp.xsl imp20b.xsl
                        imp20c.xsl imp20d.xsl imp21b.xsl imp21c.xsl
                        i13imp.xsl
  Log:
  Overhaul apply-imports testing
  
  Revision  Changes    Path
  1.1                  xml-xalan/test/tests/conf/impincl/fragments/imp21d.xsl
  
  Index: imp21d.xsl
  ===================================================================
  <?xml version="1.0"?> 
  <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
  
  <!-- FileName: imp21d -->
  <!-- Purpose: Used by impincl21 -->
  
  <xsl:template match="foo">
    <D>
      <xsl:value-of select="name(.)"/>
      <xsl:apply-templates select="bar"/>
    </D>
  </xsl:template>
  
  <xsl:template match="bar">
    <xsl:text> - match on bar in imp21d.xsl</xsl:text>
  </xsl:template>
  
  </xsl:stylesheet>
  
  
  
  1.1                  xml-xalan/test/tests/conf/impincl/fragments/i13incl.xsl
  
  Index: i13incl.xsl
  ===================================================================
  <?xml version="1.0"?>
  <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
  
  <!-- FileName: i13incl -->
  <!-- Purpose: Used by impincl13 -->
  
  <xsl:template match="title">
    <xsl:text>Template for title in included file should NOT be used.</xsl:text>
  </xsl:template>
  
  <xsl:template match="overview">
    <!-- This one should have highest import precedence, since it's included into main. -->
    <xsl:element name="{@x}">
      <xsl:apply-imports/><!-- go get next-highest-precedence overview template -->
    </xsl:element>
  </xsl:template>
  
  </xsl:stylesheet>
  
  
  1.1                  xml-xalan/test/tests/conf/impincl/fragments/i23incl.xsl
  
  Index: i23incl.xsl
  ===================================================================
  <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
  
  <!-- FileName: 123incl -->
  <!-- Purpose: Used by impincl23 -->
  
  <xsl:import href="i23sub.xsl"/>
  
  </xsl:stylesheet>
  
  
  
  1.1                  xml-xalan/test/tests/conf/impincl/fragments/i23sub.xsl
  
  Index: i23sub.xsl
  ===================================================================
  <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
  
  <!-- FileName: i23sub -->
  <!-- Purpose: Used by impincl23 -->
  
  <xsl:template match="foo">
    <good-match/>
  </xsl:template>
  
  </xsl:stylesheet>
  
  
  
  1.1                  xml-xalan/test/tests/conf/impincl/fragments/i24imp.xsl
  
  Index: i24imp.xsl
  ===================================================================
  <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
  
  <!-- FileName: i24imp -->
  <!-- Purpose: Used by impincl24 -->
  
  <xsl:template match="tag">
    <pre>
      <xsl:value-of select="concat('border should be ',$color)"/>
    </pre>
  </xsl:template>
  
  </xsl:stylesheet>
  
  
  1.1                  xml-xalan/test/tests/conf/impincl/fragments/imp20b.xsl
  
  Index: imp20b.xsl
  ===================================================================
  <?xml version="1.0"?> 
  <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
  
  <!-- FileName: imp20b -->
  <!-- Purpose: Used by impincl20 -->
  
  <xsl:import href="imp20c.xsl"/>
  
  <xsl:template match="/">
    <xsl:text>WRONG Match on / in imp20b.xsl&#xa;</xsl:text>
    <xsl:apply-templates select="foo"/>
  </xsl:template>
  
  <xsl:template match="foo">
    <B><xsl:apply-imports/></B>
  </xsl:template>
  
  <xsl:template match="bar">
    <xsl:text>match on bar in imp20b.xsl</xsl:text>
  </xsl:template>
  
  </xsl:stylesheet>
  
  
  
  1.1                  xml-xalan/test/tests/conf/impincl/fragments/imp20c.xsl
  
  Index: imp20c.xsl
  ===================================================================
  <?xml version="1.0"?> 
  <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
  
  <!-- FileName: imp20c -->
  <!-- Purpose: Used indirectly by impincl20 -->
  
  <xsl:template match="/">
    <xsl:text>WRONG Match on / in imp20c.xsl&#xa;</xsl:text>
    <xsl:apply-templates select="foo"/>
  </xsl:template>
  
  <xsl:template match="foo">
    <C>
      <xsl:apply-templates select="bar"/><!-- Should start at top of import tree -->
    </C>
  </xsl:template>
  
  <xsl:template match="bar">
    <xsl:text>match on bar in imp20c.xsl</xsl:text>
  </xsl:template>
  
  </xsl:stylesheet>
  
  
  
  1.1                  xml-xalan/test/tests/conf/impincl/fragments/imp20d.xsl
  
  Index: imp20d.xsl
  ===================================================================
  <?xml version="1.0"?> 
  <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
  
  <!-- FileName: imp20d -->
  <!-- Purpose: Used by impincl20 -->
  
  <xsl:template match="/">
    <xsl:text>WRONG Match on / in imp20d.xsl&#xa;</xsl:text>
    <xsl:apply-templates select="foo"/>
  </xsl:template>
  
  <xsl:template match="foo">
    <D>
      <xsl:apply-imports/><!-- no imports here, so it will revert to built-ins -->
    </D>
  </xsl:template>
  
  <xsl:template match="bar">
    <xsl:text>match on bar in imp20d.xsl</xsl:text>
  </xsl:template>
  
  </xsl:stylesheet>
  
  
  
  1.1                  xml-xalan/test/tests/conf/impincl/fragments/imp21b.xsl
  
  Index: imp21b.xsl
  ===================================================================
  <?xml version="1.0"?>
  <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
  
  <!-- FileName: imp21b -->
  <!-- Purpose: Used by impincl21 -->
  
  <xsl:import href="imp21c.xsl"/>
  
  <xsl:template match="foo">
    <B><xsl:apply-imports/></B>
  </xsl:template>
  
  <xsl:template match="goo">
    <B><xsl:apply-imports/></B>
  </xsl:template>
  
  <xsl:template match="bar">
    <xsl:text> - match on bar in imp21b.xsl</xsl:text>
  </xsl:template>
  
  </xsl:stylesheet>
  
  
  1.1                  xml-xalan/test/tests/conf/impincl/fragments/imp21c.xsl
  
  Index: imp21c.xsl
  ===================================================================
  <?xml version="1.0"?>
  <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
  
  <!-- FileName: imp21c -->
  <!-- Purpose: Used indirectly by impincl21 -->
  
  <xsl:template match="foo">
    <C>
      <xsl:value-of select="name(.)"/>
      <xsl:apply-templates select="bar"/>
    </C>
  </xsl:template>
  
  <xsl:template match="goo">
    <C>
      <xsl:value-of select="name(.)"/>
      <xsl:apply-templates select="bar"/>
    </C>
  </xsl:template>
  
  <xsl:template match="bar">
    <xsl:text> - match on bar in imp21c.xsl</xsl:text>
  </xsl:template>
  
  <xsl:template match="blob"><!-- no such node -->
    <xsl:apply-imports/>
  </xsl:template>
  
  </xsl:stylesheet>
  
  
  1.1                  xml-xalan/test/tests/conf/impincl/fragments/i13imp.xsl
  
  Index: i13imp.xsl
  ===================================================================
  <?xml version="1.0"?>
  <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
  
  <!-- FileName: i13incl -->
  <!-- Purpose: Used by impincl13 -->
  
  <xsl:template match="author">
    IMPORT author: <xsl:value-of select="."/><xsl:text>&#10;</xsl:text>
  </xsl:template>
  
  <xsl:template match="overview">
    <xsl:text>IMPORT overview: </xsl:text>
    <xsl:value-of select="."/>
  </xsl:template>
  
  </xsl:stylesheet>
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-cvs-help@xml.apache.org