xsl-list
[Top] [All Lists]

Re: how to view data in tabuler view

2002-10-31 05:14:22
Hi Mohammed
Give an example of your final output. That would help us understand the
problem better
Thanks
Vasu

----- 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 12:15 PM
Subject: [xsl] how to view data in tabuler view


Hi all
i post a message before related to xmlform and i see that it is not clear
or
i didn't write what i want clear .
now i tell my problem in other way,the following is XML file which i want
to
get invoice from it :-

<?xml version="1.0" ?>

<document>
 <!-- Invoice Header -->
 <row>
  <item>
   <caption>product no</caption>
   <amount>123456</amount>
  </item>
  <item>
   <caption>Unit Price</caption>
   <amount>23.5</amount>
  </item>
  <item>
   <caption>currencey</caption>
   <amount>Euro</amount>
  </item>
  <item>
   <caption>quantity</caption>
   <amount>2</amount>
  </item>
  <item>
   <caption>total price</caption>
   <amount>47</amount>
  </item>
 </row>
 <row>
  <item>
   <caption>product no</caption>
   <amount>231253</amount>
  </item>
  <item>
   <caption>Unit Price</caption>
   <amount>20</amount>
  </item>
  <item>
   <caption>currencey</caption>
   <amount>Euro</amount>
  </item>
  <item>
   <caption>quantity</caption>
   <amount>5</amount>
  </item>
  <item>
   <caption>total price</caption>
   <amount>100</amount>
  </item>
 </row>
 <row>
  <item>
   <caption>product no</caption>
   <amount>42152</amount>
  </item>
  <item>
   <caption>Unit Price</caption>
   <amount>15</amount>
  </item>
  <item>
   <caption>currencey</caption>
   <amount>Euro</amount>
  </item>
  <item>
   <caption>quantity</caption>
   <amount>3</amount>
  </item>
  <item>
   <caption>total price</caption>
   <amount>45</amount>
  </item>
 </row>

</document>

the above data must view in tabuler form, which caption is the titles or
table header , and the values are table body.
my first question is how to put all captions as titles which the caption
repeat every row and i want to get it once only,and put each related data
under its title
second how to put currency value beside price without currency caption.
thanx


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


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