From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Yuri Khan Newsgroups: gmane.emacs.help Subject: Re: Basic question on choosing nxml-mode schema Date: Wed, 9 Nov 2016 15:38:04 +0600 Message-ID: References: <1447994335.988177.1478636797036.ref@mail.yahoo.com> <1447994335.988177.1478636797036@mail.yahoo.com> <20161109090638.GF17359@tuxteam.de> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1478705538 12450 195.159.176.226 (9 Nov 2016 15:32:18 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 9 Nov 2016 15:32:18 +0000 (UTC) Cc: "help-gnu-emacs@gnu.org" Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Nov 09 16:32:14 2016 Return-path: Envelope-to: geh-help-gnu-emacs@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 1c4Ur7-0001kP-P6 for geh-help-gnu-emacs@m.gmane.org; Wed, 09 Nov 2016 16:32:05 +0100 Original-Received: from localhost ([::1]:40619 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c4UrA-0004eJ-Qj for geh-help-gnu-emacs@m.gmane.org; Wed, 09 Nov 2016 10:32:08 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:45126) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c4PKu-0005yN-Gi for help-gnu-emacs@gnu.org; Wed, 09 Nov 2016 04:38:29 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c4PKt-0003zl-Ho for help-gnu-emacs@gnu.org; Wed, 09 Nov 2016 04:38:28 -0500 Original-Received: from mail-lf0-x244.google.com ([2a00:1450:4010:c07::244]:34754) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1c4PKt-0003yq-A0 for help-gnu-emacs@gnu.org; Wed, 09 Nov 2016 04:38:27 -0500 Original-Received: by mail-lf0-x244.google.com with SMTP id o141so11607102lff.1 for ; Wed, 09 Nov 2016 01:38:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:cc:content-transfer-encoding; bh=z+UdS2esiCSL3BCP52SKZ9wmmfapEHU6Wt2VKXROctU=; b=KXZxqgAQNk3D1ib6FAWHwgUnMv3OL0euVknvcOC7+SHc+bd5bWw9GGraSg0rosTqLc 91JNOu9Podchrf4SB8gphrCOKYWMgDZBYfh9o0RfmKnGKwVScfHC2IzH5JUV4AFjmCBq bj5v4xuoiUXEtDyR7N5u0O2b6DGyLjR5Whgt2ZXr32VtzrWFZEgqu83pAWcmqfcm8sR4 /CUWOX1Q+DmXxwVv6/JKnvE9EyIqy+V9YV1I9qDQdI/CSsfY0ERRx4dVS+GDl5UZT5TU lVxJm3AadF/RF7XzxiMGX4B2r+lnJaeE9YXWhDLatcd5Blqa4EbcpR8f+6HFARYDTkF/ os9g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:cc:content-transfer-encoding; bh=z+UdS2esiCSL3BCP52SKZ9wmmfapEHU6Wt2VKXROctU=; b=QaYlpjGwVvipeMhQVBParyXwSdv765auM8QuAldC5z95A1yU+yHqzddTM2FlBauqsR GKNpNl6bqlVhLCsGUsj/gFkotNFwziKeWUkmBcL2G7htUihP5S576TQAeS2HqlNBHy1J Q2ecr8nqGJwRQIQ3CFPs2wttLgmBDBO95e6d1OkLMk5r+9vSL0lEQ/lb8IJw6H0hRXHt IT476FHHeiV1kSk7p1ynVdm3ogTFpSr750gpnMhRnFO95imJJA96VWUq5FpAodlJdU6I 4fpkkUJ77UmS/ET/9ye39qLFxqTs5AxdvQQzh+D3ZkJTgGnNN3xTVoSiCN0dyGgJsfBN TsHQ== X-Gm-Message-State: ABUngvd5WXJgFxDv4qwOrK5jPrvDkswsrZYJw3lyGskSovEJNxkl6yhVEqYm4+nszVXrgpJXmFR2S+lUlkmVKQ== X-Received: by 10.25.203.139 with SMTP id b133mr9241959lfg.169.1478684305307; Wed, 09 Nov 2016 01:38:25 -0800 (PST) Original-Received: by 10.114.80.71 with HTTP; Wed, 9 Nov 2016 01:38:04 -0800 (PST) In-Reply-To: <20161109090638.GF17359@tuxteam.de> X-Google-Sender-Auth: s6XgjSHHzf8itSLkwR8Z7_oAfv0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2a00:1450:4010:c07::244 X-Mailman-Approved-At: Wed, 09 Nov 2016 10:28:17 -0500 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 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.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:111697 Archived-At: On Wed, Nov 9, 2016 at 4:06 PM, wrote: >> I want to use nxml-mode to edit a document using reveal-js. The sample d= ocuments they use in the tutorials begins: >> >> nxml-mode has a problem with most aspects of this: the initial tag is "u= nknown markup declaration", the >> html tag is 'missing xmlns=3D"http://www.w3.org/1999/xhtml"', the charse= t is "Attribute not allowed", etc. >> >> If I replace this header stuff with a more-usual >> >> > >> then this works, but then later in the document, each "slide" is contain= ed in
tags, and these show up as "Unknown element". > > What you are seeing is most probably a HTML document (it looks like > HTML5 [1]), which is *not* XML. It looks a bit like XML. It seems > that after a phase trying to nudge HTML towards XML conformance, > the trend these days is in the opposite direction. HTML5 in fact defines an HTML serialization and an XHTML serialization, which are equally valid and largely equivalent (except for a few minor points). All major browsers support the XHTML serialization in their current versions[1]. [1]: http://caniuse.com/#search=3Dxhtml You can author your document in XHTML serialization using nxml. However, the xhtml schema bundled with nxml is that of XHTML 1.0, not XHTML5. It does not know about
or