Preserving output formatting after XSL transformation

Subject: Preserving output formatting after XSL transformation
From: "Jesse Ehrenzweig" <jesse@xxxxxxxxxxx>
Date: Wed, 8 Nov 2000 13:09:56 -0500
I'm wondering how to preserve the formatting of my transformed HTML output
text.... instead of text appearing like so:


I would like it to appear like this instead:


Attached is a copy of my XSL document, and a sample piece of XML code.  Any
help, advice or links would be greatly appreciated!

-=Tek Boy=-


<?xml version="1.0"?>

<xsl:stylesheet version="1.0"
xmlns:xsl=""; xsl:space="preserve">
<xsl:output method="html" version="3.2" indent="yes"/>

<xsl:template match="PROMOTIONS">
    <xsl:for-each select="PROMOTION[position() mod 3 = 1]" >
<table cellpadding="5" cellspacing="5" border="1">
      <xsl:for-each select="self::PROMOTION |
following-sibling::PROMOTION[position() &lt; 3]">
        <xsl:attribute name="src"><xsl:value-of
        <xsl:attribute name="border">0</xsl:attribute>



<?xml version="1.0"?>

    <SHORT_TITLE>Buy 10 Gerber 1st Foods (2.5oz) get $1.00
    <FULL_TITLE>Buy 10, get US$ 1 discount.</FULL_TITLE>

    <SHORT_TITLE>Buy 3 Ben &amp; Jerry Ice Cream get $2.00 off</SHORT_TITLE>
    <FULL_TITLE>Buy 3, get US$ 2.00 discount.</FULL_TITLE>



 XSL-List info and archive:

Current Thread