Altova Mailing List Archives>Archive Index >comp.text.xml Archive Home >Recent entries [Thread Prev] >Thread Next - Re: XSLT: how to count records in the output text file? XSLT: how to count records in the output text file?To: NULL Date: 1/10/2006 10:27:00 AM I'm processing an XML input file getting a plain text file where from M nodes I got N output lines... It's not relevant but the input file is a recordset coming from a database and the output is an EDI message set. Now I need to put into the output file also some information regarding just the output file itself and not the input one. And it cannot be expressed in terms of input information. For example I need to determine and write how many number of lines in the output file are matching some conditions. Or I need to count the total number of records the output file is made of. (I need to compute the check records that the EDI wants somewhere in the messages..) So the question is: how can I do some counting, numbering, summing.. into the output file whilst I'm building it? I'd like to avoid a two step processing. Can XSLT handle it someway? Thanks for any help. | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
