Tempore 18:26:05, die Thursday 10 February 2005 AD, hinc in foro {comp.text.xml} scripsit <>:
> Quick question:
>
> How would I nest the apply templates on the following XML structure?
>
> /ITEM/CHILD/ITEM/CHILD/ITEM/CHILD
>
> I would first like to apply templates on /ITEM/CHILD. Within that
> template, I would like to apply a template on ITEM/CHILD (the children
> of the first ITEM/CHILD). Then within the second level template, I
> would again like to apply a template on its children (the grandchildren
> of the first ITEM/CHILD). The problem is that the output differs in
> each template, but the names are the same so my match statements are
> the same. I'm sure there is an easy way to do this but I can't seem to
> find it. Any ideas? Thanks in advance!
Hi,
Quick answer: use the 'mode' attribute:
e.g.
<xsl:apply-templates select="ITEM/CHILD" mode="level2"/>
regards,
--
Joris Gillis (
http://www.ticalc.org/cgi-bin/acct-v...i?userid=38041)
Vincit omnia simplicitas
Keep it simple