This examples shows how you can call a
template recursitively in xsl. Note that is follows the base rules
for recursion:
1. It calls itself
2. At least one parameter changes
3. As a way to end
This is useful when you need to use recursion of course, but more
importantly to do a loop not base on xml nodes because there is no
independent of node loop functions in xsl. Remember that
xsl:for-each will loop
through each matching node.
|