[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]
Subject: Re: DOCBOOK-APPS: Self customising stylesheets, or clever Norm!
/ 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.
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
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]
Powered by eList eXpress LLC