help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Basic question on choosing nxml-mode schema


From: Dr. Jennifer Nussbaum
Subject: Basic question on choosing nxml-mode schema
Date: Tue, 8 Nov 2016 20:26:37 +0000 (UTC)

Hi, this question is probably more about understanding HTML than about 
nxml-mode. I don't use HTML often and don't keep up to date with web design. 
But:

I want to use nxml-mode to edit a document using reveal-js. The sample 
documents they use in the tutorials begins:

---
<!doctype html>
<html lang="en"> 
<head>
  <meta charset="utf-8">
  <title>Reveal.js 3 Slide Demo</title>...
---

nxml-mode has a problem with most aspects of this: the initial tag is "unknown 
markup declaration", the
html tag is 'missing xmlns="http://www.w3.org/1999/xhtml";', the charset is 
"Attribute not allowed", etc.

If I replace this header stuff with a more-usual 

---
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";>

<html xmlns="http://www.w3.org/1999/xhtml"; lang="en">
<head>---

then this works, but then later in the document, each "slide" is contained in 
<section> tags, and these show up as "Unknown element".

I assume that I just don't understand what format this document is (or should 
be) in, but how do I figure this out, and what schema do I use to process it? I 
don't care so much about auto-completion, I just don't want a good document to 
show up as "invalid" and have non-errors highlighted.

Thanks!

Jen


reply via email to

[Prev in Thread] Current Thread [Next in Thread]