Reply to: How to tell the number of pages in XMetal?January 16, 2009 at 5:54 pm
The PDF is interesting, but it does not answer the question of why you need to know the number of pages are in the document while you are writing the content. In fact, compared to many other documents I have seen, it looks even less likely that you would need to know this information, as I do not see any references to physical page numbers anywhere in the document. Most of the numbering appears to refer to section numbers that have nothing to do with the page number.
It is a fundamental characteristic of XML that there is no concept of page numbers in the XML source code. Pagination is formatting, and by definition does not exist until output has been generated.