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: DOCBOOK-APPS: Apparent problem with image handling


When I'm processing DocBook SGML documents for my web site, I get great gobs 
of complaints like the following:

jade:/usr/share/sgml/docbook/stylesheet/dsssl/modular/html/dbgraph.dsl:68:1:E: 
1st argument for primitive "append" of wrong type: "#<unknown object 146207544>
" not a list

The problem is actually a few lines earlier, where, if no META values are 
found, attr is set to (empty-node-list), which apparently must be the "unknown 
object" in question.

I changed

  (attrs    (if metas
		       (let loop ((meta metas) (attrlist '()))
			 (if (node-list-empty? meta)
			     attrlist
			     (if (equal? (attribute-string 
					  "imgattr"
					  (node-list-first meta))
					 "yes")
				 (loop (node-list-rest meta)
				       (append attrlist
					       (list 
						(list 
						 (attribute-string 
						  "name"
						  (node-list-first meta))
						 (attribute-string
						  "content"
						  (node-list-first meta))))))
				 (loop (node-list-rest meta) attrlist))))
		       (empty-node-list)))

to end with 

                       '()))
instead of             (empty-node-list)))

and that seems to do the trick.

Versioning information for everything that could plausibly be relevant:

[cbbrowne@chvatal:cbbrowne] dpkg -l | grep -i docbook        
ii  docbook        4.2-1          SGML DTD for authors of technical documentat
ii  docbook-dsssl  1.77-2         Modular DocBook DSSSL stylesheets, for print
ii  docbook-dsssl- 1.77-1         Modular DocBook DSSSL stylesheets documentat
ii  docbook-to-man 2.0.0-10       Converter from DocBook SGML into roff -man m
ii  docbook-utils  0.6.12-2       Convert Docbook files to other formats (HTML
[cbbrowne@chvatal:cbbrowne] 

This has probably been a longstanding problem...
--
(concatenate 'string "cbbrowne" "@ntlug.org")
http://cbbrowne.com/info/nonrdbms.html
"If your  parents never had  children, chances are you  won't either."
-- Dick Cavett




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


Powered by eList eXpress LLC