From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Yuri Khan Newsgroups: gmane.emacs.help Subject: Re:   and nXML mode Date: Mon, 9 Aug 2021 12:57:50 +0700 Message-ID: References: <31FB0752-BAB3-455A-B9F3-BA6948CE204A@traduction-libre.org> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="17029"; mail-complaints-to="usenet@ciao.gmane.io" Cc: help-gnu-emacs To: Jean-Christophe Helary Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Mon Aug 09 07:58:27 2021 Return-path: Envelope-to: geh-help-gnu-emacs@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 1mCyIt-0004Bn-5j for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 09 Aug 2021 07:58:27 +0200 Original-Received: from localhost ([::1]:54860 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mCyIr-00077d-Ec for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 09 Aug 2021 01:58:25 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:40484) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mCyIX-00077P-Jc for help-gnu-emacs@gnu.org; Mon, 09 Aug 2021 01:58:05 -0400 Original-Received: from mail-vk1-xa2e.google.com ([2607:f8b0:4864:20::a2e]:40817) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mCyIW-0000MK-0F for help-gnu-emacs@gnu.org; Mon, 09 Aug 2021 01:58:05 -0400 Original-Received: by mail-vk1-xa2e.google.com with SMTP id q75so3671355vkb.7 for ; Sun, 08 Aug 2021 22:58:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=8/vykpvqkAZJel5Ipftq1RCLBLmtT95zfcq1sJVXEY0=; b=ImHsxSgHZ0VsRGNk6SsbzaBjD6k4KbWI8OcNwA8PEMQJMBBhCTL8yq3eAy26iumaVB 0Wgc248uU1g3XUqhvPBFFtoKjA2+0mDsf7C1s+ulv9Sc/H91ect5OcAK+tjT5SMixLns sqVLtpgNj6lrYk0RCLW1Jifcc3vvXEGt3H9rSEo0Q3pnpg4o/MqdFzgvI7R2Wt4xAZJd 5Qy3Hs5sWTRvMWVubddW4nGWXywUTuE3AtSxTQwsh+RbPyojfdrA+aHpfjDmUwC1xweC qaDSIgKYncCNuGVCpfc+JqTdlVM5oUXxF7vc7m2CNhEs5gtKyrqC98mzkYu3jmoeUCpR KBdQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=8/vykpvqkAZJel5Ipftq1RCLBLmtT95zfcq1sJVXEY0=; b=POp8QsX/ek7faM1De0UX6yEoXx8PpY9c5b5zZY12ug4b5bDSvoSUDO4e8/TtT82D5t aimBCmQaImg5moAMBmMAbQ1auYw7ZTkXIdKH4eQTq2ALf2mRFkInVYR0lHvFXuJPet5g oDt875evr0tLqgFG33DR7fVh9jVW+eZPSPhfSA7txKWy8IcZD0J5ToR/Y3OwJvtnu3vT vAmgkJtITqfuJ/ToDDjiwCvwAB2qmtsKcGjzxXIF7o2yAa7KczA6YHn9s5/AiFotRGTo Om9MhrWT1VSb2OCP6EF+6v91PoaTz4Yak2ISH+lfkYqeVv3RFp0r/fviRzM6X/04235C WO3A== X-Gm-Message-State: AOAM530h1U0REOlW9XtMxFtVs7Smu+Ud6ZLqUzXauv1Mbgl80uuVKKxl xZsZZa5rZcCUb3xcvFpfyE2qy5OgKRw6VjumHj8eaCog064CYg== X-Google-Smtp-Source: ABdhPJy3It8Ov1A2ERAxN4y8e5bVoznDAVfa1vuc4SI6wOenro1Orbpz5E5biP4gohY0/JGK0vzyseD+AkYIdAiE+Iw= X-Received: by 2002:a1f:a314:: with SMTP id m20mr13007648vke.14.1628488682329; Sun, 08 Aug 2021 22:58:02 -0700 (PDT) In-Reply-To: <31FB0752-BAB3-455A-B9F3-BA6948CE204A@traduction-libre.org> Received-SPF: pass client-ip=2607:f8b0:4864:20::a2e; envelope-from=yurivkhan@gmail.com; helo=mail-vk1-xa2e.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:132428 Archived-At: On Mon, 9 Aug 2021 at 09:22, Jean-Christophe Helary wrote: > Is there a reason why nXML mode refuses to consider   entities as le= git in a document that starts with: > > > If you view that as an XML document (which is what nXML deals with), without any preconceived knowledge of HTML5, there is nothing to suggest that   is legit. In XML, an entity can be defined inline within the doctype declaration: ]> or by reference to an external entity definition: (In the HTML5 spec, this is referred to as =E2=80=9Cobsolete permitted DOCT= YPE string=E2=80=9D, and the obsoletion is from the HTML5 point of view. I.e. i= f you use an HTML5-aware parser, is sufficient to declare an HTML5 document.) If you fetch that url, you will see that it references a number of modules, and if you chase references far enough, you will get to http://www.w3.org/MarkUp/DTD/xhtml-lat1.ent which contains this as its first significant line: and that=E2=80=99s what makes   a valid entity reference in an XHTML d= ocument. (XML processors normally have some shortcuts, such as DTD pre-cached in the so-called XML catalog, so that they don=E2=80=99t have to fetch them from the network each time. XML catalog is keyed by the PUBLIC and/or SYSTEM identifiers but not by the doctype root element name.)