Re: A few questions
Stephen Langer <[email protected]>
| Newsgroups | gmane.emacs.nxml.general |
|---|---|
| Message-ID | <[email protected]> |
On Oct 15, 2009, at 9:06 AM, Florent Georges wrote:
>>
>> 1. Why does nxml mark tags like this <chapter
>> id="chapter:intro"> as illegal? If I remove the ':' in the id
>> it's ok.
>
> An ID must be an NCName.
I see. I guess I'll have to change them all.
>
>> 2. Is there an nxml-mode equivalent of psgml's
>> sgml-parent-document setting? I have several entities defined
>> in a parent document which are then flagged as invalid by nxml
>> when editing a chapter which is included in the parent.
>
> I don't know, sorry, maybe someone else. As nXML is now part
> of GNU Emacs, you can ask over there too...
It's only in emacs 23, isn't it? I'm using 22.3.1. I'll see if I can
install 23 before asking that list.
>
>> 3. I've followed the instructions for setting up nxml-mode
>> at http://infohost.nmt.edu/tcc/help/pubs/nxml/config.html,
>> but still when I open an existing *.xml file, it's opened in
>> xml mode, not nxml mode (although emacs does report that
>> it's using the correct schema). If I open a new xml
>> file, it opens in nxml. What could be causing
>> this? It doesn't seem to depend on whether or not the
>> file has "-*- xml-mode -*-" in the first line.
>
> What's within your magic-mode-alist variable?
I think I have auto-mode-alist instead of magic-mode-alist. I don't
know much about elisp. How do I print the value? My .emacs file
contains this:
(setq auto-mode-alist
(cons '("\\.\\(xml\\|xsl\\|rng\\|xhtml\\)\\'" . nxml-mode)
auto-mode-alist))
Thanks again,
Steve
--
-- [email protected] Tel: (301) 975-5423 --
-- http://math.nist.gov/mcsd/Staff/SLanger/ Fax: (301) 975-3553 --
-- NIST, 100 Bureau Drive, Stop 8910, Gaithersburg, Md 20899-8910 --
-- "I don't think this will work. That's why it's science." --
-- Naomi Langer (age 6), 17 Feb 2003 --
------------------------------------
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/emacs-nxml-mode/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/emacs-nxml-mode/join
(Yahoo! ID required)
<*> To change settings via email:
mailto:[email protected]
mailto:[email protected]
<*> To unsubscribe from this group, send an email to:
[email protected]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/