Re: system id of an entity (filename)

Subject: Re: system id of an entity (filename)
From: Karl Eichwalder <ke@xxxxxxxxxxxxxx>
Date: Sun, 27 Jun 2004 22:02:57 +0200
Karl Eichwalder <keichwa@xxxxxxx> writes:

<!DOCTYPE TEI.2 PUBLIC "-//TEI P4//DTD Main DTD Driver File//EN"
  "/usr/share/sgml/tei/dtd-4/tei2.dtd" [
<!ENTITY % TEI.prose                    'INCLUDE'    >
<!-- ... -->
<!ENTITY % TEI.figures                  'INCLUDE'    >
    '-//TEI//NOTATION IETF RFC2083 Portable Network Graphics//EN'>
<!ENTITY img1 SYSTEM  "image01.png" NDATA png>
<TEI.2 lang="en">
<!-- ... -->
  <figure entity='img1'>
    <head>Canterbury Cathedral From the South.</head>
<!-- ... -->
> Transforming the document to HTML I need the filename of the image.

According to I
tried this procedure:

(element figure
  (let* ((entref (attribute-string "entity"))
	 (fileref (if entref
		      (or (entity-system-id entref
			  (entity-generated-system-id entref
		      (attribute-string "fileref"))))
    (make element gi: "img"
	  attributes: (list (list "src" (debug fileref)))

openjade see the filename, but is isn't retrieved as a string:

openjade:bell.dsl:295:33:I: debug ""image01.png""
openjade:bell.dsl:295:33:I: debug "#f"
openjade:bell.dsl:295:15:E: invalid value for "attributes" characteristic

Why is it double quoted?

                                                         |      ,__o
                                                         |    _-\_<,                            |   (*)/'(*)

Current Thread