You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xalan.apache.org by cu...@apache.org on 2001/01/11 19:15:23 UTC

cvs commit: xml-xalan/test/tests/api/trax/systemid/impincl SystemIdImport.xsl SystemIdInclude.xsl

curcuru     01/01/11 10:15:23

  Added:       test/tests/api/impincl SystemIdImport.xsl
                        SystemIdInclude.xsl
               test/tests/api/trax SystemIdImpIncl.xml SystemIdImpIncl.xsl
               test/tests/api/trax/impincl SystemIdImport.xsl
                        SystemIdInclude.xsl
               test/tests/api/trax/systemid/impincl SystemIdImport.xsl
                        SystemIdInclude.xsl
  Log:
  Stylesheets and imports/includes for setSystemId test
  
  Revision  Changes    Path
  1.1                  xml-xalan/test/tests/api/impincl/SystemIdImport.xsl
  
  Index: SystemIdImport.xsl
  ===================================================================
  <?xml version='1.0'?>
  <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
    <!-- FileName: SystemIdInclude.xsl -->
    <!-- Author: shane_curcuru@lotus.com -->
    <!-- Purpose: Basic import and include tests with differen systemId's. -->
  
  <xsl:template match="list">
    <import-list-level0>
      <xsl:apply-templates/>
    </import-list-level0>
  </xsl:template>
  
  <xsl:template match="item[@match-by='import']">
    <matched-by-import-level0>
      <xsl:value-of select="." />
    </matched-by-import-level0>
  </xsl:template>
  
  <xsl:template match="item">
    <matched-by-import-also-level0>
      <xsl:value-of select="." />
    </matched-by-import-also-level0>
  </xsl:template>
  
  </xsl:stylesheet>
  
  
  
  1.1                  xml-xalan/test/tests/api/impincl/SystemIdInclude.xsl
  
  Index: SystemIdInclude.xsl
  ===================================================================
  <?xml version='1.0'?>
  <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
    <!-- FileName: SystemIdInclude.xsl -->
    <!-- Author: shane_curcuru@lotus.com -->
    <!-- Purpose: Basic import and include tests with differen systemId's. -->
  
  <xsl:template match="list">
    <include-list-level0>
      <xsl:apply-imports/>
    </include-list-level0>
  </xsl:template>
  
  <xsl:template match="item[@match-by='include']">
    <matched-by-include-level0>
      <xsl:value-of select="." />
    </matched-by-include-level0>
  </xsl:template>
  
  </xsl:stylesheet>
  
  
  
  1.1                  xml-xalan/test/tests/api/trax/SystemIdImpIncl.xml
  
  Index: SystemIdImpIncl.xml
  ===================================================================
  <?xml version="1.0" encoding="UTF-8"?>
  <doc>
    <list>
      <item>Above Should be include-list then import-list</item>
      <item>This is SystemIdImpIncl.xml, used for setSystemId testing Note that different settings of systemIds will have different expected results!</item>
      <item match-by="import">Should be matched-by-import</item>
      <item match-by="include">Should be matched-by-include</item>
      <item match-by="main">Should be matched-by-import-also</item>
      <list>
        <item>Should be matched-by-main</item>
        <item>Should be matched-by-main</item>
      </list>
    </list>
  </doc>
  
  
  1.1                  xml-xalan/test/tests/api/trax/SystemIdImpIncl.xsl
  
  Index: SystemIdImpIncl.xsl
  ===================================================================
  <?xml version='1.0'?>
  <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
    <!-- FileName: SystemIdImpIncl.xsl -->
    <!-- Author: shane_curcuru@lotus.com -->
    <!-- Purpose: Basic import and include tests with differen systemId's. -->
    <!-- This is SystemIdImpIncl.xsl, used for setSystemId testing Note that different settings of systemIds will have different expected results! -->
  
  <xsl:import href="impincl/SystemIdImport.xsl"/>
  <xsl:include href="impincl/SystemIdInclude.xsl"/>
  
  <xsl:template match="doc">
   <out>
    <xsl:apply-templates/>
   </out>
  </xsl:template>
  
  <xsl:template match="list" priority="-1">
   <main-list>
    <xsl:apply-templates/>
   </main-list>
  </xsl:template>
  
  <xsl:template match="item[not(@match-by)]">
    <matched-by-main>
      <xsl:value-of select="." />
    </matched-by-main>
  </xsl:template>
  
  </xsl:stylesheet>
  
  
  
  1.1                  xml-xalan/test/tests/api/trax/impincl/SystemIdImport.xsl
  
  Index: SystemIdImport.xsl
  ===================================================================
  <?xml version='1.0'?>
  <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
    <!-- FileName: SystemIdInclude.xsl -->
    <!-- Author: shane_curcuru@lotus.com -->
    <!-- Purpose: Basic import and include tests with differen systemId's. -->
  
  <xsl:template match="list">
    <import-list-level1>
      <xsl:apply-templates/>
    </import-list-level1>
  </xsl:template>
  
  <xsl:template match="item[@match-by='import']">
    <matched-by-import-level1>
      <xsl:value-of select="." />
    </matched-by-import-level1>
  </xsl:template>
  
  <xsl:template match="item">
    <matched-by-import-also-level1>
      <xsl:value-of select="." />
    </matched-by-import-also-level1>
  </xsl:template>
  
  </xsl:stylesheet>
  
  
  
  1.1                  xml-xalan/test/tests/api/trax/impincl/SystemIdInclude.xsl
  
  Index: SystemIdInclude.xsl
  ===================================================================
  <?xml version='1.0'?>
  <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
    <!-- FileName: SystemIdInclude.xsl -->
    <!-- Author: shane_curcuru@lotus.com -->
    <!-- Purpose: Basic import and include tests with differen systemId's. -->
  
  <xsl:template match="list">
    <include-list-level1>
      <xsl:apply-imports/>
    </include-list-level1>
  </xsl:template>
  
  <xsl:template match="item[@match-by='include']">
    <matched-by-include-level1>
      <xsl:value-of select="." />
    </matched-by-include-level1>
  </xsl:template>
  
  </xsl:stylesheet>
  
  
  
  1.1                  xml-xalan/test/tests/api/trax/systemid/impincl/SystemIdImport.xsl
  
  Index: SystemIdImport.xsl
  ===================================================================
  <?xml version='1.0'?>
  <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
    <!-- FileName: SystemIdInclude.xsl -->
    <!-- Author: shane_curcuru@lotus.com -->
    <!-- Purpose: Basic import and include tests with differen systemId's. -->
  
  <xsl:template match="list">
    <import-list-level2>
      <xsl:apply-templates/>
    </import-list-level2>
  </xsl:template>
  
  <xsl:template match="item[@match-by='import']">
    <matched-by-import-level2>
      <xsl:value-of select="." />
    </matched-by-import-level2>
  </xsl:template>
  
  <xsl:template match="item">
    <matched-by-import-also-level2>
      <xsl:value-of select="." />
    </matched-by-import-also-level2>
  </xsl:template>
  
  </xsl:stylesheet>
  
  
  
  1.1                  xml-xalan/test/tests/api/trax/systemid/impincl/SystemIdInclude.xsl
  
  Index: SystemIdInclude.xsl
  ===================================================================
  <?xml version='1.0'?>
  <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
    <!-- FileName: SystemIdInclude.xsl -->
    <!-- Author: shane_curcuru@lotus.com -->
    <!-- Purpose: Basic import and include tests with differen systemId's. -->
  
  <xsl:template match="list">
    <include-list-level2>
      <xsl:apply-imports/>
    </include-list-level2>
  </xsl:template>
  
  <xsl:template match="item[@match-by='include']">
    <matched-by-include-level2>
      <xsl:value-of select="." />
    </matched-by-include-level2>
  </xsl:template>
  
  </xsl:stylesheet>