From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/5787 Path: main.gmane.org!not-for-mail From: Berend de Boer Newsgroups: gmane.comp.tex.context Subject: Re: Some XML typesetting questions Date: 08 Oct 2001 09:07:30 +0200 Sender: owner-ntg-context@let.uu.nl Message-ID: <87d73yy5hp.fsf@dellius.nederware.nl> References: NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1035396355 4567 80.91.224.250 (23 Oct 2002 18:05:55 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 23 Oct 2002 18:05:55 +0000 (UTC) Cc: ntg-context@ntg.nl Original-To: Jaroslav Snajdr In-Reply-To: Xref: main.gmane.org gmane.comp.tex.context:5787 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:5787 Jaroslav Snajdr writes: > Pushing and popping cannot cope with chapter content. Now I do this: > > \defineXMLcommand[chapter]{\let\DBtitle=\chapter} > \defineXMLargument[title]{\DBtitle} > > But I'm a bit afraid what will happen when I come to support tag > arguments or other things. Perhaps do something like this: \defineXMLcommand[chapter] {\global\defineXMLcommand[title]{..}{..}} So you redefine the action for title based on chapter/section/etc. Title can be defined more or less according to the code in the manual I assume. (not sure if the global is needed) -- Groetjes, Berend. (-: