[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: remove <b> and <br>+merge nodes

Subject: RE: remove <b> and <br>+merge nodes
From: Fabrice Estiévenart <fe@xxxxxxxx>
Date: Thu, 22 Jan 2004 09:52:09 +0100
RE:  remove <b> and <br>+merge nodes
hi, thanks for your suggestion but i would like a more generic solution that should work not uniquely on <p> elements...

At 12:35 21/01/2004 -0500, you wrote:
If you want to get rid of all the child elements of the <p> element and retain their content, you can use this template. If you have some elements that you want to retain and eliminate only the <b> and <br> elements, we'll have to figure out something else.

<xsl:template match="p">
  <xsl:value-of select="." />
</xsl:template>
--
Charles Knell
cknell@xxxxxxxxxx - email



-----Original Message-----
From:     Fabrice Estiivenart <fe@xxxxxxxx>
Sent:     Wed, 21 Jan 2004 17:21:22 +0100
To:       xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject:   remove <b> and <br>+merge nodes

hi,

how can i remove <br> and <b> tags from an html document so that resulting
text nodes are merged into an unique one ?

for example :
<p>my <b>tailor</b> is <br> rich</p>

would become :
<p>my tailor is rich</p>

thanks for your good support,

Fabrice


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





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


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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.