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

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

Re: nXML questions


From: Andreas Röhler
Subject: Re: nXML questions
Date: Tue, 03 Nov 2009 14:26:59 +0100
User-agent: Thunderbird 2.0.0.19 (X11/20081227)

Lennart Borgman wrote:
> On Tue, Nov 3, 2009 at 11:59 AM, Andreas Roehler
> <address@hidden> wrote:
>> Sam Steingold wrote:
>>> Now that nXML is the default xml mode instead of the old sgml-mode, I am
>>> wondering it its manual could be brought up to date, e.g., answering the
>>> question which bothers me right now:
>>>
>>> how do I tell nxml that I have a compound docbook document consisting of
>>> a few files included into the master file using system entities, when
>>> editing a component file? nxml does not recognize any of the entities,
>>> defined in the master file.
>>>
>>> also, nxml seems to think that the <code> element and the language=
>>> attribute of the <programlisting> element are invalid. why?
>>>
>>> also, it does not recognize <xi:include> elements. why?
>>>
>>> thanks!
>>>
>>> Sam.
>>
>> Hi,
>>
>> AFAIU nxml is designed exclusively to edit XML Schema files.
>> XML Schema don't use a DTD as docbook does.
> 
> 
> That sounds a bit strange. Is there a misunderstanding there?

Hi Lennart,

that's fairly possible. Just exploring this matter.
Thanks for your help.

Andreas


> 
> You can for example edit XHTML files with nXml. It uses the DTD, but
> it have to have it converted to an .rng file. Please see the home page
> for nXml for more information about how to convert a DTD to a .rng
> file.
> 
> A .rng file for DocBook comes with Emacs. However there are several
> DocBook DTDs. There are perhaps also some things that nXml does not
> cover fully, but I do not know this well.
> 
> 
> 
>> You should be able to restore DTD-modes with
>>
>> M-x sgml-mode
>>
>> Also this should be customizable.
>>
>> If not, it's a bug IMHO.
>>
>>
>> Andreas
>>
>> --
>> https://code.launchpad.net/s-x-emacs-werkstatt/
>> http://bazaar.launchpad.net/~a-roehler/python-mode/python-mode.el/
>>
>>
>>
>>
> 
> 
> 





reply via email to

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