This is the mail archive of the mailing list .

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: 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]"/>
    <legalnotice predicate="[not(@role) or @role!='status']"/>
    <legalnotice suppress-template="1"

(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.


                                        Be seeing you,

Norman Walsh <>      | Society is immoral and immortal; | 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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]