Subject:XSLT Transformation - inserting dynamic form text in header of HTML table Author:k k Date:23 Jan 2008 10:02 AM Originally Posted: 23 Jan 2008 09:55 AM
I am XML newbie.
I have question about inserting dynamic text in the header of HTML table.
The headers (Commodity Description, HS4, etc.) are static and I would like to add Month value in the Columns 3-6. Instead of "Year Amount($)", I would like to have the column header as "Month Year Amount ($)".
Right now the "Year" value of column header displays the selected year value. Thats because I have created multiple XSL files corresponding to each year.
I would appreciate if someone can provide syntax for this.
Subject:XSLT Transformation - inserting dynamic form text in header of HTML table Author:(Deleted User) Date:24 Jan 2008 09:26 AM
Hi,
in XSL you insert dynamic text using xsl:value-of, as you are already doing when taking data from the XML to put it into the HTML columns.
But your source XML has no reference of the month associated with the data (well, it even doesn't show which year it is talking about), so it's hard to suggest you a syntax that could work out of the box.
Subject:XSLT Transformation - inserting dynamic form text in header of HTML table Author:k k Date:28 Jan 2008 10:44 PM
Alberto,
I am sorry for not getting back on this question. I got the code working. I made mistake in xs.Transform line where I did not pass the argumentList.