Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 19 Aug 1999 01:15:47 +0100
From:      Nik Clayton <nik@freebsd.org>
To:        Jesus Rodriguez <jesusr@ncsa.es>
Cc:        Bill Fumerola <billf@jade.chc-chimes.com>, doc@FreeBSD.ORG, Nik Clayton <nik@FreeBSD.ORG>
Subject:   Re: DocBook FAQ available for critique
Message-ID:  <19990819011547.A97704@catkin.nothing-going-on.org>
In-Reply-To: <XFMail.990818004551.jesusr@ncsa.es>; from Jesus Rodriguez on Wed, Aug 18, 1999 at 12:45:51AM %2B0200
References:  <Pine.BSF.4.10.9908171731260.46919-100000@jade.chc-chimes.com> <XFMail.990818004551.jesusr@ncsa.es>

next in thread | previous in thread | raw e-mail | index | archive | help

--RnlQjJ0d97Da+TV1
Content-Type: text/plain; charset=us-ascii

On Wed, Aug 18, 1999 at 12:45:51AM +0200, Jesus Rodriguez wrote:
> On 17-Aug-99 Bill Fumerola wrote:
> > On Tue, 17 Aug 1999, Nik Clayton wrote:
> > 
> >> The DocBook'd FAQ is available for critique at
> > 
> > .1. I'd like to customize my kernel. Is it difficult? 
> > 
> > Is the '.1.' because this is an outline?
> 
> And is possible remark (bold or some thing else) the questions into the text?.
> It's difficult reconigze where begins and ends every question.

It is.  I haven't committed this yet, because if people don't like it I'd
have to back it out.

Try adding the attached patch to freebsd.dsl, and then rebuild the FAQ
(or the fdp-primer, the translations section uses a Q/A format) and
let me know what you think.

This is probably highly specific to v1.40 of the modular stylesheets, and
may not work if you have a different version of them installed.

N
-- 
 [intentional self-reference] can be easily accommodated using a blessed,
 non-self-referential dummy head-node whose own object destructor severs
 the links.
    -- Tom Christiansen in <375143b5@cs.colorado.edu>

--RnlQjJ0d97Da+TV1
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename=diff

Index: freebsd.dsl
===================================================================
RCS file: /home/ncvs/doc/share/sgml/freebsd.dsl,v
retrieving revision 1.6
diff -u -r1.6 freebsd.dsl
--- freebsd.dsl	1999/04/08 14:17:50	1.6
+++ freebsd.dsl	1999/08/18 18:44:22
@@ -57,7 +57,7 @@
 
       ]]>
 
-      <!-- Both sets of stylesheets .................................... -->
+      <!-- Both sets of stylesheets ..................................... -->
 
       (define %may-format-variablelist-as-table%
         #f)
@@ -121,9 +121,35 @@
       (element maketarget ($mono-seq$))
       (element makevar ($mono-seq$))
 
-      <!-- FAQList can wait. I've been drinking, and a brief glance at
-           /usr/local/share/sgml/docbook/dsssl/modular/html/dblist.dsl is
-           enough to bring me out in cold, Lisp induced sweats. . . -->
+      <!-- QAndASet ..................................................... -->
+
+      <!-- Default to labelling Q/A with Q: and A: -->
+
+      (define (qanda-defaultlabel)
+        (normalize "qanda"))
+
+      <!-- For the HTML version, display the questions in a bigger, bolder
+           font. -->
+
+      <![ %output.html [
+      (element question
+        (let* ((chlist   (children (current-node)))
+               (firstch  (node-list-first chlist))
+               (restch   (node-list-rest chlist)))
+               (make element gi: "DIV"
+                     attributes: (list (list "CLASS" (gi)))
+                     (make element gi: "P" 
+                           (make element gi: "BIG"
+                                 (make element gi: "A"
+                                       attributes: (list
+                                                   (list "NAME" (element-id)))
+                                       (empty-sosofo))
+                                 (make element gi: "B"
+                                       (literal (question-answer-label
+                                                (current-node)) " ")
+                                       (process-node-list (children firstch)))))
+                    (process-node-list restch))))
+      ]]>
 
     </style-specification-body>
   </style-specification>

--RnlQjJ0d97Da+TV1--


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-doc" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19990819011547.A97704>