From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/10161 Path: main.gmane.org!not-for-mail From: Simon Pepping Newsgroups: gmane.comp.tex.context Subject: Re: DocBookInConTeXt customization? Date: Tue, 17 Dec 2002 21:54:00 +0100 Sender: ntg-context-admin@ntg.nl Message-ID: <20021217205400.GB1812@scaprea> References: <1039699770.25107.28.camel@luigis.logo.net> <95D4D70A-0DD8-11D7-A0AA-0030657A7050@fastmail.fm> <20021212201146.GB1033@scaprea> <1039784241.25107.339.camel@luigis.logo.net> Reply-To: ntg-context@ntg.nl NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1040158733 20887 80.91.224.249 (17 Dec 2002 20:58:53 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Tue, 17 Dec 2002 20:58:53 +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 18OOnj-0005Qk-00 for ; Tue, 17 Dec 2002 21:58:51 +0100 Original-Received: from ref.ntg.nl (localhost.localdomain [127.0.0.1]) by ref.ntg.nl (Postfix) with ESMTP id A8F2B10AEC; Tue, 17 Dec 2002 21:59:16 +0100 (MET) Original-Received: from hgatenl.hobby.nl (ns.hobby.nl [212.72.224.8]) by ref.ntg.nl (Postfix) with ESMTP id B9A2910AE7 for ; Tue, 17 Dec 2002 21:57:56 +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 gBHKvmSP086968 for ; Tue, 17 Dec 2002 21:57:49 +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 gBHKvmw5086967 for ntg-context@ntg.nl; Tue, 17 Dec 2002 21:57:48 +0100 (CET) Original-Received: from simon by scaprea.salix.nl with local (Exim 3.35 #1 (Debian)) id 18OOj2-0000dc-00; Tue, 17 Dec 2002 21:54:00 +0100 Original-To: ntg-context@ntg.nl Mail-Followup-To: ntg-context@ntg.nl Content-Disposition: inline In-Reply-To: <1039784241.25107.339.camel@luigis.logo.net> User-Agent: Mutt/1.3.28i Errors-To: ntg-context-admin@ntg.nl X-BeenThere: ntg-context@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:10161 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:10161 On Fri, Dec 13, 2002 at 01:57:21PM +0100, scarso luigi wrote: > > I agree with this point of view: formatting preferences are expressed > > by customizing style sheets. > > But, again for example, variations like bold etc are not into semantic > of docbook: a xml document can use proc.instructions > or role attr. (ex. ) to carry this informations to > (ConTeXt) engine, but they > still remains specific for that engine with a style sheet and there are > no guarantees that they will be understand by a different engine. I did not know what to do with such attributes as role, whose range of values is not constrained. Luigi's remark gives me an idea: I should put a hook in the stylesheet for the user's own formatting command. Something like \attributeaction[para][role]. The user could define such an action with something like \defineXMLattributeaction[para][role]. The attribute action should be invoked within a group in order to allow the user to change fonts etc. for this element. Therefore context cannot invoke the attribute action automatically, because it cannot know where it should do so. For example, some mappings for the opening tag invoke \egroup; if the attribute action had been invoked automatically, its scope would be ended immediately. Groeten, Simon -- Simon Pepping email: spepping@scaprea.hobby.nl