From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/10167 Path: main.gmane.org!not-for-mail From: Simon Pepping Newsgroups: gmane.comp.tex.context Subject: Re: DocBookInConTeXt customization? Date: Wed, 18 Dec 2002 20:56:16 +0100 Sender: ntg-context-admin@ntg.nl Message-ID: <20021218195616.GA1208@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> <20021217205400.GB1812@scaprea> <1040233320.29827.17.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 1040241531 25196 80.91.224.249 (18 Dec 2002 19:58:51 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 18 Dec 2002 19:58:51 +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 18OkLA-0006Xz-00 for ; Wed, 18 Dec 2002 20:58:48 +0100 Original-Received: from ref.ntg.nl (localhost.localdomain [127.0.0.1]) by ref.ntg.nl (Postfix) with ESMTP id 0D54210AE9; Wed, 18 Dec 2002 20: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 B51F810AE7 for ; Wed, 18 Dec 2002 20:57:20 +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 gBIJvDSP000529 for ; Wed, 18 Dec 2002 20:57:13 +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 gBIJvDMg000528 for ntg-context@ntg.nl; Wed, 18 Dec 2002 20:57:13 +0100 (CET) Original-Received: from simon by scaprea.salix.nl with local (Exim 3.35 #1 (Debian)) id 18OkIi-0000Os-00; Wed, 18 Dec 2002 20:56:16 +0100 Original-To: ntg-context@ntg.nl Mail-Followup-To: ntg-context@ntg.nl Content-Disposition: inline In-Reply-To: <1040233320.29827.17.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:10167 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:10167 On Wed, Dec 18, 2002 at 06:42:00PM +0100, scarso luigi wrote: > 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 ? I remember this discussion. This is not my kind of XML file, the attribute value is too much written for context. It is useful if it is meant to be an input file for Context, but it is not useful if the XML file is meant to be formatter independent. And I think the code you have to write to use the attribute is too difficult as a user option. I was thinking more about the simple example and a simple user command like \defineattributeaction[para][type] {\doifsamestring{\XMLpar{para}{type}{}}{bold}{\bfa}} Regards, Simon -- Simon Pepping email: spepping@scaprea.hobby.nl