cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Luca Morandini" <luca.morandi...@tin.it>
Subject RE: Serializig and LF: Problem
Date Thu, 26 Sep 2002 13:44:05 GMT
<snip>
> Must admit that I have not noticed that from the first sight. :)
</snip>

Vadim, you corrected me many times, let me return the favour once in a while ;)

<snip>
> But I would try indent=no anyway.
</snip>

I tried that to no avail (it was my first thought, too).

<snip>
> >Anyway, a "span" will save the day :)
> >
> 
> Will it? There should be no difference in behaviour - which means that 
> this is an issue with serializer.
</snip>

I guess it will, since <span> does't break HTML text as <div> does... though it
is included in a <td>... hmmm... don't really know.

Anyway, the behaviour of Xalan (or the Serializer) begs further investigations.

Best regards,

--------------------------------------------- 
               Luca Morandini 
               GIS Consultant 
              lmorandini@ieee.org 
http://utenti.tripod.it/lmorandini/index.html 
---------------------------------------------
 

> -----Original Message-----
> From: Vadim Gritsenko [mailto:vadim.gritsenko@verizon.net]
> Sent: Thursday, September 26, 2002 3:29 PM
> To: cocoon-users@xml.apache.org
> Subject: Re: Serializig and LF: Problem
> 
> 
> Luca Morandini wrote:
> 
> >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>
> >
> 
> Must admit that I have not noticed that from the first sight. :)
> But I would try indent=no anyway.
> 
> 
> >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 :)
> >
> 
> Will it? There should be no difference in behaviour - which means that 
> this is an issue with serializer.
> 
> Vadim
> 
> 
> >Best regards,
> >
> >---------------------------------------------
> >               Luca Morandini
> >               GIS Consultant
> >              lmorandini@ieee.org
> >http://utenti.tripod.it/lmorandini/index.html
> >---------------------------------------------
> >
> >
> >  
> >
> >>-----Original Message-----
> >>From: Vadim Gritsenko [mailto:vadim.gritsenko@verizon.net]
> >>Sent: Thursday, September 26, 2002 2:41 PM
> >>To: cocoon-users@xml.apache.org
> >>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:     <cocoon-users-unsubscribe@xml.apache.org>
> For additional commands, e-mail:   <cocoon-users-help@xml.apache.org>
> 

---------------------------------------------------------------------
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:     <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail:   <cocoon-users-help@xml.apache.org>


Mime
View raw message