Re: scheme/dsssl question

Subject: Re: scheme/dsssl question
From: Chris Maden <crism@xxxxxxx>
Date: Mon, 29 Dec 1997 16:22:08 -0500
[Norm Walsh]
> Given that I've got
> 
> (define foo "this is some text")
> 
> in my stylesheet, is it possible to write a function that will take
> "foo" (literally) as an argument and return "this is some text"?
> 
> For example:
> 
> (define (bar xyz) 
>   ...something I can't quite wrap my head around in here...
> )
> 
> such that
> 
> (bar "foo") returns "this is some text"?

Oddly for a Lisp dialect, I don't think there is a way.  I was really
expecting to find (eval) in the Standard, but it's not there.

RFE for DSSSL editors: (eval _string_) produces the same results as if
the DSSSL interpreter had encountered _string_ in the stylesheet.

Then Norm could do

(define (bar xyz)
  (eval (string-append "("
		       xyz
		       ")")))

If such a thing exists, my apologies; I didn't find it in clause 8,
nor in Henry's reference.[1]

-Chris

[1] <URL:ftp://ftp.ornl.gov/pub/sgml/WG8/DSSSL/digest.htm>
-- 
<!NOTATION SGML.Geek PUBLIC "-//Anonymous//NOTATION SGML Geek//EN">
<!ENTITY crism PUBLIC "-//O'Reilly//NONSGML Christopher R. Maden//EN"
"<URL>http://www.oreilly.com/people/staff/crism/ <TEL>+1.617.499.7487
<USMAIL>90 Sherman Street, Cambridge, MA 02140 USA" NDATA SGML.Geek>


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


Current Thread
  • scheme/dsssl question
    • Norman Walsh - from mail1.ability.netby web4.ability.net (8.8.5/8.6.12) with ESMTP id NAA24625Mon, 29 Dec 1997 13:09:02 -0500 (EST)
      • Chris Maden - from mail1.ability.netby web4.ability.net (8.8.5/8.6.12) with ESMTP id QAA25868Mon, 29 Dec 1997 16:19:19 -0500 (EST) <=
        • Henry S. Thompson - from mail1.ability.netby web4.ability.net (8.8.5/8.6.12) with ESMTP id GAA05269Tue, 30 Dec 1997 06:18:32 -0500 (EST)
          • Chris Maden - from mail1.ability.netby web4.ability.net (8.8.5/8.6.12) with ESMTP id KAA07849Tue, 30 Dec 1997 10:24:10 -0500 (EST)
      • <Possible follow-ups>
      • David Megginson - from mail1.ability.netby web4.ability.net (8.8.5/8.6.12) with ESMTP id IAA06598Tue, 30 Dec 1997 08:54:20 -0500 (EST)