From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?UTF-8?B?QW5kcmVhcyBSw7ZobGVy?= Newsgroups: gmane.emacs.help Subject: Re: nXML questions Date: Tue, 03 Nov 2009 14:26:59 +0100 Message-ID: <4AF02FA3.7010504@easy-emacs.de> 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 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1257251271 23780 80.91.229.12 (3 Nov 2009 12:27:51 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 3 Nov 2009 12:27:51 +0000 (UTC) Cc: help-gnu-emacs@gnu.org, Sam Steingold To: Lennart Borgman Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Nov 03 13:27:44 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 1N5IUB-0008SZ-W1 for geh-help-gnu-emacs@m.gmane.org; Tue, 03 Nov 2009 13:27:44 +0100 Original-Received: from localhost ([127.0.0.1]:43650 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N5IUB-0003YA-3T for geh-help-gnu-emacs@m.gmane.org; Tue, 03 Nov 2009 07:27:43 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1N5ITn-0003Xo-At for help-gnu-emacs@gnu.org; Tue, 03 Nov 2009 07:27:19 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1N5ITi-0003W9-80 for help-gnu-emacs@gnu.org; Tue, 03 Nov 2009 07:27:18 -0500 Original-Received: from [199.232.76.173] (port=57741 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N5ITi-0003W1-4n for help-gnu-emacs@gnu.org; Tue, 03 Nov 2009 07:27:14 -0500 Original-Received: from moutng.kundenserver.de ([212.227.17.10]:57215) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1N5ITd-0004oB-EU; Tue, 03 Nov 2009 07:27:09 -0500 Original-Received: from [192.168.178.27] (p54BEB864.dip0.t-ipconnect.de [84.190.184.100]) by mrelayeu.kundenserver.de (node=mrbap0) with ESMTP (Nemesis) id 0LtDvX-1M8uIs0ct1-012GXL; Tue, 03 Nov 2009 13:27:05 +0100 User-Agent: Thunderbird 2.0.0.19 (X11/20081227) In-Reply-To: X-Provags-ID: V01U2FsdGVkX1+Z61eKqnQoMaNftiJVTVKMw7kJwYDwvMe7bxJ gCoW4P88+HPs3NQk8oruy5mgENSnao6wWkuDOAf8328t5tmsJZ mmhczjhVKjj6R5zwluy4srYM1NPT/DBxtvBBM5I81U= X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. 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:69442 Archived-At: Lennart Borgman wrote: > 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? 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/ >> >> >> >> > > >