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...@locus.apache.org on 2000/11/29 16:24:13 UTC

cvs commit: xml-xalan/test/tests/api-gold/trax/dom DOMImpIncl.out

curcuru     00/11/29 07:24:12

  Added:       test/tests/api/trax/dom DOMImpIncl.xml DOMImpIncl.xsl
               test/tests/api-gold/trax/dom DOMImpIncl.out
  Log:
  New DOM stylesheets for import/include/systemId testing
  
  Revision  Changes    Path
  1.1                  xml-xalan/test/tests/api/trax/dom/DOMImpIncl.xml
  
  Index: DOMImpIncl.xml
  ===================================================================
  <?xml version="1.0" encoding="UTF-8"?>
  <doc>
    <list>
      <item>Above Should be include-list then import-list</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/dom/DOMImpIncl.xsl
  
  Index: DOMImpIncl.xsl
  ===================================================================
  <?xml version='1.0'?>
  <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
    <!-- FileName: StreamImpIncl.xsl -->
    <!-- Author: shane_curcuru@lotus.com -->
    <!-- Purpose: Basic import and include tests for StreamSource APIs. -->
  
  <xsl:import href="impincl/SimpleImport.xsl"/>
  <xsl:include href="impincl/SimpleInclude.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-gold/trax/dom/DOMImpIncl.out
  
  Index: DOMImpIncl.out
  ===================================================================
  <?xml version="1.0" encoding="UTF-8"?>
  <out>
    <include-list><import-list>
      <matched-by-main>Above Should be include-list then import-list</matched-by-main>
      <matched-by-import>Should be matched-by-import</matched-by-import>
      <matched-by-include>Should be matched-by-include</matched-by-include>
      <matched-by-import-also>Should be matched-by-import-also</matched-by-import-also>
      <include-list><import-list>
        <matched-by-main>Should be matched-by-main</matched-by-main>
        <matched-by-main>Should be matched-by-main</matched-by-main>
      </import-list></include-list>
    </import-list></include-list>
  </out>