garyp       01/04/02 03:30:00

  Added:       test/tests/contrib/garypeskin impincl18.out impincl18.xml
                        impincl18.xsl
  Log:
  Fix bugzilla bug 1170.  If we're trying an xsl:apply-imports at the top level 
(ie there are no
  imported stylesheets), we need to indicate that there is no matching template 
and prevent and infinite recursion by using the built-in template.
  This testcase verifies that we do not recurse.
  
  Revision  Changes    Path
  1.1                  xml-xalan/test/tests/contrib/garypeskin/impincl18.out
  
  Index: impincl18.out
  ===================================================================
  <?xml version="1.0" encoding="UTF-8"?>
  <result>
        Before apply-imports
        
    This is from the XML Source Document.
  
        After apply-imports
    </result>
  
  
  1.1                  xml-xalan/test/tests/contrib/garypeskin/impincl18.xml
  
  Index: impincl18.xml
  ===================================================================
  <?xml version="1.0" encoding="UTF-8"?>
  <root>
    This is from the XML Source Document.
  </root>
  
  
  1.1                  xml-xalan/test/tests/contrib/garypeskin/impincl18.xsl
  
  Index: impincl18.xsl
  ===================================================================
  <?xml version="1.0" encoding="UTF-8"?>
  <xsl:stylesheet version="1.0" 
xmlns:xsl="http://www.w3.org/1999/XSL/Transform";>
  
    <!-- FileName: impincl18 -->
    <!-- Document: http://www.w3.org/TR/xslt -->
    <!-- DocVersion: 19991116 -->
    <!-- Section: 5.6 Overriding Template Rules -->
    <!-- Creator: Gary L Peskin -->
    <!-- Purpose: When no stylesheets are imported, an xsl:apply-imports should
                  select the built-in templates. -->
  
  <xsl:template match="/">
        <xsl:message>This message should be issued only one time.</xsl:message>
    <result>
        Before apply-imports
        <xsl:apply-imports/>
        After apply-imports
    </result>
  </xsl:template>
  </xsl:stylesheet>
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to