xsl-list
[Top] [All Lists]

Re: Producing a Table of Contents

2004-03-26 03:58:17
Hi,

On Fri, 26 Mar 2004 03:43:48 -0700, M. David Peterson wrote:
Using the mode attribute of apply-templates allows you to select
particular elements and transform them different for each type of mode.
Using "//hi" will select all h1 elements from your source.  Using
mode="toc" allows you to match each of these elements to the template
with the match attribute set to "h1" and the mode set to "toc".

Many thanks of for that.

Can the technique be applied in an XSLT document to search within itself 
rather than a source XML file?
-- 
Cheers,

Julian Voelcker
United Kingdom




<Prev in Thread] Current Thread [Next in Thread>