469,309 Members | 2,792 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,309 developers. It's quick & easy.

Dynamically creating Columns in XSL

Hi,

I am new to XSL and need help in generating the Column Headings dynamically. Following is the Data I am getting from the Database:

Name, Task, Email,04/02,04/03,04/04

The bolded section changes and I need these Columns to shown in my Report. Can any one guide me pls..

Ramakrishna
Apr 13 '07 #1
1 1236
sani723
117 100+
Hi,

I am new to XSL and need help in generating the Column Headings dynamically. Following is the Data I am getting from the Database:

Name, Task, Email,04/02,04/03,04/04

The bolded section changes and I need these Columns to shown in my Report. Can any one guide me pls..

Ramakrishna

in my opinion use the XSL choose to check whether this tag contains value or not if contains value then show else not. but u have to repeat for all the columns, suppose u have 10 columns, u cna do like this

<xsl:choose>
<xsl:when test="col1!=''">
<xsl:value-of select="cols1" />
</xsl:when>
<xsl:when test="col2 !='' "> <!-- inside use single quotes//-->
<xsl:value-of select="cols1" />
</xsl:when>
.
.
.
.
.
.
.
</xsl:choose>

and repeat this for number of columns u have. i hope you can do this way, but if someone has some else solution then plz post here. thanx
Apr 14 '07 #2

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

2 posts views Thread by David Elliott | last post: by
6 posts views Thread by John Ruiz | last post: by
4 posts views Thread by sydney.luu | last post: by
5 posts views Thread by tshad | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by suresh191 | last post: by
reply views Thread by harlem98 | last post: by
reply views Thread by harlem98 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.