Re: [xsl] Xpath problem?

Subject: Re: [xsl] Xpath problem?
From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx>
Date: Wed, 28 Jun 2006 11:22:31 -0400
At 11:06 AM 6/28/2006, Georges wrote:
Seth Foss wrote:

> 'allMaxTime' is called. If I move the for-each loop from 'max' and
> put it into  'allMaxTime', then it works fine, which it wouldn't if
> 'allMaxTime was not called at all.

> The reason 'max' is a separate template is that different places pass
> different groups of nodes to the max template, i.e. it is resused. If
> I have to, I will just have duplicate code, but I would like to know
> why it isn't being called directly.

  Can you please submit a simple example reproducing the problem?  That
is, a minimal XML input with a minimal XSLT script with the two
template versions.

Good idea. Always a good idea.


Often when creating such a minimal sample, one finds the problem oneself. It's a good debugging technique even without a list to ask. :-)

Cheers,
Wendell

Current Thread