(append)

Subject: (append)
From: Chris Maden <crism@xxxxxxxxxxx>
Date: Thu, 18 Jun 1998 15:28:52 -0400 (EDT)
8.5.3.10 of DSSSL says:

   (append list ...)
   
   Returns a list consisting of the elements of the first list
   followed by the elements of the other lists.
   
   EXAMPLE 35
[...]
   (append '(a) '(b c d))     =>   (a b c d)

So how come this:

(format-number-list (append (element-number-list (list "appendix"
                                                       "sect1")
                                                 (current-node))
                            (+ (element-number (ancestor "sect2"))
                               refentrys))
                    '("A"
                      "1"
                      "1")
                    ".")

causes Jade to return

jade:/usr/local/prod/sgml/dsssl/db2html.dsl:2436:53:E: 1st argument
for primitive "format-number-list" of wrong type: "(3 3 . 151)" not a
list

Now, I'm not sure why I'm getting "151", but I can worry about the
value of the number later.  I'm more concerned that (append) appears
to be creating a pair instead of a list.[*]  Am I doing something
obviously wrong?  Am I doing something not-so-obviously wrong?

(If you're wondering, refentrys is the number of <refentry>s that are
previous siblings of the current <sect2>, so that it they can be
numbered continuously.)

Thanks in advance,
Chris

[*] Yes, I know that a list is strictly a series of nested pairs.  In
this case, they don't seem to have nested properly.
-- 
<!NOTATION SGML.Geek PUBLIC "-//Anonymous//NOTATION SGML Geek//EN">
<!ENTITY crism PUBLIC "-//O'Reilly//NONSGML Christopher R. Maden//EN"
"<URL>http://www.oreilly.com/people/staff/crism/ <TEL>+1.617.499.7487
<USMAIL>90 Sherman Street, Cambridge, MA 02140 USA" NDATA SGML.Geek>


 DSSSList info and archive:  http://www.mulberrytech.com/dsssl/dssslist


Current Thread
  • (append)
    • Chris Maden - from mail1.ability.netby web4-1.ability.net (8.8.5/8.6.12) with ESMTP id PAA07224Thu, 18 Jun 1998 15:39:42 -0400 (EDT) <=
      • Graydon Hoare - from mail1.ability.netby web4-1.ability.net (8.8.5/8.6.12) with ESMTP id QAA08271Thu, 18 Jun 1998 16:10:20 -0400 (EDT)
      • <Possible follow-ups>
      • Reynolds, Gregg - from mail1.ability.netby web4-1.ability.net (8.8.5/8.6.12) with ESMTP id PAA07742Thu, 18 Jun 1998 15:56:40 -0400 (EDT)
        • Chris Maden - from mail1.ability.netby web4-1.ability.net (8.8.5/8.6.12) with ESMTP id TAA10912Thu, 18 Jun 1998 19:57:49 -0400 (EDT)