Re: Jade/DSSSL: output-driven SGML->SGML translations (entities and preserve-sdata?)

Subject: Re: Jade/DSSSL: output-driven SGML->SGML translations (entities and preserve-sdata?)
From: Daniel Speck <dspeck@xxxxxxxxxxxx>
Date: Wed, 01 Jul 1998 09:45:23 -0400
Robin Stephenson wrote:

>   The nub of the problem seems to be Jade's mapping of character
> entities to Unicode when using the `literal' and `data' functions.

Instead of:

(define (do-body)
  (make element
    gi: "body"
    (literal (data (select-named-elements "body")))))

Do:

(define (do-body)
  (make element
    gi: "body"
    (with-mode get-data-chars
      (process-node-list (select-named-elements "body")))))

(mode get-data-chars
  (default (process-children)))

-dan

--
Daniel Speck                              e-mail: dspeck@xxxxxxxxxxxx
Systems Engineer                           voice:     +1 301.548.7818
Thomson Technology Services Group            fax:     +1 301.527.4094
1375 Piccard Drive, Rockville, MD 20850      WWW:    www.thomtech.com



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


Current Thread