From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Richard Sent Newsgroups: gmane.lisp.guile.devel Subject: [PATCH] doc: Mention how to remove namespaces in xml->sxml. Date: Mon, 22 Jul 2024 20:02:40 -0400 Message-ID: <20240723000330.17503-1-richard@freakingpenguin.com> Mime-Version: 1.0 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="26043"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Richard Sent To: guile-devel@gnu.org Original-X-From: guile-devel-bounces+guile-devel=m.gmane-mx.org@gnu.org Tue Jul 23 02:04:32 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 1sW315-0006aA-HY for guile-devel@m.gmane-mx.org; Tue, 23 Jul 2024 02:04:31 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sW30Y-0003WP-OT; Mon, 22 Jul 2024 20:03:58 -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 1sW30W-0003Vw-I1 for guile-devel@gnu.org; Mon, 22 Jul 2024 20:03:56 -0400 Original-Received: from mail-108-mta219.mxroute.com ([136.175.108.219]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sW30U-0005Er-Lz for guile-devel@gnu.org; Mon, 22 Jul 2024 20:03:56 -0400 Original-Received: from filter006.mxroute.com ([136.175.111.3] filter006.mxroute.com) (Authenticated sender: mN4UYu2MZsgR) by mail-108-mta219.mxroute.com (ZoneMTA) with ESMTPSA id 190dce6c56100017a3.001 for (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384); Tue, 23 Jul 2024 00:03:49 +0000 X-Zone-Loop: cd8d34a6e92ec46e172b4b736b637cbe120d8c9e7c77 X-Originating-IP: [136.175.111.3] DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=freakingpenguin.com; s=x; h=Content-Transfer-Encoding:MIME-Version: Message-ID:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=WBplXlPh85qpdc1CDwvYorP/si9xC23rWrKk/LeO3CI=; b=SY4EBhDytHLkJtYToVkQga655p TKXHX0vmPAZLw46jXI+jPXUCBBvVnoyHlKEa1z1CgiYslUSHrYcs2GPen2Jmjylhki8heALJKJyqK tIAv0ae2CmQAjcKib0tMpryT00bR8nbM5xPlDFdHYaGYRkeYT6BZledlBeN9eDWi8cY7pS931et+7 tAmsp5RjEN+xjL3FOKjNUsJP0BJVVB1lkDiEHf1C/subwyFcirCiJFd7Dv4RB8d8UBaAwfZalOYBr 1dJIvBxeCbXI6WISHkqvlCamjsjp1KNS8Pr8BPNVl/pjhPhqscvQkJ45Fd7AN16bpTgakyGr4H0xF SMyJVQ3g==; X-Authenticated-Id: richard@freakingpenguin.com Received-SPF: pass client-ip=136.175.108.219; envelope-from=richard@freakingpenguin.com; helo=mail-108-mta219.mxroute.com X-Spam_score_int: -16 X-Spam_score: -1.7 X-Spam_bar: - X-Spam_report: (-1.7 / 5.0 requ) BAYES_00=-1.9, DKIM_INVALID=0.1, DKIM_SIGNED=0.1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no 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:22643 Archived-At: This documents behavior discussed in https://lists.gnu.org/archive/html/guile-user/2024-07/msg00013.html. * doc/ref/sxml.texi (Reading and Writing XML): Document behavior of #f namespace prefix. --- doc/ref/sxml.texi | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/doc/ref/sxml.texi b/doc/ref/sxml.texi index 003309d54..ab0b010d0 100644 --- a/doc/ref/sxml.texi +++ b/doc/ref/sxml.texi @@ -91,7 +91,8 @@ All namespaces in the XML document must be declared, via @code{xmlns} attributes. SXML elements built from non-default namespaces will have their tags prefixed with their URI. Users can specify custom prefixes for certain namespaces with the @code{#:namespaces} keyword argument to -@code{xml->sxml}. +@code{xml->sxml}. A namespace can be removed by using a @code{#f} custom +prefix. @example (xml->sxml "text") -- 2.45.2