[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
[Recent Entries]
[Reply To This Message]
Re: remove certain elements but keep children
Subject: Re: remove certain elements but keep children
From: Ben Munat <bent@xxxxxxxxx>
Date: Mon, 04 Oct 2004 08:37:10 -0700
|
Wow, five replies with the same answer... that's very reassuring. ;-)
thanks very much!
Ben
Ben Munat wrote:
Hello,
I'm writing an app that aggregates html into a single doc. The chunks of
html are put into the new document wrapped in "output" tags. These
output tags can be intermingled with html tags.
I'm trying to come up with an xpath or xsl template(s) that will remove
the output tags, while leaving their child html and without producing
duplicate content.
Here's an example doc:
<output>
<div>
<output>
<h1>a header</h1>
<p>some stuff</p>
<output>
<div>
<p>foo bar</p>
</div>
</output>
<p>more html</p>
</output>
</div>
<p>some html</p>
</output>
And I want it to be:
<div>
<h1>a header</h1>
<p>some stuff</p>
<div>
<p>foo bar</p>
</div>
<p>more html</p>
</div>
<p>some html</p>
Any ideas?
thanks,
Ben
|
PURCHASE STYLUS STUDIO ONLINE TODAY!
Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!
Download The World's Best XML IDE!
Accelerate XML development with our award-winning XML IDE - Download a free trial today!
Subscribe in XML format
RSS 2.0 |
|
Atom 0.3 |
|
|