all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Lennart Borgman <lennart.borgman@gmail.com>
To: Andreas Roehler <andreas.roehler@online.de>
Cc: help-gnu-emacs@gnu.org, Sam Steingold <sds@gnu.org>
Subject: Re: nXML questions
Date: Tue, 3 Nov 2009 12:39:27 +0100	[thread overview]
Message-ID: <e01d8a50911030339n6a910a03yf624ce9f8ba988af@mail.gmail.com> (raw)
In-Reply-To: <4AF00D13.9090107@online.de>

On Tue, Nov 3, 2009 at 11:59 AM, Andreas Roehler
<andreas.roehler@online.de> 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?

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	other threads:[~2009-11-03 11:39 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-11-02 21:59 nXML questions Sam Steingold
2009-11-03 10:59 ` Andreas Roehler
2009-11-03 11:39   ` Lennart Borgman [this message]
2009-11-03 13:26     ` Andreas Röhler
2009-11-03 14:47     ` Drew Adams
2009-11-03 21:24   ` Stephen Langer
2009-11-03 21:32     ` Lennart Borgman
2009-11-04 14:59       ` Stephen Langer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=e01d8a50911030339n6a910a03yf624ce9f8ba988af@mail.gmail.com \
    --to=lennart.borgman@gmail.com \
    --cc=andreas.roehler@online.de \
    --cc=help-gnu-emacs@gnu.org \
    --cc=sds@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.