Altova Mailing List Archives>Archive Index >microsoft.public.xsl Archive Home >Recent entries >Thread Prev - Re: Converting a xml STRING displaying a long date, to dd/mm/yyyy >Thread Next - Re: Converting a xml STRING displaying a long date, to dd/mm/yyyy Re: Converting a xml STRING displaying a long date, to dd/mm/yyyyTo: NULL Date: 12/22/2008 9:53:00 AM "Savvoulidis Iordanis" <SavvoulidisIordanis@d...> wrote in message news:D20699BD-103C-4C37-A3E3-6FB0C0D3F950@m...... > How can I prefix each resulting row in my produced CSV file, with the > logged > on username as a parameter? Each user executing the XSL transformation, > should be the 1st column in the CSV file, that will be bulk copied into > SQL > Server. > I want to produce something like this: > > username;ACTIVE;22/12/2008;19:00;200;1.8;KOBLENTZ;3.15;INGOLDSTAD;3.5 > username;ACTIVE;22/12/2008;19:00;200;1.85;WATFORD;3.15;COVENTRY;3.5 > username;ACTIVE;22/12/2008;19:00;200;1.85;ARSENAL;3.15;CARDIFF;3.5 Pure XSLT has no access to this information. I would define a global parameter: <xsl:stylesheet .... <xsl:param name="user" /> And pass this in, see the example here: http://msdn.microsoft.com/en-us/library/system.xml.xsl.xsltargumentlist.addparam.aspx You can retrieve the username from User.Identity.Name from within the ASP page. -- Joe Fawcett (MVP - XML) http://joe.fawcett.name | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
