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 March 23rd, 2005, 08:53 PM
Authorized User
 
Join Date: Jul 2003
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.

 
Old March 24th, 2005, 03:58 AM
joefawcett's Avatar
Wrox Author
 
Join Date: Jun 2003
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)
 
Old May 11th, 2005, 11:52 AM
Registered User
 
Join Date: May 2005
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
 
Old May 11th, 2005, 10:40 PM
Registered User
 
Join Date: May 2005
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!


 
Old May 13th, 2005, 06:12 PM
Registered User
 
Join Date: May 2005
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!







Similar Threads
Thread Thread Starter Forum Replies Last Post
Page numbering: count odd pages only zolex82 XSLT 0 December 5th, 2005 11:43 AM
Report Page numbering leehambly Access 1 March 17th, 2005 05:33 AM
Page numbering in crystal report 9.0 rajeshnerenki Crystal Reports 2 December 10th, 2004 11: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 12:03 PM





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