Re: xml->sxml problems

[email protected] Wed, 3 May 2006 15:14:43 -0700 (PDT)
Newsgroups gmane.lisp.scheme.ssax-sxml
Message-ID <[email protected]>
Hello!

Victor Morilla Padial wrote:

> /<?xml version="1.0" encoding="UTF-8"?>
> <test></test>
> /
> I get the following error:
>
> /#;> Error in load: evaluation error at 
> file:/home/vpadial/devel/eclipse/xbrl/test-xbrl/source/test2.ss:20:49
> Caused by Error in parser-error: EOF while reading a token  "reading PI 
> content"

Hmm, I have just tried the following code

; A sample document
(define doc
  "<?xml version=\"1.0\" encoding=\"UTF-8\"?>
   <test></test>"
)

(define doc-sxml
  (call-with-input-string doc
     (lambda (port) (ssax:xml->sxml port '()))))

(cout nl 
  ">>>The following is the sample document to transform, in its SXML form" nl)
(pp doc-sxml)
(newline)
(newline)

I placed it in the file /tmp/a.scm and evaluated with SCM (which is
case-insensitive and downcases all identifiers). Here's the
snapshot from my *eshell* buffer

~/Cache/SSAX/lib $ scm -r5 -l myenv-scm.scm -l char-encoding.scm -l srfi-13-local.scm -l util.scm -l look-for-str.scm -l input-parse.scm -l SSAX-code.scm -l /tmp/a.scm

>>>The following is the sample document to transform, in its SXML form
(*top* (*pi* xml "version=\"1.0\" encoding=\"UTF-8\"")
       (test))


It seems that all works, on my system. I'm at a loss why it doesn't on
your system. Maybe there is some kind of cut-and-paste error, or a
missing quote, or something else like that?

	Cheers,
	Oleg




-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642