[xsl] Transfer a subelement to top

Subject: [xsl] Transfer a subelement to top
From: "Marc Tricou" <MarcTricou@xxxxxx>
Date: Sat, 13 Dec 2003 20:25:30 +0100
Hi,

I have an HTML structure like this:

<p>
    some text
    <table>
     ...
    </table>
    some text
</p>

How can i cut the embedding <p>-Tag into three parts, before and after the
table tag, so that i get this:

<p>
  some text
</p>
<table>
...
</table>
<p>
  some text
</p>


It would also be ok, if the table tag is embedded by <p>.  In an imperative
language i would know the way to go, but how to do it in XSL?

Regards,
Marc

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread