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

RE: How to implement an array

Subject: RE: How to implement an array
From: cknell@xxxxxxxxxx
Date: Fri, 07 Feb 2003 16:42:30 -0500
implement an array
Do I understand that you have an element which will contain child elements, each of which you wish to use as the heading values for a table?

If that is right, is it also correct that you will have one or more instances of the parent element, but that the child elements are optional? That is to say that all possible child elements will not necessarily appear in all instances of the parent element.

If these things are true, then we have two problems to solve:
1) collect all possible values for column names
2) construct a table with one column for each column name

Is this correct?
Charles Knell
cknell@xxxxxxxxxx - email

-----Original Message-----
From:     Imrran Wahid <devguy2003@xxxxxxxxx>
Sent:     Fri, 7 Feb 2003 12:34:40 -0800 (PST)
To:       XSL-List@xxxxxxxxxxxxxxxxxxxxxx
Subject:   How to implement an array

Can I use an array in xsl? If not, any ideas on how to
do the following:

I am using the elements of a particular node to create
a table. The name of the elements are used for the
column headings. The node is uneven...a named child
element could exist in one row, but may be omitted
from others. So i build the heading by testing the
parent to see if there are elements of a named child.
Now I would like to use the name from the column
headings as a parameter to pass to a template to
populate the table cells. Problem is i do not know how
to store the column headings...like in an array.

Are there any other way i could do this?


Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.

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

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

Current Thread


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.
First Name
Last Name
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.