This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
Re: Chunking changes
- From: Bob Stayton <bobs at caldera dot com>
- To: Norman Walsh <ndw at nwalsh dot com>, docbook-apps at lists dot oasis-open dot org
- Date: Sun, 06 Oct 2002 22:32:49 -0700
- Subject: Re: DOCBOOK-APPS: Chunking changes
- References: <87k7kvmf8y.fsf@nwalsh.com>
On Sun, Oct 06, 2002 at 05:25:33PM -0400, Norman Walsh wrote:
>
> I've just checked in some changes to the way that chunking works.
> These changes make it possible to write a customization layer that
> changes both the chunking elements and how they appear.
>
> If you've already got a customization layer that changes the chunking
> elements, you will probably have to make some updates.
>
> Instead of calling "apply-imports" directly from inside elements like
> chunk-all-sections and process-chunk, these templates now expect to be
> passed the content as a parameter. The default content for the
> parameter is still 'apply-imports', but it's now possible to pass
> alternate content.
>
> If you don't update your customization, you'll probably see all of the
> chunks processed twice. Apologies, in advance, for the trouble.
Hi Norm,
This looks very useful. One thing I'm not clear about,
though. Is customizing the template named "chunk" in
chunk-common.xsl part of the process? That's the template
that tests whether an element is a chunk. That's a pretty
big template to customize, but it must be necessary since
something won't chunk if it doesn't pass that test.
And doesn't the "process-chunk" template need to be modified to
change the 'ischunk' test? It is currently passing the
context node to the chunk template rather than the
value of $content, which is what should be tested, no?
And chunkfn also selects '.' to form the filename.
Shouldn't it also select $content?
Or maybe I'm misunderstanding what $content is supposed to
be.
--
Bob Stayton 400 Encinal Street
Publications Architect Santa Cruz, CA 95060
Technical Publications voice: (831) 427-7796
Caldera International, Inc. fax: (831) 429-1887
email: bobs@caldera.com