From: Richard Sent <richard@freakingpenguin.com>
To: guile-devel@gnu.org
Cc: Richard Sent <richard@freakingpenguin.com>
Subject: [PATCH] doc: Mention how to remove namespaces in xml->sxml.
Date: Mon, 22 Jul 2024 20:02:40 -0400 [thread overview]
Message-ID: <20240723000330.17503-1-richard@freakingpenguin.com> (raw)
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 "<foo xmlns=\"http://example.org/ns1\">text</foo>")
--
2.45.2
next reply other threads:[~2024-07-23 0:02 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-07-23 0:02 Richard Sent [this message]
2024-07-23 6:24 ` [PATCH] doc: Mention how to remove namespaces in xml->sxml Dr. Arne Babenhauserheide
2024-07-23 8:29 ` Maxime Devos
2024-07-23 14:57 ` Dr. Arne Babenhauserheide
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/guile/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20240723000330.17503-1-richard@freakingpenguin.com \
--to=richard@freakingpenguin.com \
--cc=guile-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).