XML Editor
Sign up for a WebBoard account Sign Up Keyword Search Search More Options... Options
Chat Rooms Chat Help Help News News Log in to WebBoard Log in Not Logged in
Show tree view Topic
Topic Page 1 2 3 4 5 6 7 8 9 Go to previous topicPrev TopicGo to next topicNext Topic
Postnext
k kSubject: 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.

This is the site I have created (Only Report Type 1 is working)
http://www.ustrade.fiu.edu/CustomsDistrict_Free.aspx

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.

Thanks


Document2007-1.xsl
xsl file

Unknown2007imp-2-4-1.xml
XML file

Postnext
(Deleted User) 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.

Can you post an XML that has these informations?

Thanks,
Alberto

Posttop
k kSubject: 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.

Thanks for your reply.

 
Topic Page 1 2 3 4 5 6 7 8 9 Go to previous topicPrev TopicGo to next topicNext Topic
Download A Free Trial of Stylus Studio 6 XML Professional Edition Today! Powered by Stylus Studio, the world's leading XML IDE for XML, XSLT, XQuery, XML Schema, DTD, XPath, WSDL, XHTML, SQL/XML, and XML Mapping!  
go

Log In Options

Site Map | Privacy Policy | Terms of Use | Trademarks
Stylus Scoop XML Newsletter:
W3C Member
Stylus Studio® and DataDirect XQuery ™are from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2016 All Rights Reserved.