Thank you for your response Mr. Pietschmann.
Somebody made this suggestion if RenderX's XEP is used
as the XSL formatter. Do you think this is practical:
"the only reasonable way to do it is to generate .xep
output
(using com.renderx.xep.gen.backends.H4XEP producer, or
-at|-format at
at XSLDriver's command prompt) and then postprocess
it.
rx:pinpoint is a useful tool for implementing the
functionality."
Thank you,
Mete
--- "J.Pietschmann" <j3322ptm(_at_)yahoo(_dot_)de> wrote:
Mete Kural wrote:
For example, I have a page with dictionary
entries. I
want to have a footnote on the right bottom corner
that shows how many dictionary entries there is on
that specific page. For every page, there will be
a
footnote telling the count of dictionary entries
on
the page. How do I count the number of certain
elements - for instance <dictionary-entry>
elements -
on a "page" and print the total count for that
page as
a footnote on the page?
Short answer: you can't. Once the content gets into
the
pagination process, there are no longer
dictionary-entry
elements available for counting.
Longer answer: If you like challenges, try any of
the
following:
- Implement pagination at the XSLT level. Whether
this
is workable depends on details of your problem,
it has
been done for dictionaries before.
- Implement extension elements for marking the
dictionary
entries and for counting the marks and print the
result.
Details depend heavily on the XSLFO processor you
are
using (for example, whether is supports
extensiona at all).
- Check whether creative use of SVG graphics in FO
markers
or absolute positioned blocks solves your
problem. The
graphics may overlap, and by carefully placing
dots
and windows, the result could be the number you
require.
Similar tricks had been used in various toys and
puzzles.
J.Pietschmann
XSL-List info and archive:
http://www.mulberrytech.com/xsl/xsl-list
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list