Re: (dsssl) Turning a string into a sequence of character nodes

Subject: Re: (dsssl) Turning a string into a sequence of character nodes
From: Brandon Ibach <bibach@xxxxxxxxxxxxxx>
Date: Fri, 10 May 2002 08:47:03 -0500
Quoting Norman Walsh <ndw@xxxxxxxxxx>:
> Can it be done in Jade?
> 
   Perhaps something like the following (untested, of course):

(define (string->nodes s)
  (let ((doc (string-append "&#60;literal>&#60;!DOCTYPE doc [ &#60;!ELEMENT "
                            "doc - - (#PCDATA)> ]>&#60;doc>" s "&#60;/doc>")))
    (children (node-property 'docelem (sgml-parse doc)))))

-Brandon :)

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

Current Thread