Altova Mailing List Archives>Archive Index >comp.text.xml Archive Home >Recent entries >Thread Prev - Re: XSLT: how to count records in the output text file? [Thread Next] Re: XSLT: how to count records in the output text file?To: NULL Date: 1/11/2006 11:39:00 PM gualtmacchi@y... wrote: > If I'm not wrong count() works just on the input file. > > I have instead to do some counting on the outputfile. XSLT cannot access the destination tree in this way. > Don't know if XSLT has the ability to do some computation on the output > file. But that's what I'd need. > > Otherwise I should express the computation in terms of the input but it > would be really complex as 1 input node is related to many output text > lines depending on many conditions varying from node to node. The only alternative to doing it by computation (ie reproducing the steps in the computational calculation) is to perform those steps in a recursive named template, where you can add n to m at each stage and pass the result as a parameter to the next iteration (then output it at the end). ///Peter -- XML FAQ: http://xml.silmaril.ie/ | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
