Subject:Generating flexible multi-level recursive nested lists-Challenging Author:Dev Patel Date:06 Jun 2006 06:07 PM Originally Posted: 06 Jun 2006 05:16 PM
Hello,
I was wondering if somebody can help me to generate Multilevel OL and LI. Here is the input and output expected. If we add some more levels like level4 or level5, xslt should be able generate output without any change in it.
I have been trying this since many days.
I would highly appreciate your help. Thanks in advance.
Subject:Generating flexible multi-level recursive nested lists-Challenging Author:Ivan Pedruzzi Date:07 Jun 2006 12:40 AM Originally Posted: 07 Jun 2006 12:39 AM
Dev,
The attached solution assumes that the attribute "style" value has numbers only at the end, for example: style1, style2, ..., style100
It uses the translate function to preserve only characters that represents digits. For example if @style is style1 it returns 1