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 Display Modes
  #1 (permalink)  
Old March 23rd, 2005, 07:53 PM
Authorized User
 
Join Date: Jul 2003
Location: , , .
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
Default Page numbering

hi

i am returning results from a search, and all i want to do is number them.

ie pages: 1, 2, 3, 4 , 5 0f 10

what is the best way to do this through xsl?
i am using asp, xml & xsl.

thanks for any help.

Reply With Quote
  #2 (permalink)  
Old March 24th, 2005, 02:58 AM
joefawcett's Avatar
Wrox Author
Points: 9,763, Level: 42
Points: 9,763, Level: 42 Points: 9,763, Level: 42 Points: 9,763, Level: 42
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Exeter, , United Kingdom.
Posts: 3,074
Thanks: 1
Thanked 38 Times in 37 Posts
Default

There area number of options, you'll need to show some of the xml, xslt and results that you need.
Take a look at the documentation for the xsl:number element, this is probably what you'll use.

--

Joe (Microsoft MVP - XML)
Reply With Quote
  #3 (permalink)  
Old May 11th, 2005, 11:52 AM
Registered User
 
Join Date: May 2005
Location: , , .
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Can any one say how to get total number of pages?

I want to show the page numbers in the following form

Page 1 of 10
Reply With Quote
  #4 (permalink)  
Old May 11th, 2005, 10:40 PM
Registered User
 
Join Date: May 2005
Location: , , .
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I just dealt with this issue using XSL-FO.

What i did was add a reference at the end of my XSL to identify the end of my report or final page like this:
<fo:block id="end-of-report"/>

then in my header i just added:
<fo:block text-align="right">Page <fo:page-number/> of <fo:page-number-citation ref-id="end-of-report"/></fo:block>

Hope that helps!


Reply With Quote
  #5 (permalink)  
Old May 13th, 2005, 06:12 PM
Registered User
 
Join Date: May 2005
Location: , , .
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks, it helps.

Quote:
quote:Originally posted by grant6607
 I just dealt with this issue using XSL-FO.

What i did was add a reference at the end of my XSL to identify the end of my report or final page like this:
<fo:block id="end-of-report"/>

then in my header i just added:
<fo:block††text-align="right">Page <fo:page-number/> of <fo:page-number-citation ref-id="end-of-report"/></fo:block>

Hope that helps!


Reply With Quote
Reply


Thread Tools
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
Page numbering: count odd pages only zolex82 XSLT 0 December 5th, 2005 10:43 AM
Report Page numbering leehambly Access 1 March 17th, 2005 04:33 AM
Page numbering in crystal report 9.0 rajeshnerenki Crystal Reports 2 December 10th, 2004 10:29 AM
Crystal Report 9.0 Page numbering rajeshnerenki Crystal Reports 0 June 23rd, 2004 01:51 PM
page numbering while outputting agbeltekin Javascript 5 November 13th, 2003 11:03 AM



All times are GMT -4. The time now is 03:49 PM.


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