Beginner : Needs Help
pcs03872-tCEKLenjyJCf0DUV/[email protected] Sat, 8 Jan 2005 15:46:39 +0530 (IST)
| Newsgroups | gmane.lisp.scheme.ssax-sxml |
|---|---|
| Message-ID | <[email protected]> |
Hi , I was trying to find some programs that convert XML documents to s-expressions. I need s-expresion equivalent input of a collection of XML documents to my program. I got "S-exp-based XML parsing" /SSAX project's source-forge home page. I am new to Scheme programming language. I could not run the programs in SSAX package , and could not make out the reason for that. Please help. I am using bigloo compiler on Fedora Core 3, and i was able to run the scheme examples came with bigloo distribution. Compiler is working ok. I hav installed bigloo in a personal folder, not in /usr/local. These are my doubts, Sir .. 1. I want to read a set of XML files and get the s-expression equivalent. Which all files in the distribution should i use ? in run-sxml.scm, no lib files are included. Do i need only this file to get SXML equivalent of a XML document ? 2. Can I call the XML-SXML conversion module from a C/C++ file ? I want to use the resulting s-expression as an input to a CPP file.. Bigloo provides interfacing with C, so can I use this module also like that ? Please give hints if you know how to call scm modules from a c program. Or next option, I felt is to write my Makefile such that it pipes the sxml output to C++ file i-stream. 3:I got warning messages and no executables while trying to compiler SSAX. Please tell where did I make mistake ? What should i do to get the executables and see them run correct ? The make command in lib directory gave this lines in terminal rm -f SSAX-code.scm *.o In examples directory , the command <make PLATFORM=biglooc all> gave: Makefile:173: warning: overriding commands for target `run-remove-markup-bigloo' Makefile:129: warning: ignoring old commands for target `run-remove-markup-bigloo' Makefile:177: warning: overriding commands for target `run-outline-bigloo' Makefile:129: warning: ignoring old commands for target `run-outline-bigloo' Makefile:181: warning: overriding commands for target `run-sxml-bigloo' Makefile:129: warning: ignoring old commands for target `run-sxml-bigloo' make: *** No rule to make target `../lib/SSAX-code.scm', needed by `run-remove-markup-bigloo'. Stop. In tests folder , the same command gave echo "(module test (include \"myenv-bigloo.scm\") (include \"catch-error.scm\") (include \"env.scm\") (include \"srfi-13-local.scm\") (include \"util.scm\") (include \"vmyenv.scm\"))" > /tmp/a.scm ; bigloo -I ../lib -eval "(set! *load-path* (cons \"../lib\" *load-path*))" -call/cc -farithmetic -unsafea -o vmyenv /tmp/a.scm && rm -f /tmp/a.scm && ./vmyenv /tmp/a.scm: *** WARNING:bigloo:install-compiler-expander Redefinition of expander -- assert *** WARNING:bigloo:install-eval-expander Redefinition of expander -- and-let* *** WARNING:bigloo:install-compiler-expander Redefinition of expander -- and-let* *** WARNING:bigloo:(@ error __error) Variable overridden by -- (@ error test) *** WARNING:bigloo:(@ any? __r4_pairs_and_lists_6_3) Variable overridden by -- (@ any? test) *** WARNING:bigloo:(@ string->integer __r4_numbers_6_5_fixnum) Variable overridden by -- (@ string->integer test) *** ERROR:bigloo:internal error: aborting -- #f make: *** [vmyenv] Error 2 4. It will be really helpful if I can get a user manual for SSAX. Thanks a lot for your time. I am stuck up, and tried all possible ways I can. Please help. Regards Shinni ------------------------------------------------------- The SF.Net email is sponsored by: Beat the post-holiday blues Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt