You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by bu...@apache.org on 2001/03/31 04:17:59 UTC
[Bug 1170] New - xsl:apply-imports results in infinite loop when no imports available
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=1170
*** shadow/1170 Fri Mar 30 18:17:59 2001
--- shadow/1170.tmp.22033 Fri Mar 30 18:17:59 2001
***************
*** 0 ****
--- 1,32 ----
+ +============================================================================+
+ | xsl:apply-imports results in infinite loop when no imports available |
+ +----------------------------------------------------------------------------+
+ | Bug #: 1170 Product: XalanJ2 |
+ | Status: NEW Version: 2.0.0 |
+ | Resolution: Platform: All |
+ | Severity: Normal OS/Version: All |
+ | Priority: Low Component: org.apache.xalan.templa |
+ +----------------------------------------------------------------------------+
+ | Assigned To: xalan-dev@xml.apache.org |
+ | Reported By: garyp@firstech.com |
+ | CC list: Cc: |
+ +----------------------------------------------------------------------------+
+ | URL: |
+ +============================================================================+
+ | DESCRIPTION |
+ When no imported stylesheets are present, an xsl:apply-imports results in the
+ instantiating template being reinvoked, causing an infinite loop.
+
+ Sample xsl:
+
+ <?xml version="1.0" encoding="UTF-8"?>
+ <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+
+ <xsl:template match="/">
+ <xsl:message>This is a message.</xsl:message>
+ <xsl:apply-imports/>
+ </xsl:template>
+ </xsl:stylesheet>
+
+ Any stylesheet can be used. This will cause "This is a message." to be issued
+ repeatedly until the stack overflows.