This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
Re: Presentation of legalnotice with DSSSL
- From: Ian Castle <ian dot castle at coldcomfortfarm dot net>
- To: Declan Halpin <HalpinD at logica dot com>
- Cc: Docbook Apps <docbook-apps at lists dot oasis-open dot org>
- Date: Tue, 12 Feb 2002 18:37:51 +0000
- Subject: Re: DOCBOOK-APPS: Presentation of legalnotice with DSSSL
- References: <0202121817521B.01070@apc221.ie.logica.com>
Without thinking too hard (or testing) .... ;-)
Firstly, set the following variable:
(define %titlepage-in-info-order% #f)
Next, define what you want elements you want:
(define (book-titlepage-verso-elements)
(list (normalize "legalnotice")
(normalize "copyright")
(normalize "edition")
(normalize "pubdate")
(normalize "abstract")
(normalize "revhistory")))
Now use a "mode" to process these:
(mode book-titlepage-verso-mode
(element legalnotice
(make display-group
break-before: 'page
(process-children)
)
)
(element (legalnotice para)
(make paragraph
space-after: 10pt
(process-children)
)
)
...
Then all your other elements
)
Then everything should come out in the order you want.... Obviously you
need to center the paragraphs etc. But that should be straight forward.
Hope that helps..
On Tue, 2002-02-12 at 18:17, Declan Halpin wrote:
> Hi,
>
> I am trying to modify how a legalnotice is printed in pdf. Basically I would
> like the citetitle markup centered on the page followed by the remaining
> paragraphs of the legalnotice. I have tried the following code but the
> citetitle element gets printed before all paragraphs (see below)....
> Does anyone have an idea on what I should change with the code fragment below
> to get my desired output.
>
> Thanks
> Declan
> --------------------------------------------------------------------
> DSSSL code:
>
> (element (legalnotice para)
> (let* (
> (bookinf
> (select-elements (children (sgml-root-element))
> (normalize "bookinfo")))
> (legalnotice
> (select-elements (descendants bookinf) (normalize "citetitle"))))
> (make sequence
> (make paragraph
> font-posture: 'italic
> font-family-name: "Helvetica"
> font-size: 8pt
> use: book-titlepage-verso-style
> quadding: 'center
> font-size: 10pt
> (process-node-list (node-list-first legalnotice)))
> (make paragraph
> use: book-titlepage-verso-style
> quadding: 'start
> line-spacing: (* 0.8 (inherited-line-spacing))
> font-size: (* 0.8 (inherited-font-size))
> (process-children))
> )))
>
> --------------------------------------------------------------------
> Desired Output:
>
> Copyright, Confidentiality and Disclaimer
> para 1
>
> para 2
>
> para 3
>
> --------------------------------------------------------------------
> Actual Output:
>
> Copyright, Confidentiality and Disclaimer
> Copyright, Confidentiality and Disclaimer
> para 1
>
> Copyright, Confidentiality and Disclaimer
>
> para 2
> Copyright, Confidentiality and Disclaimer
>
> para 3
>
> This e-mail and any attachment is for authorised use by the intended recipient(s) only. It may contain proprietary material, confidential information and/or be subject to legal privilege. It should not be copied, disclosed to, retained or used by, any other party. If you are not an intended recipient then please promptly delete this e-mail and any attachment and all copies and inform the sender. Thank you.