![]() |
| ||
| Copy all node till occurence of next li in xslt 1.0 Hi I need to convert below part <ul> <li id="L_115775_tr"> <span> <a href="http://support.microsoft.com/ph/11732" id="L_115775">Windows Vista Solution Center</a> </span> <li id="L_116381_tr"> <span> <a href="http://support.microsoft.com/ph/8722" id="L_116381">Windows Internet Explorer 7 Solution Center</a> </span> <li id="L_125705_tr"> <span> <a href="http://support.microsoft.com/ph/1173" id="L_125705">Windows XP Solution Center</a> </span> <li id="L_147192_tr"> <span> <a href="http://support.microsoft.com/gp/cp_email" id="L_147192">E-mail Solution Center </a> </span> <li id="L_140164_tr"> <span> <a href="http://support.microsoft.com/ph/8753" id="L_140164">2007 Microsoft Office Suites Solution Center</a> </span> </li> </li> </li> </li> </li> </ul> To <ul> <li id="L_115775_tr"> <span> <a href="http://support.microsoft.com/ph/11732" id="L_115775">Windows Vista Solution Center</a> </span> </li> <li id="L_116381_tr"> <span> <a href="http://support.microsoft.com/ph/8722" id="L_116381">Windows Internet Explorer 7 Solution Center</a> </span> </li> <li id="L_125705_tr"> <span> <a href="http://support.microsoft.com/ph/1173" id="L_125705">Windows XP Solution Center</a> </span> </li> <li id="L_140164_tr"> <span> <a href="http://support.microsoft.com/ph/8753" id="L_140164">2007 Microsoft Office Suites Solution Center</a> </span> </li> </ul> Basically it should copy all nodes and attributes till occurence of next <li> . Same process should be repeated for all <li> using xslt 1.0 |
| ||
| Re: Copy all node till occurence of next li in xslt 1.0 Wow, nice challenge, In this case, I think i will use an apply-template on <li> element so I don't have to worry about the hierarchy. |
| All times are GMT -4. The time now is 8:38 pm. |
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC