From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Maxime Devos Newsgroups: gmane.lisp.guile.devel Subject: RE: [PATCH] doc: Mention how to remove namespaces in xml->sxml. Date: Tue, 23 Jul 2024 10:29:34 +0200 Message-ID: <20240723102927.qwVS2C00b2kuPDg06wVT9x@albert.telenet-ops.be> References: <20240723000330.17503-1-richard@freakingpenguin.com> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="_D5868F45-136E-4680-9048-295312F5CC0C_" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="28174"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Richard Sent To: Richard Sent , "guile-devel@gnu.org" Original-X-From: guile-devel-bounces+guile-devel=m.gmane-mx.org@gnu.org Tue Jul 23 10:29:58 2024 Return-path: Envelope-to: guile-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1sWAuD-0007BP-UF for guile-devel@m.gmane-mx.org; Tue, 23 Jul 2024 10:29:57 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sWAtt-0005hF-Tm; Tue, 23 Jul 2024 04:29:38 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sWAtq-0005h0-VR for guile-devel@gnu.org; Tue, 23 Jul 2024 04:29:34 -0400 Original-Received: from albert.telenet-ops.be ([2a02:1800:110:4::f00:1a]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sWAto-0001jK-A6 for guile-devel@gnu.org; Tue, 23 Jul 2024 04:29:34 -0400 Original-Received: from [IPv6:2a02:1811:8c0e:ef00:20da:b745:1991:3caa] ([IPv6:2a02:1811:8c0e:ef00:20da:b745:1991:3caa]) by albert.telenet-ops.be with bizsmtp id qwVS2C00b2kuPDg06wVT9x; Tue, 23 Jul 2024 10:29:27 +0200 Importance: normal X-Priority: 3 In-Reply-To: <20240723000330.17503-1-richard@freakingpenguin.com> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=telenet.be; s=r24; t=1721723367; bh=M/7YipfJKADVaWaQ+U0kauJkI5kvXiOIrO8/Ob6wXdk=; h=Message-ID:MIME-Version:To:Cc:From:Subject:Date:In-Reply-To: References:Content-Type:From; b=fU03wEGHMrsghV/pVMTUNLjz1rETQIN2i4t3rlF6/EC6nugcTR5Mhbo3WGFV5GLuf ZiNhGnYiENPxONkPBr1qP6OZ0XC/z5lEWFsXbPPFbFQLdp+43VKORvWASnTcHOzHfc UEUT/bg3Mv4rkUEn1sIPHhMqqSDCR6J8XxjGCJloJW316kERFc6E3lh0naP+g994AY 8FVAzr9N0M4VTqSrlqylETFi3wArSDcu6Zl2id5gOzCXmR9I9j6ksW1t28WJoibX6c a0KEunPJe61DYFbXesZhuQcr/EyOnMekkdzTJmR/4aJkKqZG7CZzIyJUNq2J4li+2J B5y0WTZo2JvNQ== Received-SPF: pass client-ip=2a02:1800:110:4::f00:1a; envelope-from=maximedevos@telenet.be; helo=albert.telenet-ops.be X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-devel-bounces+guile-devel=m.gmane-mx.org@gnu.org Original-Sender: guile-devel-bounces+guile-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.lisp.guile.devel:22645 Archived-At: --_D5868F45-136E-4680-9048-295312F5CC0C_ Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" >+@code{xml->sxml}. A namespace can be removed by using a @code{#f} custom >+prefix. > > @example > (xml->sxml "text") If you remove a single namespace, apparently that=E2=80=99s true, but what = if multiple namespaces are removed? Does it still work then? (I can imagine that somewhere the SXML code assumes a unique =E2=80=98names= pace symbol/#f=E2=80=99 -> =E2=80=98namespace URL=E2=80=99 mapping.) Best regards, Maxime Devos. --_D5868F45-136E-4680-9048-295312F5CC0C_ Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset="utf-8"

>+= @code{xml->sxml}.=C2=A0 A namespace can be removed by using a @code{#f} = custom

>+prefix.

>

> @example

> (xml->= sxml "<foo xmlns=3D\"http://example.org/ns1\">text<= /foo>")

 

If you remove a single namespace, apparently that=E2=80=99s true, bu= t what if multiple namespaces are removed? Does it still work then?

 

(I can imagine t= hat somewhere the SXML code assumes a unique =E2=80=98namespace symbol/#f= =E2=80=99 -> =E2=80=98namespace URL=E2=80=99 mapping.)

 

Best regards,

Maxime Devos.

= --_D5868F45-136E-4680-9048-295312F5CC0C_--