Hans, \xmlsetsetups throws "Undefined control sequence"... (ConTeXt 2007.09.28) ?! R. _____ From: Hans Hagen [mailto:pragma@wxs.nl] To: mailing list for ConTeXt users [mailto:ntg-context@ntg.nl] Sent: Thu, 04 Oct 2007 20:26:14 +0200 Subject: Re: [NTG-context] Problem with XML entities in titles [2] Richard Gabriel wrote:
Hello once again,
I've puzzled my brain for a while ;-) and then I came to the following solution:
\def\ExChapter#1{ \expanded{\chapter{#1}} }
\defineXMLcommand[chapter]{ \defineXMLargument[title]\ExChapter }
in mkiv ... this becomes: (1) register handler in setup ssection \xmlsetsetups {main} {chapter} {*} (2) access child element using lpath \startxmlsetups chapter \expanded{\chapter{ \xmlfirst{#1}{title} }} \stopxmlsetups ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl ----------------------------------------------------------------- ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________