Re: [xsl] xsl:number - What is Numbering Context?

Subject: Re: [xsl] xsl:number - What is Numbering Context?
From: "W. Eliot Kimber" <eliot@xxxxxxxxxx>
Date: Mon, 24 Jun 2002 16:49:51 -0500
Wendell Piez wrote:
> 
> Eliot--
> 
> Ah, it's interesting you're able to apply templates to $target-element,
> since it's not actually a node in your source, it's a result-tree-fragment.
> (In XSLT 1.0 you shouldn't be able to do this.)
> 
> Try setting your variable as
> 
>    <xsl:variable name="target-element" select="key('ids', $target-id)"/>
> 
> to get it to be be, truly, the node in your source, and not a copy (which
> loses the context).

That was it--very subtle.

Thanks,

Eliot
-- 
W. Eliot Kimber, eliot@xxxxxxxxxx
Consultant, ISOGEN International

1016 La Posada Dr., Suite 240
Austin, TX  78752 Phone: 512.656.4139

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread