Vadim, I think the problem is not related to indentation, since the HTML output appears to have no indentation; moreover, I presume strip-space will be of no use, since there are no spaces to strip in the input elements.
Look, the XSL fragment, according to Skansen, is: <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> And the result is: <td class="mHi"> <div class="mHsp"> <a href="index.html"><b>Home</b></a> </div> </td> Which, IMHO, cannot be, given the afore-mentioned XSL fragment: therefore this might be a Xalan bug. Anyway, a "span" will save the day :) Best regards, --------------------------------------------- Luca Morandini GIS Consultant [EMAIL PROTECTED] http://utenti.tripod.it/lmorandini/index.html --------------------------------------------- > -----Original Message----- > From: Vadim Gritsenko [mailto:[EMAIL PROTECTED]] > Sent: Thursday, September 26, 2002 2:41 PM > To: [EMAIL PROTECTED] > Subject: Re: Serializig and LF: Problem > > > Vadim Gritsenko wrote: > > > Skansen wrote: > > > >> 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. > > > > > > 1. Put this on one line > > 2. http://www.w3.org/TR/xslt#strip > > Use strip-space > > > Another thing to check is that html serializer has indent set to no: > > <indent>no</indent> > > See > http://xml.apache.org/xalan-j/apidocs/javax/xml/transform/OutputKeys.html#INDENT > > Vadim > > > > >> 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 :) > >> > > > > It's Xalan or Xerces. > > > > Vadim > > > > > > > >> 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]>