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 |
---|
|
<- Previous | Index | Next -> |
---|---|---|
scheme/dsssl question, Norman Walsh | Thread | Re: scheme/dsssl question, Henry S. Thompson |
Re: Some XSL Questions, Norman Walsh | Date | Re: Another scheme/dsssl question, Chris Maden |
Month |