Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: Converting a xml STRING displaying a long date, to dd/mm/yyyy

From: "Joe Fawcett" <joefawcett@---------.------>
To: 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 



transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent