This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
[docbook-apps] Re: Customisation layer
- From: Aidan Lister <aidanis at gmail dot com>
- To: docbook-apps at lists dot oasis-open dot org
- Date: Mon, 6 Dec 2004 05:41:40 +1100
- Subject: [docbook-apps] Re: Customisation layer
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:references; b=lm2UiSvldxDnRsrSnL/bDP3M2jmc9CpY1VX3fBBkuUa1pUBtZdaVcISUlwvp5wCMXK5LZ7CNs+FXTCl+Ll4+OErC44FCoc2iOKBijqMFxUsZaK8ENR2ZjRNAHiRQT5CAA8WwLhofun9LUgfiLpICAybmgI1xvqDmoSpjVuzZIlA=
- References: <40c9f84041203174034bae8a9@mail.gmail.com> <40c9f84041204165870348238@mail.gmail.com>
- Reply-to: Aidan Lister <aidanis at gmail dot com>
I'm going to reply to myself, because I've answered a couple of
questions and come across a couple of new ones:
On Sun, 5 Dec 2004 11:58:22 +1100, Aidan Lister <aidanis@gmail.com> wrote:
> Hello,
>
> I've pretty much finished my customisation layer, and it's looking
> pretty good. I have a couple of questions:
>
> 1) I'm noticing very strange characters in the output.
>
> http://virtualexplorer.com.au/jve/
>
> All of the Figure titles have funny A's, the degree symbols are
> prefixed too. Does anyone know what could cause this?
Although I'd prefer to use UTF-8 as my output-type, changing it to
US-ASCII or ISO-8859-1 solves the problem. Any more advice on this
would be appreciated.
> 2) Is it possible to prefix all paths provided by "fileref"
> attributes? Ie. If I had <graphic fileref="foo">, I'd like to build
> with "bar/foo". Is there a parameter for this? Could one be added? I'd
> rather not pull the entire make.graphic template out into my
> customisation layer, it's huge.
Yes. <xsl:param name="img.src.path">data/</xsl:param>
> 3) Why is <email> transformed into <code class="email">! This doesn't
> make sense.
>
> 4) How do I turn off generation of named ids?
>
> I'm happy for sections with an ID element to be given a named anchor -
> not that they need to, wouldn't it make more sense just to assign the
> ID to the actual element, it works the same
>
> But, some things in my document have an ID generated, like the <h1>
> element. I don't see a purpose for this, is there a parameter I can
> use to disable it?
>
> 5) I've been hunting around, but I'm unable to find a way to
> automagically scale all images to a maximum width. Is there a
> parameter for this in the docbook xsl?
>
6) Citations.
At the very top of my article, I must include a self-citation. This is
pretty standard when writing articles, perhaps it could be added to
docbook one day. At any rate, I decided to add it into my
customisation layer.
The problem I'm having is that I'm using the chunker (which is
fantastic), but I don't want the citation appearing at the top of
every page, so editing the <xsl:template name="chunk-element-content">
is no good. I either need a way to edit the first chunk's template, or
a way to test if the current chunk being processed is the first one.
Any advice appreciated.
> Thanks very much in advance, sorry for the barrage of questions.
>
> Kind Regards,
> Aidan
>