[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: How to count elements on a page

Subject: Re: How to count elements on a page
From: Mete Kural <metekural@xxxxxxxxx>
Date: Sun, 1 Dec 2002 21:46:03 -0800 (PST)
rx pinpoint
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@xxxxxxxx> 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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.