Re: accessing SXML->HTML in the latest version of sxml-tools for plt-scheme
Kirill Lisovsky <[email protected]> Sun, 23 May 2004 12:31:16 -0400 (EDT)
| Newsgroups | gmane.lisp.scheme.ssax-sxml |
|---|---|
| Message-ID | <Pine.LNX.4.58.0405231220400.9124@ant> |
Hello!
Fragments-related functions are in "fragments.ss", your example will work as
follows:
(require (lib "sxml-tools.ss" "sxml")
(lib "fragments.ss" "sxml"))
(define simple
'(
(a (@ (href http://www.aaa.com))
"The AAA Site")))
;;; This function returns something that is not quite HTML.
;;; I want to generate HTML that can be viewed by a browser.
(sxml:display-fragments
(sxml:sxml->html simple))
Best regards,
Kirill.
On Sun, 23 May 2004, Terrence Brannon wrote:
> For list-related administrative tasks:
> http://list.cs.brown.edu/mailman/listinfo/plt-scheme
>
> Kirill Lisovsky wrote:
>
> >Hello!
> >
> >The latest information about these ports of SSAX may be found at:
> >http://pair.com/lisovsky/xml/ssax/
> >
> >I recommend to use
> >http://pair.com/lisovsky/download/sxml/plt/preview/ssax20040221.plt
> >it looks like it's stable enough.
> >
> >
> >
> I cannot figure out how to get this distribution to emit HTML:
>
> (require (lib "sxml-tools.ss" "sxml"))
>
> (define simple
> '(
> (a (@ (href http://www.aaa.com))
> "The AAA Site")))
>
> ;;; This function returns something that is not quite HTML.
> ;;; I want to generate HTML that can be viewed by a browser.
>
> (sxml:sxml->html simple)
>
>
> I cannot figure out how to access the SXML->HTML function:
>
> Welcome to MzScheme version 206, Copyright (c) 2004 PLT Scheme, Inc.
> > (require (lib "sxml-to-markup.ss" "sxml"))
> > SXML->HTML
> reference to undefined identifier: sxml->html
> > entag
> #<procedure:entag>
> > string->goodHTML
> reference to undefined identifier: string->goodhtml
> > string->goodHTML
> reference to undefined identifier: string->goodhtml
> > (load "test.scm")
> (("<" "a" (" " "href" "='" http://www.aaa.com "'") ">" "The AAA Site"
> "</" "a" ">"))
> > (require (lib "sxml-tools.ss" "sxml"))
> > sxml:display-fragments
> reference to undefined identifier: sxml:display-fragments
> > sxml-to-markup:SXML->HTML
> reference to undefined identifier: sxml-to-markup:sxml->html
> > SRV:send-reply
> reference to undefined identifier: srv:send-reply
> >
>
> --
> mathematics: the science of quantity, shape, and arrangement
> computersci: the science of information description and transformation
> liberalarts: essential study for adequate education and civic participation.
>
>
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by: Oracle 10g
> Get certified on the hottest thing ever to hit the market... Oracle 10g.
> Take an Oracle 10g class now, and we'll give you the exam FREE.
> http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click
> _______________________________________________
> ssax-sxml mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/ssax-sxml
>
-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g.
Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click