Subject: Re: xsl:for-each with atomic values and nested xsl:apply-templates
From: "Christian Roth" <roth@xxxxxxxxxxxxxx>
Date: Thu, 14 Sep 2006 02:20:33 +0200
|
Thank you Michael, David and Jay for the (once again) quick replies.
Don't you ever sleep?
Jay Bryant wrote:
>To fix it, use a variable that contains the root element (I call those
>"anchor variables"), thus:
>
> <xsl:template match="src">
> <xsl:variable name="root" select="/"
I really love that name and concept of an "anchor variable" set to the
document root (not: root element) for a specific document.
Thanks again,
Christian
|