From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/36902 Path: news.gmane.org!not-for-mail From: "Richard Gabriel" Newsgroups: gmane.comp.tex.context Subject: Re: Problem with XML entities in titles [2] Date: Fri, 05 Oct 2007 12:06:40 +0200 Message-ID: <20071005100640.89e191be@mx1.kerio.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1210279576==" X-Trace: sea.gmane.org 1191580360 23876 80.91.229.12 (5 Oct 2007 10:32:40 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 5 Oct 2007 10:32:40 +0000 (UTC) To: "mailing list for ConTeXt users" Original-X-From: ntg-context-bounces@ntg.nl Fri Oct 05 12:32:37 2007 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by lo.gmane.org with esmtp (Exim 4.50) id 1IdkTz-0007UW-GM for gctc-ntg-context-518@m.gmane.org; Fri, 05 Oct 2007 12:32:35 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 812CD1FB17; Fri, 5 Oct 2007 12:32:30 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 09667-02-13; Fri, 5 Oct 2007 12:32:26 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 9072F1FA57; Fri, 5 Oct 2007 12:32:11 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 5DDF71FA46 for ; Fri, 5 Oct 2007 12:32:04 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 09324-08-7 for ; Fri, 5 Oct 2007 12:31:59 +0200 (CEST) Original-Received: from mx1.kerio.com (mx1.kerio.com [195.39.55.2]) by ronja.ntg.nl (Postfix) with ESMTP id 60E481FA4C for ; Fri, 5 Oct 2007 12:06:40 +0200 (CEST) Original-Received: from localhost ([127.0.0.1]) by mx1.kerio.com for ntg-context@ntg.nl; Fri, 5 Oct 2007 12:06:42 +0200 In-Reply-To: 47053046.6050506@wxs.nl X-User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.8.1.7) Gecko/20070914 Firefox/2.0.0.7 X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.9 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:36902 Archived-At: This is a multi-part message in MIME format. --===============1210279576== Content-Type: multipart/alternative; boundary="-----------a2d4f309f78aac83263cadce3e2ec19d" This is a multi-part message in MIME format. -------------a2d4f309f78aac83263cadce3e2ec19d Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hans, \xmlsetsetups throws "Undefined control sequence"...=20 (ConTeXt 2007.09.28) =3F! R. =5F=5F=5F=5F=5F =20 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, >=20 > I've puzzled my brain for a while ;-) > and then I came to the following solution: >=20 > \def\ExChapter#1{ > \expanded{\chapter{#1}} > } >=20 > \defineXMLcommand[chapter]{ > \defineXMLargument[title]\ExChapter > } =20 =20 in mkiv ... this becomes: =20 =20 (1) register handler in setup ssection =20 \xmlsetsetups {main} {chapter} {*} =20 (2) access child element using lpath =20 \startxmlsetups chapter \expanded{\chapter{ \xmlfirst{#1}{title} }} \stopxmlsetups =20 =20 =20 ----------------------------------------------------------------- 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 ----------------------------------------------------------------- =5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F= =5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F= =5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F= =5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F If your question is of interest to others as well, please add an entry= to the Wiki! =20 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 =5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F= =5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F= =5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F= =5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F =20 -------------a2d4f309f78aac83263cadce3e2ec19d Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hans,

\xmlsetsetups throws "Undefined control sequence"...
(C= onTeXt 2007.09.28)

=3F!

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:<= /b> Re: [NTG-context] Problem with XML entities in titles [2]

Ric= hard 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
=09\expanded{\chapter{
=09=09\xmlfirst{#1}{title}
=09}}
\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
-----------------------------------------------------------------
=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F= =5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F= =5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F= =5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F
If your question is of interest to others as well, please add an entry t= o 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
=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F= =5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F= =5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F= =5F=5F=5F=5F=5F=5F=5F=5F=5F=5F=5F
-------------a2d4f309f78aac83263cadce3e2ec19d-- --===============1210279576== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ 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 ___________________________________________________________________________________ --===============1210279576==--