authorgroup description in articles

Ceri Davies ceri at FreeBSD.org
Wed Sep 22 08:48:16 UTC 2004


On Wed, Sep 22, 2004 at 10:11:11AM +0400, Dmitry Morozovsky wrote:
> Dear colleagues,
> 
> in freebsd.dsl we have the following comment
> 
>       <!-- We would like the author attributions to show up in line
>            with the section they refer to.  Authors who made the same
>            contribution should be listed in a single <authorgroup> and
>            only one of the <author> elements should contain a <contrib>
>            element that describes what the whole authorgroup was
>            responsible for.  For example:
> 
>            <chapterinfo>
>              <authorgroup>
>                <author>
>                  <firstname>Bob</firstname>
>                  <surname>Jones</surname>
>                  <contrib>Contributed by </contrib>
>                </author>
>                <author>
>                  <firstname>Sarah</firstname>
>                  <surname>Lee</surname>
>                </author>
>              </authorgroup>
>            </chapterinfo>
> 
>            Would show up as "Contributed by Bob Jones and Sarah Lee".  Each
>            authorgroup shows up as a separate sentence. -->
> 
> and such construction works in book chapters ok. However, when I try to use it
> inside article's articleinfo, it is not rendering correctly (AFAICC).

Naive, untested, patch attached.  Please try that out.

Ceri
-- 
It is not tinfoil, it is my new skin.  I am a robot.
-------------- next part --------------
Index: freebsd.dsl
===================================================================
RCS file: /home/ncvs/doc/share/sgml/freebsd.dsl,v
retrieving revision 1.82
diff -u -r1.82 freebsd.dsl
--- freebsd.dsl	30 Aug 2004 09:19:35 -0000	1.82
+++ freebsd.dsl	22 Sep 2004 08:45:55 -0000
@@ -837,6 +837,8 @@
            authorgroup shows up as a separate sentence. -->
   
 
+      (element articleinfo 
+        (process-children))
       (element chapterinfo 
         (process-children))
       (element sect1info 
@@ -849,6 +851,8 @@
         (process-children))
       (element sect5info 
         (process-children))
+      (element (articleinfo authorgroup author)
+        (literal (author-list-string)))
       (element (chapterinfo authorgroup author)
         (literal (author-list-string)))
       (element (sect1info authorgroup author)
@@ -870,6 +874,8 @@
             (process-children)
             (literal ".  "))))
 
+      (element (articleinfo authorgroup)
+        (custom-authorgroup))
       (element (chapterinfo authorgroup)
         (custom-authorgroup))
       (element (sect1info authorgroup)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-doc/attachments/20040922/368f96e9/attachment.sig>


More information about the freebsd-doc mailing list