Quantcast
Channel: C1 CMS Foundation - Open Source on .NET
Viewing all articles
Browse latest Browse all 2540

New Post: DateFormatting, date is taken from MS SQL

$
0
0
@Dinariys The problem is likely that you are looping through the individual <Table /> elements, but when you print the <ReplDateGood /> element value, you use a full XPATH (@napernik suggested this, but he probably did not expect you to take him that literal, expecting you to be an XPATH expert), so you end up picking the same value in each loop. Try changing df:Format(/in:inputs/in:result[@name='ReportBadReplication']/root/NewDataSet/Table/ReplDateGood, 'dd MM yyyy') to df:Format(ReplDateGood, 'dd MM yyyy')

By using a relative path to ReplDateGood you will now use the ReplDateGood value relative to the <Table /> element you are feeding into yout xsl:template, and all should work.

If that does not work, post your full XSLT as it looks now for context.

Viewing all articles
Browse latest Browse all 2540

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>