cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sylvain Wallez <wallez.anyw...@free.fr>
Subject Re: once again: formating output document
Date Tue, 05 Sep 2000 15:40:41 GMT
Try to put "formatter.text/xhtml.indent = 1" in cocoon.properties. This
tells the Cocoon formatter to use 1 space indenting. It works fine for
me with the text/html/loose formatter.

-Sylvain


Drasko Kokic a écrit :
> 
> Hello there,
> 
> It's hard to belive that no one could shed some light
> on this topic ... why the following XSL code:
> 
>   <xsl:template match="STOCKINFO">
>     <xsl:processing-instruction
> name="cocoon-format">type="text/html"</xsl:processing-instruction>
> 
>     <HTML>
>       <HEAD>
>         <TITLE><xsl:value-of select="TITLE"/></TITLE>
>       </HEAD>
> 
>       <BODY bgcolor="#FFFFFF">
>         <CENTER>
> 
>           <TABLE border="1" width="80%"
> cellpadding="4">
>             <TR>
>               <TD bgcolor="{$title-bg-color}"
> align="left" colspan="4" rowspan="1" valign="top">
>                 <BIG><BIG><xsl:value-of
> select="TITLE"/></BIG></BIG>
>                 at <xsl:value-of
> select="/STOCKINFO/SYSDATE/ROWSET/ROW/SYSDATE/."/>
>               </TD>
>             </TR>
>             <TR>
>               <TH>BID_PRICE</TH>
>               <TH>BID_SIZE</TH>
>               <TH>ASK_PRICE</TH>
>               <TH>ASK_SIZE</TH>
>             </TR>
>             <TR>
>               <TD><xsl:value-of
> select="STOCK//BID_PRICE"/></TD>
>               <TD><xsl:value-of
> select="STOCK//BID_SIZE"/></TD>
>               <TD><xsl:value-of
> select="STOCK//ASK_PRICE"/></TD>
>               <TD><xsl:value-of
> select="STOCK//ASK_SIZE"/></TD>
>             </TR>
>           </TABLE>
> 
>           <BR/>Your portfolio contains
> <B><xsl:value-of select="TOTAL//QUANTITY"/></B>
> shares.
> 
>         </CENTER>
>       </BODY>
>     </HTML>
>   </xsl:template>
> 
> produces following HTML code:
> 
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN"
> "http://www.w3.org/TR/REC-html40/strict.dtd">
> <HTML><HEAD><TITLE>Stock Information on
> INSP</TITLE></HEAD><BODY
> bgcolor="#FFFFFF"><CENTER><TABLE border="1"
> cellpadding="4"
> width="80%"><TR><TD align="left" bgcolor="#c0c0c0"
> colspan="4"
> rowspan="1" valign="top"><BIG><BIG>Stock Information
> on INSP</BIG></BIG>
>                 at 2000-09-05
> 17:20:59.0</TD></TR><TR><TH>BID_PRICE</TH><TH>BID_SIZE</TH><TH>ASK_PRICE</TH><TH>ASK_SIZE</TH></TR><TR><TD>40.50</TD><TD>100</TD><TD>40.70</TD><TD>200</TD></TR></TABLE><BR>Your
> portfolio contains <B>1050</B> shares.
> 
>         </CENTER></BODY></HTML>
> 
> <!-- This page was served in 711 milliseconds by
> Cocoon 1.7.4 -->
> 
> It is very unreadable and I would sometimes like to be
> able to get more neaty result code.
> 
> TIA
> Drasko
> 
> P.S.  I guess my email client will make it look even
> more messy :-)
> 
> --- Drasko Kokic <drasko_kokic@yahoo.com> wrote:
> > I am interested to see the source of a document I
> > get
> > in my browser in a more readable form.  I wonder if
> > there is any way to influence how the final document
> > is going to be "styled".  Changing xsl files make no
> > difference :-(
> >

Mime
View raw message