Re: Processing CDATA content with DSSSL/Jade?

Subject: Re: Processing CDATA content with DSSSL/Jade?
From: Norman Walsh <ndw@xxxxxxxxxx>
Date: Fri, 24 Jul 1998 07:23:15 -0400
/ Sebastian Rahtz <s.rahtz@xxxxxxxxxxxxxx> was heard to say:
| Thomas Corte writes:
|  > <!ELEMENT TeXMath - - CDATA>
[...]
|  > my style sheet. Furthermore, there seems to be no way to call external
|  > programs from DSSSL - this, however, is reasonable with respect to
|  > side-effect-freeness and system-independence.
|  > 
| you could preprocess the SGML file to replace all <texmath> elements
| with references to images, using some less PC  SGML processing
| language, and then do further work in Jade

That was my thought, except I was going to suggest the following hack:

1. Use the SGML back end to process the document.  The heart of this 
stylesheet would be something like this:

  (default (empty-sosofo))
  (element texmath
    (let ((filename (string-append "eqn." 
                     (number->string (all-element-number))
                     ".tex")))
      (make entity system-id: filename
	(make formatting-instruction data: (data (current-node))))))

2. Use some totally external system to make eqn.*.gif out of eqn.*.tex.
3. In your processing for the texmath element in your "real" stylesheet,
   use the same technique to calculate the name of the .gif file and
   slurp it up with make external-graphic.

                                        Cheers,
                                          norm
-- 
Norman Walsh <ndw@xxxxxxxxxx>      | The facts, although interesting,
http://nwalsh.com/                 | are usually irrelevant.


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


Current Thread
  • Processing CDATA content with DSSSL/Jade?
    • Thomas Corte - from mail1.ability.netby web4-1.ability.net (8.8.5/8.6.12) with ESMTP id RAA23995Thu, 23 Jul 1998 17:47:00 -0400 (EDT)
      • Sebastian Rahtz - from mail1.ability.netby web4-1.ability.net (8.8.5/8.6.12) with ESMTP id GAA11323Fri, 24 Jul 1998 06:30:02 -0400 (EDT)
        • Norman Walsh - from mail1.ability.netby web4-1.ability.net (8.8.5/8.6.12) with ESMTP id HAA12446Fri, 24 Jul 1998 07:26:27 -0400 (EDT) <=
          • Sebastian Rahtz - from mail1.ability.netby web4-1.ability.net (8.8.5/8.6.12) with ESMTP id HAA13340Fri, 24 Jul 1998 07:58:46 -0400 (EDT)
          • Norman Walsh - from mail1.ability.netby web4-1.ability.net (8.8.5/8.6.12) with ESMTP id IAA13988Fri, 24 Jul 1998 08:23:07 -0400 (EDT)
          • Sebastian Rahtz - from mail1.ability.netby web4-1.ability.net (8.8.5/8.6.12) with ESMTP id JAA14876Fri, 24 Jul 1998 09:15:43 -0400 (EDT)
          • Norman Walsh - from mail1.ability.netby web4-1.ability.net (8.8.5/8.6.12) with ESMTP id JAA15346Fri, 24 Jul 1998 09:35:54 -0400 (EDT)