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

How can I create CROSSTAB ?

Subject: How can I create CROSSTAB ?
From: "David ROBERT" <d.robert@xxxxxxxxx>
Date: Sun, 5 Dec 1999 23:28:18 +0100
xslt crosstab
Hi all,

I have some records extracted from a db from which I would like to generate
crosstab reports in html via xslt.

xml source:

<service_records>
<Invoice_rec>
<departement>department1</departement>
<servicetype>national carrier</servicetype>
<calls>100</calls>
<charge>1500</charge>
</invoice_rec>
<Invoice_rec>
<departement>department1</departement>
<servicetype>international carrier</servicetype>
<calls>150</calls>
<charge>3000</charge>
</invoice_rec>
<Invoice_rec>
<departement>department2</departement>
<servicetype>national carrier</servicetype>
<calls>110</calls>
<charge>1200</charge>
</invoice_rec>
</service_records>

I would like the following html output, I would like to know how I can make
correct select statement (choose/when/otherwise) on a node content (text or
number).


<html>
<p>department1</p>
<table><tr>
<td>national carrier</td><td>100</td><td>1500</td></tr>
<tr><td>international carrier</td><td>150</td><td>3000</td></tr>
</table>
<p>department2</p>
<table><tr>
<td>national carrier</td><td>110</td><td>1200</td></tr>
</table>
</html>

If someone has already done this? thanks

david


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


Current Thread

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.