Re: DOCBOOK-APPS: Self customising stylesheets, or clever Norm!

From
Norman Walsh <>
Date
2001-05-20T21:20:44+00:00
ID
Thread
Re: DOCBOOK-APPS: Self customising stylesheets, or clever Norm!
/ Dave Pawson <> 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.