xsl-list
[Top] [All Lists]

Re: how to view data in tabuler view

2002-10-31 08:05:34
Hi Ritu
thanx for your answer also there is something i want to ask about
i want to make this solution flexible which title not fixed and if u add any
element the stylesheet can handle it without changing
the solution u write is good if the number of items or elements is fixed
so i want to get caption once only from the document and put it in the
header of the table
thanx

----- Original Message -----
From: "Ritu" <rkama(_at_)sarvega(_dot_)com>
To: <xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com>
Sent: Thursday, October 31, 2002 4:43 PM
Subject: Re: [xsl] how to view data in tabuler view


Hi Mohammed,

Is this output intended to be HTML? If yes, then you can write HTML tags
to
generate a table like <table> <tr> <td> .... and produce this kind of
output
quite easily.

You can do something like

<xsl:template match='document'>
   <html><body>
  <table>
<tr><td>Product No</td>
<td>Unit Price</td>
<td>Currency </td>
<td>quantity </td>
<td>Price </td>
</tr>
<xsl:for-each select="row">
    <tr>
    <xsl:for-each select="item">
        <td><xsl:value-of select="amount"/></td>
    </xsl:for-each>
    </tr>
</xsl:for-each>
  </table>
  </body></html>
 </xsl:template>

----- Original Message -----
From: "Mohamed Abdel Hamid" <mohamed(_at_)imkenberg(_dot_)de>
To: <xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com>
Sent: Thursday, October 31, 2002 7:54 AM
Subject: Re: [xsl] how to view data in tabuler view


Hallo Vasu

the output i want is like this :-


--------------------------------------------------------------------------
--
---------------
product no.    Unit price    quantity        total price
1254                25 Euro               5            125
1524                12 Euro               2            24

--------------------------------------------------------------------------
--
---------------
also i want to put currency adjacent to price not a separate field
thanx

----- Original Message -----
From: "Vasu Chakkera" <vasucv(_at_)hotmail(_dot_)com>
To: <xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com>
Sent: Thursday, October 31, 2002 2:14 PM
Subject: Re: [xsl] how to view data in tabuler view


Hi Mohammed
Give an example of your final output. That would help us understand
the
problem better
Thanks
Vasu


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



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



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