[plt-scheme] ssax with mzscheme 300

From: Daniel Yoo (dyoo at cs.wpi.edu)
Date: Sun Apr 22 01:28:48 EDT 2007


On Sun, 22 Apr 2007, bryan rasmussen wrote:

> when I try to install ssax I get the following:
>
> version (200) of collection ("mzscheme") is required, but version
> (300) is installed
>
>
> does anyone know when support for 300 can be expected?

Hi Bryan,

I believe you'll want the SSAX that's being distributed through the PLaneT 
package repository.  You can find it here:

     http://planet.plt-scheme.org/display.ss?package=ssax.plt&owner=lizorkin


For example, if we're running in the Pretty Big language level:

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
(require (planet "ssax.ss" ("lizorkin" "ssax.plt" 1 3)))

(define text #<<EOF
<html>
<head><title>Hello world</title></head>
<body><p>Hello <i>world</i></p></body>
</html>
EOF
   )
(define doc (ssax:xml->sxml (open-input-string text) '()))
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;


then we can see how our document parsed into SXML form:

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
> doc
(*TOP* (html (head (title "Hello world")) (body (p "Hello " (i 
"world")))))
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;


If you have more questions, please feel free to ask.  Good luck!


Posted on the users mailing list.