From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: sidhu1f Newsgroups: gmane.lisp.guile.user Subject: Re: Converting SXML to XML Date: Sat, 21 Jan 2017 15:26:20 +0530 Message-ID: <5883304d.8b95620a.27d77.422e@mx.google.com> References: <587f4690.8362630a.e3c66.04fa@mx.google.com> <5881132a.4807620a.8f994.e6a4@mx.google.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: multipart/mixed; boundary="Multipart_Sat_Jan_21_15:26:18_2017-1" X-Trace: blaine.gmane.org 1484992646 7549 195.159.176.226 (21 Jan 2017 09:57:26 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 21 Jan 2017 09:57:26 +0000 (UTC) User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM/1.14.9 (=?ISO-8859-4?Q?Goj=F2?=) APEL/10.8 EasyPG/1.0.0 Emacs/24.5 (i686-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO) To: guile-user@gnu.org Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Sat Jan 21 10:57:20 2017 Return-path: Envelope-to: guile-user@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cUsPq-00080j-J3 for guile-user@m.gmane.org; Sat, 21 Jan 2017 10:56:58 +0100 Original-Received: from localhost ([::1]:59437 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cUsPu-0001ha-2m for guile-user@m.gmane.org; Sat, 21 Jan 2017 04:57:02 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50857) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cUsPV-0001ea-8Z for guile-user@gnu.org; Sat, 21 Jan 2017 04:56:38 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cUsPQ-0001b5-Ok for guile-user@gnu.org; Sat, 21 Jan 2017 04:56:37 -0500 Original-Received: from mail-pf0-x242.google.com ([2607:f8b0:400e:c00::242]:35520) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cUsPQ-0001aK-Iw for guile-user@gnu.org; Sat, 21 Jan 2017 04:56:32 -0500 Original-Received: by mail-pf0-x242.google.com with SMTP id f144so6964908pfa.2 for ; Sat, 21 Jan 2017 01:56:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=message-id:date:from:to:cc:subject:in-reply-to:references :mail-followup-to:mail-reply-to:user-agent:mime-version; bh=utR6VsPLzTUqLDp8gs0Fl5FKqChlroA+ZVtRpWv8iio=; b=aVAW1eHgm5wnCukPU5CyLpVyRV+mtqBt/177IooiKy6MZLS4BpwEUH+OghgqMRqrNp 651FNQ6UuFYDABRVT1JcI1LHQwYWyigsQQA5VqSRQ6Y1aEtEggd0qu+jHN9QVoL7XIfR mMsEvDJTJWtLiGF/MmqXvB7PKC9l37i/5HluspIkHHaijoFQc96KIklWvh1Pwzr+5sgJ p39rmoAwyMaf3iVJaShtVJGMNn8oZd7bEP7KrbUYwIq19WnEuVAeo/O8wO6/md0shwdD L8+zTsOxLalOOhOOl7M3WyBFtmIZnivUf3bt0SOLwZUrDcJhELIJ0t5UHfwbb11nLPfV d4+g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:date:from:to:cc:subject:in-reply-to :references:mail-followup-to:mail-reply-to:user-agent:mime-version; bh=utR6VsPLzTUqLDp8gs0Fl5FKqChlroA+ZVtRpWv8iio=; b=p+5ih8e1Tg504CSlBSueLgQUs9lwJ4uSt538t5KT2dl7HPaLXoVNXgtAbTaEC0TcDV PJY2W8t7fBbrsAw+RX6TGdRKQhl5eM93UY3O3fp/a7jR5z62l/7eXGCslO8cpuQowJ5N BPRhSHJDahXfuJNSPjEUqSZMDT0MAFhURdFa/3PNvQhtka34eoqAN46icxzJoka4Lov9 xwz+aDse86E/wjHs94BdQ5TvIPMGTST53GGY4u9wtvMYAT6vgfBy+tnFzPfZxtGruXhl B2k2leGlQJzQBwNt5imbdymSlqZMBqnPRTUabVBnremthJ0jfyJvuM+Rz29AoCVdGPIf /i4g== X-Gm-Message-State: AIkVDXJRtYed0/yCy80j0k0pqoidDQnKLHYfQ7xYxfqCI+5BfowHYtM8N+vvbx/ngTE7ow== X-Received: by 10.98.106.132 with SMTP id f126mr21822120pfc.1.1484992589834; Sat, 21 Jan 2017 01:56:29 -0800 (PST) Original-Received: from anu.rs.home.gmail.com ([103.5.19.68]) by smtp.gmail.com with ESMTPSA id c11sm22829905pfk.14.2017.01.21.01.56.27 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sat, 21 Jan 2017 01:56:29 -0800 (PST) In-Reply-To: Mail-Followup-To: amirouche@hypermove.net, guile-user@gnu.org, Mail-Reply-To: guile-user@gnu.org X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2607:f8b0:400e:c00::242 X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-user-bounces+guile-user=m.gmane.org@gnu.org Original-Sender: "guile-user" Xref: news.gmane.org gmane.lisp.guile.user:13117 Archived-At: --Multipart_Sat_Jan_21_15:26:18_2017-1 Content-Type: text/plain; charset=US-ASCII Patch attached, it was created as mentioned at http://www.gnu.org/software/guile/contribute/. Patch applicable to guile versions 2.0.13 and 2.1.6 as the file simple.scm is identical in both. Let me know if any modifications are required. Regards sidhu1f --Multipart_Sat_Jan_21_15:26:18_2017-1 Content-Type: text/plain; type=patch; name="sxml-comment-support.patch"; charset=US-ASCII Content-Disposition: attachment; filename="sxml-comment-support.patch" Content-Transfer-Encoding: base64 RnJvbSA5YjRlMjQ0OGE0MTg5YTkyNmJhZmI0MDBiMjFkMDkxZmQwNzk3NWJlIE1vbiBTZXAgMTcg MDA6MDA6MDAgMjAwMQpGcm9tOiBzaWRodTFmIDxzaWRodTFmQGdtYWlsLmNvbT4KRGF0ZTogU2F0 LCAyMSBKYW4gMjAxNyAxMzoyOTo0MiArMDUzMApTdWJqZWN0OiBbUEFUQ0hdIEFkZCBjb252ZXJz aW9uIG9mIFNYTUwgY29tbWVudHMgdG8gWE1MLgoKKiBzeG1sL3NpbXBsZS5zY206IEFkZCBjb21t ZW50LT54bWwuIEF1Z21lbnQgc3htbC0+eG1sIHRvIHByb2Nlc3MKICBjb21tZW50IGNvbnN0cnVj dCBzaW1pbGFyIHRvIGN1cnJlbnQgcHJvY2Vzc2luZyBvZiBlbnRpdHkgY29uc3RydWN0LgotLS0K IG1vZHVsZS9zeG1sL3NpbXBsZS5zY20gfCAxMCArKysrKysrKysrCiAxIGZpbGUgY2hhbmdlZCwg MTAgaW5zZXJ0aW9ucygrKQoKZGlmZiAtLWdpdCBhL21vZHVsZS9zeG1sL3NpbXBsZS5zY20gYi9t b2R1bGUvc3htbC9zaW1wbGUuc2NtCmluZGV4IDcwM2FkOTEzNy4uNDM3OGI2OWU2IDEwMDY0NAot LS0gYS9tb2R1bGUvc3htbC9zaW1wbGUuc2NtCisrKyBiL21vZHVsZS9zeG1sL3NpbXBsZS5zY20K QEAgLTMxMSw2ICszMTEsMTIgQEAgcG9ydC4iCiAgIChkaXNwbGF5IHN0ciBwb3J0KQogICAoZGlz cGxheSAiPz4iIHBvcnQpKQogCis7OyBGSVhNRTogZW5zdXJlIHN0ciBpcyB2YWxpZAorKGRlZmlu ZSAoY29tbWVudC0+eG1sIHN0ciBwb3J0KQorICAoZGlzcGxheSAiPCEtLSIgcG9ydCkKKyAgKGRp c3BsYXkgc3RyIHBvcnQpCisgIChkaXNwbGF5ICItLT4iIHBvcnQpKQorCiAoZGVmaW5lKiAoc3ht bC0+eG1sIHRyZWUgIzpvcHRpb25hbCAocG9ydCAoY3VycmVudC1vdXRwdXQtcG9ydCkpKQogICAi U2VyaWFsaXplIHRoZSBzeG1sIHRyZWUgQHZhcnt0cmVlfSBhcyBYTUwuIFRoZSBvdXRwdXQgd2ls bCBiZSB3cml0dGVuCiB0byB0aGUgY3VycmVudCBvdXRwdXQgcG9ydCwgdW5sZXNzIHRoZSBvcHRp b25hbCBhcmd1bWVudCBAdmFye3BvcnR9IGlzCkBAIC0zMzEsNiArMzM3LDEwIEBAIHByZXNlbnQu IgogICAgICAgICAgICAgIChpZiAoYW5kIChsaXN0PyAoY2RyIHRyZWUpKSAoPSAobGVuZ3RoIChj ZHIgdHJlZSkpIDIpKQogICAgICAgICAgICAgICAgICAocGktPnhtbCAoY2FkciB0cmVlKSAoY2Fk ZHIgdHJlZSkgcG9ydCkKICAgICAgICAgICAgICAgICAgKGVycm9yICJiYWQgKlBJKiBhcmdzIiAo Y2RyIHRyZWUpKSkpCisJICAgICgoKkNPTU1FTlQqKQorCSAgICAgKGlmIChhbmQgKGxpc3Q/IChj ZHIgdHJlZSkpICg9IChsZW5ndGggKGNkciB0cmVlKSkgMSkpCisJCSAoY29tbWVudC0+eG1sIChj YWRyIHRyZWUpIHBvcnQpCisJCSAoZXJyb3IgImJhZCAqQ09NTUVOVCogYXJncyIgKGNkciB0cmVl KSkpKQogICAgICAgICAgICAgKGVsc2UKICAgICAgICAgICAgICAobGV0KiAoKGVsZW1zIChjZHIg dHJlZSkpCiAgICAgICAgICAgICAgICAgICAgIChhdHRycyAoYW5kIChwYWlyPyBlbGVtcykgKHBh aXI/IChjYXIgZWxlbXMpKQotLSAKMi4xMS4wCgo= --Multipart_Sat_Jan_21_15:26:18_2017-1 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On Fri, 20 Jan 2017 03:07:20 +0530, amirouche@hypermove.net wrote: >=20 > Yes please share the patch >=20 > =C0 jeu. janv. 19 20:27:35 2017 GMT+0100, sidhu1f a =E9crit : > >=20 > > On Wed, 18 Jan 2017 16:12:21 +0530, > > sidhu1f wrote: > > > Tried converting SXML to XML using sxml->xml function in (sxml simple) > > > module, but it cannot handle SXML '*COMMENT*' construct, among others. > > > Didn't find a conversion function in (saxml ssax) either. > > >=20 > > > Is there an established way to convert SXML to XML? Else, is there an > > > effort to develop a convertor (ideally, ssax based) that one could > > > contribute to? > >=20 > > Solved my own problem. Only a minor modification to the (sxml simple) > > module is required to cleanly support the conversion of comments in > > SXML notation to XML. > >=20 > > If anyone is interested, I'll be happy to share the patch. > >=20 > > Regards > > sidhu1f > >=20 > > >=20 > --=20 > Sans sens apparats =E0 apparaitre aux apr=E9s de celle/ceux qui revaient = d'une enigme. --Multipart_Sat_Jan_21_15:26:18_2017-1--