External file for read datas

Subject: External file for read datas
From: miguel.mata@xxxxxxxxxx
Date: Fri, 28 Aug 1998 12:42:14 +0200
I have a SGML file to translate to a HTML file. In the SGML file there is a
name of a catalog file with a picture file name. I want to get this picture
file name and put into the HTML file.

------ The DTD file:

<!ENTITY % GFX   SYSTEM "cat.cat">

------ The SGML file:

<!doctype PICTURE SYSTEM "dtd.DTD">

------ The catalog file:

<!ENTITY pic SYSTEM "pic.jpg" NDATA GFX>

------ The DSSSL file for translate SGML to HTML (of course is very wrong):

<!doctype style-sheet PUBLIC "-//James Clark//DTD DSSSL Style Sheet//EN">

(declare-flow-object-class element "UNREGISTERED::James Clark//Flow Object

(declare-flow-object-class formatting-instruction "UNREGISTERED::James
Clark//Flow Object Class::formatting-instruction")

(root (make sequence
	(make element gi: "HTML"
	(make element gi: "HEAD"
	(make element gi: "META"
		attributes: (list
			(list "HTTP-EQUIV" "Content-type")
			(list "CONTENT" "text/html; charset=windows-1252"))) ;Closed META
	(make element gi: "TITLE" 
		(make formatting-instruction data: "PICTURE"))) ;Closed HEAD

	) ;Closed HTML

(element PICTURE (make element gi: "IMG"
	attributes: (list 
	(list "SRC" (process-element-with-id (attribute-string "PICTURE"))))))

 Miguel Domingo Mata Bueno                           
 STAR GmbH, Software Translation Artwork Recording   
 Westendstrasse 1                                     
 Tlf:                             0049 7735 939801   
 E-mail:             mailto:miguel.mata@xxxxxxxxxx   
 STAR WWW Home Page          http://www.star-ag.ch   

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

Current Thread
  • External file for read datas
    • miguel . mata - from mail1.ability.netby web4-1.ability.net (8.8.5/8.6.12) with ESMTP id GAA12266Fri, 28 Aug 1998 06:46:47 -0400 (EDT) <=