W3C home > Mailing lists > Public > xsl-editors@w3.org > July to September 1999

Re: Recursion among top-level elements

From: James Clark <jjc@jclark.com>
Date: Wed, 15 Sep 1999 20:56:29 +0700
Message-ID: <37DFA58D.AEE0A5CA@jclark.com>
To: Kay Michael <Michael.Kay@icl.com>
CC: "'xsl-editors@w3.org'" <xsl-editors@w3.org>
Kay Michael wrote:

> The XSLT specification (section 12.4) discusses the possibility of cycles
> existing among global variable declarations, but it does not seem to deal
> with other possibilities for circular definitions.
> Example1: there is nothing to stop a global variable definition calling
> xsl:apply-templates; and there is nothing to stop the match pattern in
> xsl:template referencing a global variable. In general therefore, when
> xsl:apply-templates is called within a global variable definition it will be
> impossible to determine which template to invoke.
> Example2: there is nothing to stop a global variable definition referencing
> a key, and there is nothing to stop any of the patterns in a key definition
> from referencing a global variable.
> The problem with xsl:apply-templates remains: I think it is necessary either
> to stop template match patterns referring to global variables, or to stop
> global variable definitions invoking xsl:apply-templates.

The XSL WG decided to do the former (similarly for xsl:key).

Received on Wednesday, 15 September 1999 12:32:16 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:44:17 UTC