xsl-list
[Top] [All Lists]

Re: [xsl] stripping <p> tags from a block of HTML

2006-10-05 12:55:54
2006/10/5, P Pinck <garble1070(_at_)yahoo(_dot_)com>:
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

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>