[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: Copy-of question

Subject: RE: Copy-of question
From: Jarno.Elovirta@xxxxxxxxx
Date: Tue, 20 Jan 2004 11:13:26 +0200
table xsl
Hi,

>    <TABLE border="0" cellpadding="0" cellspacing="0" height="5px"
> align="center">
>      <TR>
>          <TD class="LabelBM" style="width:30px">10/03/2004</TD>

WRT HTML output, I'd recommend you lable the TR element with class "LabelBM" and write your CSS using .LabelBM > TD, the generated HTML is cleaner that way.

>         <TD class="LabelBM" style="width:30px">11/03/2004</TD>
>         <TD class="LabelBM" style="width:30px">12/03/2004</TD>
>      </TR>
>     <TR>
>         <TD class="LabelBM" style="width:30px">70.45</TD>
>         <TD class="LabelBM" style="width:30px">90.45</TD>
>         <TD class="LabelBM" style="width:30px">90.55</TD>
>      </TR>
>    </TABLE>
> 
> I do this with XSL:
>                             <TABLE border="0" class="DatosHotel"
> cellpadding="0" cellspacing="0" height="5px" align="center">
> 			           <TR>
>       			             <xsl:for-each 
> select="DETAILS/LDAYS/DAY">

Here you process all the DETAILS in the document. Instead, use

  xsl:for-each DETAILS/LDAYS
    table
      xsl:for-each DAY
        tr
          …
      xsl:for-each DAY
        tr
          …

or if you want everything into the same table, 

  table
    xsl:for-each DETAILS/LDAYS
      xsl:for-each DAY
      tr
        …
      xsl:for-each DAY
      tr
        …
    
> statement? How is
> more eficient, as my way or with a copy statement?

There's nothing to really copy in your transformation because the input and output tree use completely different elements even thought the trees are not unlike in structure.
 
Cheers,

Jarno - Dulce Liquido: Psicosis

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread
  • Copy-of question
    • Fran - Tue, 20 Jan 2004 03:55:02 -0500 (EST)
      • <Possible follow-ups>
      • Jarno . Elovirta - Tue, 20 Jan 2004 04:13:35 -0500 (EST) <=

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.