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

table and columns

Subject: table and columns
From: "Richard Humagain" <bhimsengola@xxxxxxxxxxx>
Date: Tue, 17 Jul 2001 15:28:51 -0000
 table and columns
Hi, I hope someone can help me out.

At the end is a portion of my xml file.

I want to write a stylesheet that would create a table with as many columns as the number of "detailLabel" and the value of each "DetailDataField" should go on one column each. I am trying to get this output

Line  | Product ID  | Product Name     | Quantity  | Net Price
-------------------------------------------------------------------
1     |   1         |  AppTalk Server  | 5         |   9.99
------------------------------------------------------------------
2     |   2         |  ebTalk Server   | 5         |   9.99


I'm able to get the 5 columns with title but I can't figure out how I put the value of "DetailDataField" in a column each.


Any help will be appreciated

Thanks

Sushil


<ReportBand Name="detail" BandType="DetailBand"> <DetailLabel>Line</DetailLabel> <DetailLabel>Product Id</DetailLabel> <DetailLabel>Product Name</DetailLabel> <DetailLabel>Quantity</DetailLabel> <DetailLabel>Net Price</DetailLabel> <ReportElement Name="Detail" ElementType="DetailDataField"> <DetailDataField FieldName="Line">1</DetailDataField> </ReportElement> <ReportElement Name="Detail" ElementType="DetailDataField"> <DetailDataField FieldName="Product Id">1</DetailDataField> </ReportElement> <ReportElement Name="Detail" ElementType="DetailDataField"> <DetailDataField FieldName="Product Name">AppTalk Server</DetailDataField> </ReportElement> <ReportElement Name="Detail" ElementType="DetailDataField"> <DetailDataField FieldName="Quantity">5</DetailDataField> </ReportElement> <ReportElement Name="Detail" ElementType="DetailDataField"> <DetailDataField FieldName="Net Price">9.99</DetailDataField> </ReportElement> <ReportElement Name="Detail" ElementType="DetailDataField"> <DetailDataField FieldName="Line">2</DetailDataField> </ReportElement> <ReportElement Name="Detail" ElementType="DetailDataField"> <DetailDataField FieldName="Product Id">2</DetailDataField> </ReportElement> <ReportElement Name="Detail" ElementType="DetailDataField"> <DetailDataField FieldName="Product Name">ebTalk Server</DetailDataField> </ReportElement> <ReportElement Name="Detail" ElementType="DetailDataField"> <DetailDataField FieldName="Quantity">5</DetailDataField> </ReportElement> <ReportElement Name="Detail" ElementType="DetailDataField"> <DetailDataField FieldName="Net Price">9.99</DetailDataField> </ReportElement> </ReportBand>

_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com


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.