xmlgraphics-fop-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Christopher R. Maden" <cr...@maden.org>
Subject Re: Sobtotal per Page
Date Fri, 17 Jul 2009 14:14:27 GMT
Carsten B. wrote:
> Is this in possible in any way. I would do something like that in JS or
> Java.

This is the root of your problem.  XSLT is not like JS or Java.  Those
languages are procedural, while XSLT is a declarative language.

Think about this processing model: the XSLT processor walks over the
input XML, executing the appropriate templates for each node it finds.
Now think about this model: the XSLT processor collects all the nodes in
the input XML, then fires up a separate thread for every single one to
find and execute the appropriate template.  The results should be the same.

That means that your XSLT needs to be able to determine the subtotal for
the 30,000th item in complete ignorance of what the subtotal was for the
29,999th item.

Chris Maden, text nerd  <URL: http://crism.maden.org/ >
“All I ask of living is to have no chains on me,
 And all I ask of dying is to go naturally.” — Laura Nyro
GnuPG Fingerprint: C6E4 E2A9 C9F8 71AC 9724 CAA3 19F8 6677 0077 C319

To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org

View raw message