[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

Re: [xsl] stripping

tags from a block of HTML


Subject: Re: [xsl] stripping <p> tags from a block of HTML
From: "Manfred Staudinger" <manfred.staudinger@xxxxxxxxx>
Date: Thu, 5 Oct 2006 12:55:32 -0700

2006/10/5, P Pinck <garble1070@xxxxxxxxx>:
Right now, I'm using a very simple sequence to dump
the block over:

<xsl:template match="DataContent">
<html>
   <xsl:copy-of select="node()"/>
</html>

This works okay, but since the block of HTML is full
of <p> and </p> tags, this creates too much space
between the lines for my purposes.

I would like to strip the <p> tags out completely and
replace the </p> tags with <br> tags.  I tried

To control the layout you should use css. Try p {margin: 0; padding: 0;} to get started.

Manfred


Current Thread