Subject:how to remove the XML elements dynamically Author:(Deleted User) Date:30 Mar 2007 08:02 AM
Hi Manish,
if your reference to the "second 'li'" node has to be interpreted as "the 'li' node that is nested inside another 'li' node" you can try:
- adding a mode to the copier template
- removing 'li' from the list of matches for that template
- propagating the mode to the apply-templates
- creating a new template processing just the 'li' node with a mode=1 that will not create the element, but just invoke apply-templates
- creating a new template processing just the 'li' node with a mode=0 that will create the element, and then invoke apply-templates with mode=1