This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
Re: [docbook-apps] Page X of Y in user.footer.navigation
- From: Diane Larin <diane at inro dot ca>
- To: docbook-apps at lists dot oasis-open dot org
- Date: Thu, 31 Mar 2005 19:32:47 -0500 (EST)
- Subject: Re: [docbook-apps] Page X of Y in user.footer.navigation
- Reply-to: Diane Larin <diane at inro dot ca>
I had a look at the 'process-chunk-element' template but I find
it quite cryptic (I don't have a lot of experience in writing/modifying
XSL stylesheets). I was expecting that I was not the first one to have
this need and that a "recipe" would exist :-(
Diane Larin
INRO
On Wed, 30 Mar 2005, Bob Stayton wrote:
> I think this could be done by borrowing some of the chunkfast code.
It
> precomputes a node-set of all the chunks. Once you have that, you
could
> count the nodes to get Y, and figure out the position of the current
chunk
> in the node-set to get X. Take a look at the first part of the
template
> named 'process-chunk-element' in html/chunk-code.xsl. It shows how to
> process nodes in the chunk node-set.
>
> Bob Stayton
> Sagehill Enterprises
> DocBook Consulting
> bobs@sagehill.net
>
>
> ----- Original Message -----
> From: "Diane Larin" <diane@inro.ca>
> To: <bobs@sagehill.net>
> Cc: <diane@inro.ca>
> Sent: Wednesday, March 30, 2005 7:06 AM
> Subject: Re: [docbook-apps] Page X of Y in user.footer.navigation
>
>
> > > I'm not sure I understand. There are no page numbers in chunked
HTML.
> > > Do you mean to label the chunks with a sequence number X, with Y
being
> > > the total number of chunks?
> >
> > Exactly. This is for a tutorial where we want to be able to inform
> > the user what remains to be done.
> >
> > Diane Larin
> > INRO