Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > XML > XSLT
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old April 9th, 2019, 03:00 AM
Authorized User
Points: 82, Level: 1
Points: 82, Level: 1 Points: 82, Level: 1 Points: 82, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
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>
Reply With Quote
  #2 (permalink)  
Old April 10th, 2019, 07:17 AM
Authorized User
Points: 82, Level: 1
Points: 82, Level: 1 Points: 82, Level: 1 Points: 82, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
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>
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 11:53 AM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.