xsl-list
[Top] [All Lists]

Re: [xsl] Move elements to preceding parent

2009-06-17 09:16:50
Israel Viente wrote:

Required output:
<?xml version="1.0" encoding="UTF-8"?>
<html xmlns="http://www.w3.org/1999/xhtml";>
   <body>

      <p dir="rtl">
         <span class="chapter">line1</span>
       </p>

      <p dir="rtl">
         <span class="regular">line10</span>
         <span class="regular">line11</span>
         <span class="regular">line12</span>
         <span class="regular">line13.</span>
      </p>

      <p dir="rtl">
          <span class="regular">line14</span>
         <span class="regular">line15</span>
         <span class="regular">line16.</span>
      </p>

      <p dir="rtl">
         <span class="regular">line17"</span>
      </p>

   </body>
</html>

I think the solution posted by Ken Holman on 2009-06-14 does what you want, even for the more complex input you have now shown.

--

        Martin Honnen
        http://msmvps.com/blogs/martin_honnen/

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>