Wrox Programmer Forums
Go Back   Wrox Programmer Forums > XML > XML
|
XML General XML discussions.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the XML 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 12th, 2006, 04:52 PM
Authorized User
 
Join Date: Apr 2006
Posts: 51
Thanks: 0
Thanked 0 Times in 0 Posts
Default Page Numbers

Need help to add page numbers to an XML file. Is there something we could add in the structure of the XML file? when you have hundreds of pages it's time consuming to add <?page #?> to each page!
I think the hardest part is to know where to add the page number when you want to be concistant with a book or a journal.

thanks

Bill

 
Old April 12th, 2006, 05:04 PM
mhkay's Avatar
Wrox Author
 
Join Date: Apr 2004
Posts: 4,962
Thanks: 0
Thanked 292 Times in 287 Posts
Default

I'm not sure what you mean by a page number. Are pages something that exist in your XML file, perhaps as <page> elements, or are they something that comes into existence when the XML is rendered, e.g. using XSL-FO?

If the pages exist as <page> elements then it's easy to add a page number using a simple XSLT transformation.

Michael Kay
http://www.saxonica.com/
Author, XSLT Programmer's Reference and XPath 2.0 Programmer's Reference
 
Old April 13th, 2006, 02:13 PM
Authorized User
 
Join Date: Apr 2006
Posts: 51
Thanks: 0
Thanked 0 Times in 0 Posts
Default

page is not a <page> element. I got some XML files and they don't have pages, and I need to add pages to them according to the hard copy (book for example). Not sure how it's rendered, but does XSL-FO come handy when adding page numbers if XML is rendered? not sure if I understand that, or if it's something I could suggest to the person rendering the XML files. my understanding that the origin of these XML files is either a PDF file or an XML file

thanks
Bill

 
Old April 13th, 2006, 06:00 PM
mhkay's Avatar
Wrox Author
 
Join Date: Apr 2004
Posts: 4,962
Thanks: 0
Thanked 292 Times in 287 Posts
Default

If page boundaries are determined by the rendering process, then clearly allocation of page numbers is part of that process. But you seem to be very vague about what that process is, so I can't really help you.

Michael Kay
http://www.saxonica.com/
Author, XSLT Programmer's Reference and XPath 2.0 Programmer's Reference





Similar Threads
Thread Thread Starter Forum Replies Last Post
XSL Fo: Forcing page numbers ashishb2281 XSLT 0 August 1st, 2008 08:43 AM
Changing color of page-numbers in DataGrid anup_daware ASP.NET 1.0 and 1.1 Basics 2 October 18th, 2007 07:04 AM
Crystal Subreport Page Numbers srnarla Crystal Reports 3 September 10th, 2006 03:30 AM
Page Numbers Jacky Kenna Forum and Wrox.com Feedback 0 June 7th, 2005 02:04 PM
Page Numbers for Reports twsinc Access VBA 4 March 10th, 2004 09:15 PM





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