OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]


Subject: Re: DOCBOOK-APPS: docbook quick reference card


On Thu, Aug 01, 2002 at 07:31:05PM -0700, Dave Pawson wrote:
> Below, the basic elements.
> 
> I see two uses for it.
> 
> 1. a quick reference card ala the xslt one from mulberrytech,
> which I find invaluable.

I did not see Mulberry's refcard, but I hacked a Q&D stylesheet in
DSSSL, which gives a useable (if not decent) result.  Please find it
attached.

Note: processing to postscript via jadetex does not appear to work for
me, it insists on declaring a portrait paper for the landcape layout.
Use pdfjadetex, and then convert to postscript if needed.

Regards,
-- 
Yann Dirson <Yann.Dirson@fr.alcove.com>                 http://www.alcove.com/
Technical support manager                Responsable de l'assistance technique
Senior Free-Software Consultant          Consultant senior en Logiciels Libres
Debian developer (dirson@debian.org)                        Développeur Debian
<!--
		Small QuickRef stylesheet.
-->

<!DOCTYPE style-sheet PUBLIC "-//James Clark//DTD DSSSL Style Sheet//EN" [
<!ENTITY parent.dsl PUBLIC "-//Norman Walsh//DOCUMENT DocBook Print Stylesheet//EN" CDATA dsssl>
]>

<style-sheet>
  <style-specification id="print" use="parent">
    <style-specification-body> 

(define %paper-type% "A4landscape")
(define %section-autolabel% #f)
(define %bf-size% 9pt)

(element section
  (let ((role (normalize (attribute-string (normalize "role")))))
    (if (and role
	     (string=? role (normalize "quickref")) )
	(let ((title-node (select-elements (children (current-node))
					   (normalize "title") )))
	  (make simple-page-sequence
	    page-n-columns: 6
	    use: default-text-style
	    quadding: %default-quadding%
	    left-margin: 1cm
	    right-margin: 1cm
	    top-margin: 3cm
	    bottom-margin: 1.5cm
	    left-header: (literal (string-append (data title-node)
						 " - "
						 "Quick reference card"))
	    (process-children) ) )
	($section$))))

    </style-specification-body>
  </style-specification>

  <external-specification id="parent" document="parent.dsl">
</style-sheet>


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]


Powered by eList eXpress LLC