Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: XSLT: how to count records in the output text file?

From: Peter Flynn <peter.nosp@-.--------.-->
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/


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