View Single Post
  #3 (permalink)  
Old March 15th, 2011, 10:47 AM
lkd lkd is offline
Registered User
Join Date: Mar 2011
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default How to MOVE sub-element to preceding-sibling’s last sub-element

Thanks!! Your code copied <planning> to the correct location but did not remove it from <main> (sigh...why doesn't XSL just have a move element?!). I tried the following rule, but it still did not remove <planning> from <main>:

<xsl:template match="main">
        <xsl:apply-template select=@* | node() [not(planning)]"/>
Reply With Quote