File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes XML and Related Technologies and the fly likes xsl-region-body using content from body. Is this possible? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "xsl-region-body using content from body. Is this possible?" Watch "xsl-region-body using content from body. Is this possible?" New topic
Author

xsl-region-body using content from body. Is this possible?

Colm Dickson
Ranch Hand

Joined: Apr 04, 2009
Posts: 89
Hello all.

I have a problem with an xsl translation to create an FO file for pdf conversion. The body of my document is a table that loops over transaction records and it works and outputs fine. My real problem is that I want a summary block in the xsl-region-end part of the page(top right).This is static for every page but my issue is that the summary depends on content in the body. For example, balance one has its transactions displayed in the table and then I move to a new page and show transaction for the next balance name also in the table but i want my summary to change at the top summarising the transactions on the balance that the table in the body is processing. Is there any way for me to do this?

Thanks,

Colm
Colm Dickson
Ranch Hand

Joined: Apr 04, 2009
Posts: 89
Hello again.

I managed to find a way to do this after much searching. I used a <fo:marker/> embedded within the template where I needed to get my data from. In this I could build up my formatted block containing the details I needed and these details changed as the data in the template was processed. You define the marker and give it a name using

then wherever you want to retrieve the marker in the document you call

In my case, I called this in my static content on the xsl-region-end
e.g.


I hope this is of some use to anyone else requiring the same although if other methds exist please let me know.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: xsl-region-body using content from body. Is this possible?
 
Similar Threads
How to get XSL table with alternating rows highlighted
Dirty read (?) problem
XSL FO: forcing page numbers
PDF file contents of word document using XSLT.
Code Allignment In Xml Spy Editor