Subject: RE: RE: [xsl] remove <b> and <br>+merge nodes From: cknell@xxxxxxxxxx Date: Thu, 22 Jan 2004 07:15:40 -0500 |
Are you saying that you want to copy all elements except <b> and <br> and copy the contents of <b>? -- Charles Knell cknell@xxxxxxxxxx - email
-----Original Message----- From: Fabrice Estiivenart <fe@xxxxxxxx> Sent: Thu, 22 Jan 2004 09:52:09 +0100 To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx Subject: RE: [xsl] remove <b> and <br>+merge nodes
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: [xsl] 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
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] remove <b> and <br>+merge, Fabrice Estiévenart | Thread | RE: RE: [xsl] remove <b> and <br>+m, Fabrice Estiévenart |
RE: [xsl] Percentage in XSL, Rowland Shaw | Date | [xsl] Percentage in XSL, Eder de Oliveira |
Month |