This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
Re: Self customising stylesheets, or clever Norm!
- To: docbook-apps at lists dot oasis-open dot org
- Subject: Re: DOCBOOK-APPS: Self customising stylesheets, or clever Norm!
- From: Norman Walsh <ndw at nwalsh dot com>
- Date: Sun, 20 May 2001 17:19:11 -0400
- References: <5.1.0.14.2.20010520174929.00b27130@127.0.0.1>
/ Dave Pawson <daveP@dpawson.freeserve.co.uk> was heard to say:
[...]
| <legalnotice> appears twice in the book I want to print.
| An actual copyright notice, and some trademark acknowledgements,
| for which I have used <legalnotice> again.
[...]
| I.e. to request one from many elements
| which one I want where.
|
| Is this reasonable?
Funny you should ask. I just ran into exactly the same problem for the
Entity Resolution Technical Committee draft. I have a legalnotice for
the copyright and an additional legalnotice for the "status of this
document" and I want them presented differently.
I constructed a version of template/titlepage.xsl that allows this:
<t:titlepage-content side="recto">
<title predicate="[1]"/>
<pubdate/>
<revhistory/>
<authorgroup/>
<copyright/>
<legalnotice predicate="[not(@role) or @role!='status']"/>
<abstract/>
<legalnotice suppress-template="1"
predicate="[@role='status']"/>
</t:titlepage-content>
(The suppress-template is necessary for ugly reasons.)
The problem is that in order to do this, I had to sacrifice the
ability to match both articleinfo|artheader which is probably not
appropriate for the general distribution.
I should try to find a better, general solution.
In the meantime, here's my hacked version of titlepage.xsl, that
should get you beyond your current problem.
template.xsl
Be seeing you,
norm
--
Norman Walsh <ndw@nwalsh.com> | Society is immoral and immortal;
http://www.oasis-open.org/docbook/ | it can afford to commit any kind
Chair, DocBook Technical Committee | of folly, and indulge in any kind
| of vice; it cannot be killed, and
| the fragments that survive can
| always laugh at the dead.--Henry
| Adams