Hi
Niket,
Have a
look at this pattern.
It
gives the basis of a recursive pattern that you could use. Instead of using just
a match though, I would suggest having a base element match on that, do an
xsl:for-each and then call a template that takes a param (the current
node). The template should check to see if it is at position(1) and if it
is, you know that you are at the start of a sibling set. Apply any
logic you want to do to that node then xsl:for-each on that node
calling the same template again pasing through the current node (this is the
recursive part. Finally, before exiting the xsl:for-each loop section, do a
check to see if it is the last element in the set (last() function I think :),
then you can apply any finalising code for that sibling set.
I hope
that helps.
Stephen
-----Original Message-----
From: Niket Anand [mailto:[EMAIL PROTECTED]] Sent: Saturday, April 13, 2002 1:13 AM To: Niket Anand Subject: making tree like structure using XML,XSP,XSL
|
- making tree like structure using XML,XSP,XSL Niket Anand
- RE: making tree like structure using XML,XSP,XSL Luca Morandini
- XSL function to handle String Niket Anand
- Re: XSL function to handle String Christoph Gaffga
- Stephen Manning