From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/9772 Path: main.gmane.org!not-for-mail From: Simon Pepping Newsgroups: gmane.comp.tex.context Subject: Re: Fwd: ConTeXt FAQ format, XML with DTD Date: Fri, 8 Nov 2002 12:34:33 +0100 Sender: ntg-context-admin@ref.ntg.nl Message-ID: <20021108113433.GA4492@scaprea> Reply-To: ntg-context@ref.ntg.nl NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1036784341 18223 80.91.224.249 (8 Nov 2002 19:39:01 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Fri, 8 Nov 2002 19:39:01 +0000 (UTC) Return-path: Original-Received: from ref.vet.uu.nl ([131.211.172.13] helo=ref.ntg.nl) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18AEy4-0004jg-00 for ; Fri, 08 Nov 2002 20:39:00 +0100 Original-Received: from ref.ntg.nl (localhost.localdomain [127.0.0.1]) by ref.ntg.nl (Postfix) with ESMTP id 1EC4E10B0B; Fri, 8 Nov 2002 20:40:32 +0100 (MET) Original-Received: from hgatenl.hobby.nl (ns.hobby.nl [212.72.224.8]) by ref.ntg.nl (Postfix) with ESMTP id 7003C10B06 for ; Fri, 8 Nov 2002 20:39:25 +0100 (MET) Original-Received: from hgatenl.hobby.nl (localhost [127.0.0.1]) by hgatenl.hobby.nl (8.12.5/8.12.2) with ESMTP id gA8JdNqo088220 for ; Fri, 8 Nov 2002 20:39:23 +0100 (CET) (envelope-from spepping@scaprea.hobby.nl) Original-Received: (from uucp@localhost) by hgatenl.hobby.nl (8.12.5/8.12.2/Submit) with UUCP id gA8JdMLK088219 for ntg-context@ntg.nl; Fri, 8 Nov 2002 20:39:22 +0100 (CET) Original-Received: from simon by scaprea.salix.nl with local (Exim 3.35 #1 (Debian)) id 18A7PG-0001Tz-00; Fri, 08 Nov 2002 12:34:34 +0100 Original-To: ConTeXt-ML Mail-Followup-To: ConTeXt-ML Content-Disposition: inline User-Agent: Mutt/1.3.28i Errors-To: ntg-context-admin@ref.ntg.nl X-BeenThere: ntg-context@ref.ntg.nl X-Mailman-Version: 2.0.13 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.comp.tex.context:9772 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:9772 On Fri, Nov 08, 2002 at 10:22:56AM +0000, Henning Hraban Ramm wrote: > Hello again! > > JM's proposal of FAQ format is only for one FAQ entry. > The following one may contain the whole thing: several "recipes" (FAQ > entries), > each in more than one language. Your DTD has a number of problems. I have skipped most of this discussion, so I do not know what you want. But the content models are very vague: ANY for question and answer, and it seems you assume ANY for code as well. If you do not specify this more precisely, too much will be possible and nobody knows what to expect. A content model like %text;, declared as (#PCDATA|p|code)+, would be better. Schemas have some extra facilities here, but otherwise I am not sure why they would be preferable. The id in %person should be CDATA, as already remarked. Note that this assumes a tightly organized set of documents. You say nothing about the author or editor, so you assume that the id resolves into an entry in another document, and that the renderer knows which document so that it can generate a hyperlink. You might also use XLink language: xlink:href="author#hraban", which already indicates that the author can be found in the document author in the same directory, with the ID hraban. OTOH, this is less flexible w.r.t. the organization of the document set. Note that Docbook has provisions for QandA: qandaset, question, answer. I think docbook is a prime example of too wide a DTD. But it is useful to try and devise a DTD that is a subset of Docbook. It would make your documents processable with generic Docbook tools. Regards, Simon -- Simon Pepping email: spepping@scaprea.hobby.nl