From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/10166 Path: main.gmane.org!not-for-mail From: scarso luigi Newsgroups: gmane.comp.tex.context Subject: Re: DocBookInConTeXt customization? Date: 18 Dec 2002 18:42:00 +0100 Sender: ntg-context-admin@ntg.nl Message-ID: <1040233320.29827.17.camel@luigis.logo.net> 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> <20021217205400.GB1812@scaprea> Reply-To: ntg-context@ntg.nl NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1040233365 22549 80.91.224.249 (18 Dec 2002 17:42:45 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 18 Dec 2002 17:42:45 +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 18OiDS-0005rO-00 for ; Wed, 18 Dec 2002 18:42:42 +0100 Original-Received: from ref.ntg.nl (localhost.localdomain [127.0.0.1]) by ref.ntg.nl (Postfix) with ESMTP id 4216810AF2; Wed, 18 Dec 2002 18:43:10 +0100 (MET) Original-Received: from luigis.logo.net (host158-124.pool217223.interbusiness.it [217.223.124.158]) by ref.ntg.nl (Postfix) with ESMTP id AA1D710AF0 for ; Wed, 18 Dec 2002 18:41:52 +0100 (MET) Original-Received: (from luigi@localhost) by luigis.logo.net (8.11.6/8.11.6) id gBIHg1h29942; Wed, 18 Dec 2002 18:42:01 +0100 X-Authentication-Warning: luigis.logo.net: luigi set sender to scarsoluigi@libero.it using -f Original-To: ntg-context@ntg.nl In-Reply-To: <20021217205400.GB1812@scaprea> X-Mailer: Ximian Evolution 1.0.3 (1.0.3-4) 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:10166 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:10166 > 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. When I just start to play with xml/context, I realize a test for table (i'm still playing with it) in which I write something like blahh blahh
and define \defineXMLpickup [entry] [role=]% %%Open tag {\expanded{\beforesplitstring{\XMLpar{entry}{role}{}}}\at [\to\Type% % get ..options..] \expanded{\aftersplitstring{\XMLpar{entry}{role}{}}}\at [\to\rawOptions% % get ..options.. \expanded{\beforesplitstring{\rawOptions}}\at ]\to\Options% \doifelse{\Type}{setupentry}% {%then \expanded{\bTD[\Options]} }{%else \bTD% }}% %%Close tag {\eTD} Is your way, Simon ?