Skansen,

the problem you encountered is pretty strange: are you sure the Cocoon output has 
newlines where the XSL stylesheet has not ? I
never noticed it.

Anyway, since the "div" tag is for DIViding the flow of text into paragraphs (more or 
less like the "p" one) it introduces new lines
to separate it from the rest of the text, whether these newlines appeared in the HTML 
source or not.

I'd rather convert that "div" into a "span" tag, which doesn't interrupt the text flow 
and let you specify a "class" attribute just
the same.

Best regards,

---------------------------------------------
               Luca Morandini
               GIS Consultant
              [EMAIL PROTECTED]
http://utenti.tripod.it/lmorandini/index.html
---------------------------------------------


> -----Original Message-----
> From: Skansen [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, September 26, 2002 7:05 AM
> To: [EMAIL PROTECTED]
> Subject: Serializig and LF: Problem
>
>
> Hello
>
> When using the XSL stylesheet below cocoon gives the output below.
>
> The problem is that after a <td> or a <td><div> i can't have a LF or CR.
> If there is one i get aditional height in the row. (which is bad)
>
> What i would like to get is:
>
> <td>
> <div><a>...<a/></div>
>
> Any idea how.
>
> I'm using cocoon from 20020826 on vm1.3
> I tried the output in Mozilla 1.1 and IE 5.5. With a stylesheet and 
><html>.......</html> around it.
>
> P.S
> Cocoon reverse the attributes on output :)
>
>
> Jakob
>
> ---->XSL Transformation
>
> <?xml version="1.0"?>
> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform";>
> <xsl:template match="/">
>   <xsl:apply-templates/>
> </xsl:template>
>
> <xsl:template match="TREE">
>  <div id="header">
>   <!-- Navigation Bar -->
>   <table width="759" cellspacing="0" cellpadding="0"  border="0" height="17" 
>class="sM" bgcolor="#336699">
>     <tr><td width="759" class="mH" >
>       <div class="mHtSP">
>          <table width="455" cellspacing="0" cellpadding="0" border="0" height="15">
>          <tr>
>             <td class="mHi"><div class="mHsp"><a><xsl:attribute
> name="href"><xsl:text>index.html</xsl:text></xsl:attribute><b>Home</b></a></div></td>
>    <xsl:for-each select="NODE">
>             <td class="mHi"><div class="mHsp"><a><xsl:attribute 
>name="href"><xsl:text>xb-</xsl:text><xsl:value-of
> select="TABNAME"/><xsl:text>.html</xsl:text></xsl:attribute><b><xsl:value-of 
>select="TABNAME"/></b></a></div></td>
>    </xsl:for-each>
>          </tr>
>          </table>
>       </div>
>     </td></tr>
>       </table>
>  </div>
> </xsl:template>
>
> </xsl:stylesheet>
>
>
>
>
> ---------> Output from Cocoon
>
> <div id="header">
> <table bgcolor="#336699" class="sM" height="17" border="0" cellpadding="0" 
>cellspacing="0" width="759">
> <tr>
> <td class="mH" width="759">
> <div class="mHtSP">
> <table height="15" border="0" cellpadding="0" cellspacing="0" width="455">
> <tr>
> <td class="mHi">
> <div class="mHsp">
> <a href="index.html"><b>Home</b></a>
> </div>
> </td>
> </tr>
> </table>
> </div>
> </td>
> </tr>
> </table>
> </div>
>
>
>
> ---------------------------------------------------------------------
> Please check that your question  has not already been answered in the
> FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>
>
> To unsubscribe, e-mail:     <[EMAIL PROTECTED]>
> For additional commands, e-mail:   <[EMAIL PROTECTED]>
>


---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>

To unsubscribe, e-mail:     <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>

Reply via email to