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

Re: table and columns

Subject: Re: table and columns
From: tcn@xxxxxxxxxxxxx (Trevor Nash)
Date: Tue, 17 Jul 2001 18:31:22 GMT
reportelement
On Tue, 17 Jul 2001 15:28:51 -0000, "Richard Humagain"
<bhimsengola@xxxxxxxxxxx> wrote:

...
>Sushil

??

To whom it may concern...

>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.
>
It *can* be done - have a look in the recent messages in the archive
for 'grouping elements'.

But you will make life so much easier for yourself if you redesign the
input document first.  At the very least introduce an element to
contain all the ReportElement/DetailDataField for a given line.  And
whats the point of the ReportElement element anyway?

>
>
><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

--
Traditional training & distance learning,
Consultancy by email

Melvaig Software Engineering Limited
voice:     +44 (0) 1445 771 271 
email:     tcn@xxxxxxxxxxxxx

 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.