This is the mail archive of the
kawa@sourceware.org
mailing list for the Kawa project.
xml literals
- From: Damien MATTEI <Damien dot Mattei at unice dot fr>
- To: Kawa mailing list <kawa at sourceware dot org>
- Date: Mon, 15 May 2017 16:11:09 +0200
- Subject: xml literals
- Authentication-results: sourceware.org; auth=none
hello Per,
i try to use XML literals in code and i have errors i do not have in REPL:
compiling this:
(set! html-literal-table-data-code
(html:td result))
where result is a string ,or even a simple code:
(html:td "foo")
i got this error in my code:
java -cp /usr/local/share/java/kawa-2.1.jar:/home/mattei/NetBeansProjects/Sidonie/build/web/WEB-INF/classes kawa.repl -C DBtoWebObserversKawa.scm
(compiling DBtoWebObserversKawa.scm to eu.oca.kawafunct.DBtoWebObserversKawa)
Exception in thread "main" java.lang.Error: gnu.kawa.xml.MakeElement does not implement Externalizable
at gnu.expr.LitTable.error(LitTable.java:103)
at gnu.expr.LitTable.writeObject(LitTable.java:271)
at gnu.expr.LitTable.emit(LitTable.java:66)
at gnu.expr.Compilation.generateBytecode(Compilation.java:2433)
at gnu.expr.Compilation.process(Compilation.java:2172)
at gnu.expr.ModuleInfo.loadByStages(ModuleInfo.java:302)
at gnu.expr.ModuleInfo.loadByStages(ModuleInfo.java:284)
at kawa.repl.compileFiles(repl.java:753)
at kawa.repl.processArgs(repl.java:434)
at kawa.repl.main(repl.java:793)
at REPL all is ok:
kawa --output-format html
#|kawa:1|# (html:em "hello!")
<em>hello!</em>
#|kawa:2|# (html:b "hello!")
<b>hello!</b>
#|kawa:3|# (html:td "toto")
<td>toto</td>
#|kawa:4|# (html:tr (html:td "foo") (html:td "bar"))
<tr><td>foo</td><td>bar</td></tr>
#|kawa:5|# (define toto "titi")
#|kawa:6|# (html:td toto)
<td>titi</td>
Damien