RE: [xsl] How to implement an array

Subject: RE: [xsl] How to implement an array
From: cknell@xxxxxxxxxx
Date: Fri, 07 Feb 2003 16:42:30 -0500
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:  [xsl] 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 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:

 XSL-List info and archive:

Current Thread