Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


[xsl] remove certain elements but keep children

From: Ben Munat <bent@--------->
To:
Date: 10/3/2004 8:47:00 AM
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


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent