|
Subject:
|
Page Numbers
|
|
Posted By:
|
bcogney
|
Post Date:
|
4/12/2006 4:52:35 PM
|
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
|
|
Reply By:
|
mhkay
|
Reply Date:
|
4/12/2006 5:04:07 PM
|
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
|
|
Reply By:
|
bcogney
|
Reply Date:
|
4/13/2006 2:13:35 PM
|
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
|
|
Reply By:
|
mhkay
|
Reply Date:
|
4/13/2006 6:00:55 PM
|
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
|