From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lennart Borgman Newsgroups: gmane.emacs.help Subject: Re: nXML questions Date: Tue, 3 Nov 2009 12:39:27 +0100 Message-ID: References: <4AEF5631.8030502@gnu.org> <4AF00D13.9090107@online.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1257248449 14643 80.91.229.12 (3 Nov 2009 11:40:49 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 3 Nov 2009 11:40:49 +0000 (UTC) Cc: help-gnu-emacs@gnu.org, Sam Steingold To: Andreas Roehler Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Nov 03 12:40:42 2009 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1N5Hke-0005A1-4z for geh-help-gnu-emacs@m.gmane.org; Tue, 03 Nov 2009 12:40:40 +0100 Original-Received: from localhost ([127.0.0.1]:50513 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N5Hkd-0000np-84 for geh-help-gnu-emacs@m.gmane.org; Tue, 03 Nov 2009 06:40:39 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1N5Hjv-0000mS-5o for help-gnu-emacs@gnu.org; Tue, 03 Nov 2009 06:39:55 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1N5Hjq-0000jt-4A for help-gnu-emacs@gnu.org; Tue, 03 Nov 2009 06:39:54 -0500 Original-Received: from [199.232.76.173] (port=39434 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N5Hjp-0000jl-LQ for help-gnu-emacs@gnu.org; Tue, 03 Nov 2009 06:39:49 -0500 Original-Received: from mail-gx0-f224.google.com ([209.85.217.224]:65423) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1N5Hjn-0006Mq-PA; Tue, 03 Nov 2009 06:39:47 -0500 Original-Received: by gxk24 with SMTP id 24so1408980gxk.6 for ; Tue, 03 Nov 2009 03:39:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :from:date:message-id:subject:to:cc:content-type; bh=7E6Ie0kJncIJYXkUYYF4GWgu6eqnrASqvteJ2+5xpUY=; b=ZW+Iu/vY1B/5K6tX3hXhvgoGlpcdDgWP5xmMRhBni12SIBvcDaxIa/OOsiCWlHiJAU o4hagYHi12lH+nQ1u8FzyrLILugtz/xkmwGMckiV6lDl7GYXZww6rRmmaVX71rrnIv2d EBXU6tqznSJRFPZj8bj6v1cusxrhIw3uGGJF8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; b=dyK3dsITRnbcCFt1irKjQqa2sxsIbbRCEqKOBHHaopq2hqvB/1L6I9b3uXi/kuTD2B UK0nyZXdnGNJzytqkoMlmdWpE3ngnA9TTm7Ixs0MT6F4Ms2wZPHoxlmEUpSk42ARRMn9 jH3WirEV1DTlIOIzp6Yi/52wX26RvpCG9lFxA= Original-Received: by 10.101.210.31 with SMTP id m31mr910353anq.179.1257248387112; Tue, 03 Nov 2009 03:39:47 -0800 (PST) In-Reply-To: <4AF00D13.9090107@online.de> X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:69441 Archived-At: On Tue, Nov 3, 2009 at 11:59 AM, Andreas Roehler 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 element and the language= >> attribute of the element are invalid. why? >> >> also, it does not recognize 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/ > > > >