This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: xsl:number - What is Numbering Context?


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@isogen.com
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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]