Wrox Programmer Forums
Go Back   Wrox Programmer Forums > XML > XSLT
|
XSLT General questions and answers about XSLT. For issues strictly specific to the book XSLT 1.1 Programmers Reference, please post to that forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the XSLT section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old April 9th, 2019, 03:00 AM
Authorized User
 
Join Date: Feb 2017
Posts: 21
Thanks: 1
Thanked 0 Times in 0 Posts
Default xslt items count in every page

I have XML data and I need to display the data using a dynamic table in XSLT and generate a PDF file:

This table can span multiple pages based on number of items in the XML
in each and every page in the footer I need to display the items count on that page. For example a page can accommodate 10 items and if the xml has 15 nodes, I need to display item count as 10 in the first page and 5 in the second page footer.

XML input:

<items>
<itemPin>123..</itemPin>
<amount></amount>
</items>
<items>
<itemPin>123..</itemPin>
<amount></amount>
</items>
<items>
<itemPin>123..</itemPin>
<amount></amount>
</items>
<items>
<itemPin>123..</itemPin>
<amount></amount>
</items>
<items>
<itemPin>123..</itemPin>
<amount></amount>
</items>
<items>
<itemPin>123..</itemPin>
<amount></amount>
</items>
 
Old April 10th, 2019, 07:17 AM
Authorized User
 
Join Date: Feb 2017
Posts: 21
Thanks: 1
Thanked 0 Times in 0 Posts
Default

please help me


Quote:
Originally Posted by yozsubasi View Post
I have XML data and I need to display the data using a dynamic table in XSLT and generate a PDF file:

This table can span multiple pages based on number of items in the XML
in each and every page in the footer I need to display the items count on that page. For example a page can accommodate 10 items and if the xml has 15 nodes, I need to display item count as 10 in the first page and 5 in the second page footer.

XML input:

<items>
<itemPin>123..</itemPin>
<amount></amount>
</items>
<items>
<itemPin>123..</itemPin>
<amount></amount>
</items>
<items>
<itemPin>123..</itemPin>
<amount></amount>
</items>
<items>
<itemPin>123..</itemPin>
<amount></amount>
</items>
<items>
<itemPin>123..</itemPin>
<amount></amount>
</items>
<items>
<itemPin>123..</itemPin>
<amount></amount>
</items>





Similar Threads
Thread Thread Starter Forum Replies Last Post
Total Cart Count of Items plavalle BOOK: Professional CodeIgniter ISBN: 978-0-470-28245-8 0 September 9th, 2012 07:27 AM
For repeated ComboBoxes Count Selected Items Borhani Excel VBA 1 March 24th, 2008 06:49 PM
Count the same items stasnikov Access 2 January 15th, 2007 06:20 AM
Count the same items stasnikov Access VBA 1 January 12th, 2007 12:27 PM
listbox control items count shows 0. vikram_bendre ASP.NET 2.0 Basics 5 August 24th, 2006 08:37 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.