From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 79707 invoked by alias); 22 May 2017 15:44:26 -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 79689 invoked by uid 89); 22 May 2017 15:44:25 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 spammy=TABLE, ltr, Hx-languages-length:1553, recommend X-HELO: aibo.runbox.com Received: from aibo.runbox.com (HELO aibo.runbox.com) (91.220.196.211) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 22 May 2017 15:44:23 +0000 Received: from [10.9.9.210] (helo=mailfront10.runbox.com) by mailtransmit02.runbox with esmtp (Exim 4.86_2) (envelope-from ) id 1dCpVQ-0007Sx-4D; Mon, 22 May 2017 17:44:24 +0200 Received: from 76-9-70-17-rt-broadband-00.broadband.oakhurst.sti.net ([76.9.70.17] helo=localhost.localdomain) by mailfront10.runbox.com with esmtpsa (uid:757155 ) (TLS1.2:DHE_RSA_AES_128_CBC_SHA1:128) (Exim 4.82) id 1dCpV8-0001to-Rf; Mon, 22 May 2017 17:44:07 +0200 Subject: Re: xml literals To: Damien MATTEI , Kawa mailing list References: <201705151611.09622.Damien.Mattei@unice.fr> <20170515165710.GA2081@moita.oca.eu> <3fbfb5fb-fbcb-b772-45c5-e330112a8498@bothner.com> <201705221126.45847.Damien.Mattei@unice.fr> From: Per Bothner Message-ID: <9c5623e9-985a-75ea-d7bf-5c81667bc884@bothner.com> Date: Mon, 22 May 2017 15:44:00 -0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.1.0 MIME-Version: 1.0 In-Reply-To: <201705221126.45847.Damien.Mattei@unice.fr> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2017-q2/txt/msg00079.txt.bz2 On 05/22/2017 02:26 AM, Damien MATTEI wrote: > hello, > > i just want to genrate something like this: > > > > but seems not available in kawa, see the errors: > ./kawa --output-format html > #|kawa:2|# #toto > /dev/stdin:2:13: missing attribute value > /dev/stdin:2:14: missing space before attribute > /dev/stdin:2:19: missing '=' after attribute > /dev/stdin:2:20: missing attribute value > /dev/stdin:2:21: missing space before attribute > /dev/stdin:2:24: missing '=' after attribute > /dev/stdin:2:25: missing attribute value > /dev/stdin:2:26: missing space before attribute > /dev/stdin:2:28: missing '=' after attribute > /dev/stdin:3:1: missing attribute value > /dev/stdin:3:1: missing '>' after start element The error messages could do with improvement. but the fix is simple: Attributes values have to be quoted in XML and XML literals, though not always in HTML: #toto > any idea? > for creating this with literals: With XML literals: #
However, note that case is significant in XML (though not HTML), so I recommend lower-case: #
Using function call syntax: (html:table dir: "LTR" width: 315 id: "table_observateurs") Number attribute values don't have to be quoted - it should work either way. -- --Per Bothner per@bothner.com http://per.bothner.com/