Subject: Re: external-graphic import error From: Norman Walsh <ndw@xxxxxxxxxx> Date: Tue, 23 Nov 1999 17:34:01 -0500 |
/ "Darrell W. Royter" <droyter@xxxxxxxxxxxxxxx> was heard to say: | Yesterday, Brandon graciously gave me this peice of code to use for | importing an external graphic (thank you, Brandon). | | (element artwork (make external-graphic entity-system-id: | (string-append (attribute-string "FILE") ".jpg"))) | | This assumes that <artwork> has a "file" attribute containing the | name of the image file without the ".jpg" extension. | | I tried this and got an error stating that the 1st argument for primitive | "string-append" of wrong type: "#f" not a string. Can you show us a small source snippet? Is it possilbe that you're using XML (or a case-sensitive SGML DTD) and 'file' is in lowercase? Anyway the #f error you've got is a clear indication that (attribute-string "FILE") isn't finding a FILE attribute or it doesn't have a value. Cheers, norm -- Norman Walsh <ndw@xxxxxxxxxx> | "Abstraction, abstraction and http://nwalsh.com/ | abstraction." This is the answer | to the question, "What are the | three most important words in | programming?"--Paul Hudak DSSSList info and archive: http://www.mulberrytech.com/dsssl/dssslist
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: external-graphic import error, Darrell W. Royter | Thread | RE: external-graphic import error, Frank A. Christoph |
Re: external-graphic import error, Darrell W. Royter | Date | RE: external-graphic import error, Jack Fitzpatrick |
Month |