From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5433 invoked by alias); 15 May 2017 14:11:13 -0000 Mailing-List: contact kawa-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: kawa-owner@sourceware.org Received: (qmail 5305 invoked by uid 89); 15 May 2017 14:11:11 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-0.3 required=5.0 tests=AWL,BAYES_00,KAM_LAZY_DOMAIN_SECURITY autolearn=no version=3.3.2 spammy=sk:netbean, XML, H*r:sk:kawa@so, toto X-HELO: smtps-n.oca.eu Received: from smtps-n.oca.eu (HELO smtps-n.oca.eu) (192.54.174.167) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 15 May 2017 14:11:09 +0000 Received: from [192.168.109.88] (natoca100-13.unice.fr [134.59.100.13]) by smtps-n.oca.eu (Postfix) with ESMTPSA id D66BB80120 for ; Mon, 15 May 2017 16:11:09 +0200 (CEST) From: Damien MATTEI To: Kawa mailing list Subject: xml literals Date: Mon, 15 May 2017 14:11:00 -0000 User-Agent: KMail/1.9.6 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <201705151611.09622.Damien.Mattei@unice.fr> X-IsSubscribed: yes X-SW-Source: 2017-q2/txt/msg00061.txt.bz2 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!") hello! #|kawa:2|# (html:b "hello!") hello! #|kawa:3|# (html:td "toto") toto #|kawa:4|# (html:tr (html:td "foo") (html:td "bar")) foobar #|kawa:5|# (define toto "titi") #|kawa:6|# (html:td toto) titi Damien