From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/36907 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 14:47:42 +0200 Message-ID: <20071005124742.bb1b92dc@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="===============0174880965==" X-Trace: sea.gmane.org 1191588522 18412 80.91.229.12 (5 Oct 2007 12:48:42 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 5 Oct 2007 12:48:42 +0000 (UTC) To: "mailing list for ConTeXt users" Original-X-From: ntg-context-bounces@ntg.nl Fri Oct 05 14:48: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 1IdmbT-0003D6-Lh for gctc-ntg-context-518@m.gmane.org; Fri, 05 Oct 2007 14:48:27 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id AE4271FD91; Fri, 5 Oct 2007 14:48:22 +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 20066-06-3; Fri, 5 Oct 2007 14:48:03 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id AC7B61FD7B; Fri, 5 Oct 2007 14:48:02 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 9D1F31FD6D for ; Fri, 5 Oct 2007 14:47:54 +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 20066-06-2 for ; Fri, 5 Oct 2007 14:47:44 +0200 (CEST) Original-Received: from mx1.kerio.com (mx1.kerio.com [195.39.55.2]) by ronja.ntg.nl (Postfix) with ESMTP id DE0BC1FB9B for ; Fri, 5 Oct 2007 14:47:42 +0200 (CEST) Original-Received: from localhost ([127.0.0.1]) by mx1.kerio.com for ntg-context@ntg.nl; Fri, 5 Oct 2007 14:47:45 +0200 In-Reply-To: 470625AA.3060501@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:36907 Archived-At: This is a multi-part message in MIME format. --===============0174880965== Content-Type: multipart/alternative; boundary="-----------b5dbc910154a559aebd0e6f2e3d8ffa3" This is a multi-part message in MIME format. -------------b5dbc910154a559aebd0e6f2e3d8ffa3 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Oh so, thanks Hans and Thomas! Maybe I've been sleeping too long. :-)=20 I'm going to setup luatex... -Richard =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: Fri, 05 Oct 2007 13:53:14 +0200 Subject: Re: [NTG-context] Problem with XML entities in titles [2] Richard Gabriel wrote: > Hans, >=20 > \xmlsetsetups throws "Undefined control sequence"...=20 =20 as said ... =20 > in mkiv ... this becomes: =20 so you need luatex =20 btw, you can then also do things like: =20 \xmlfirst{#1}{b[position() > 2 and position() < 5 and text() =3D=3D 'o= k']} \xmlfirst{#1}{b[position() > 2 and position() < 5 and text() =3D=3D=20 upper('ok')]} \xmlfirst{#1}{b[@n=3D=3D'03' or @n=3D=3D'08']} \xmlall {#1}{b[number(@n)>2 and number(@n)<6]} \xmlfirst{#1}{b[find(text(),'ALSO')]} =20 and other complex path stuff =20 =20 =20 Hans =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 -------------b5dbc910154a559aebd0e6f2e3d8ffa3 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Oh so, thanks Hans and Thomas! Maybe I've been sleeping too long. :-) I'm going to setup luatex...

-Richard



From: Hans Hagen [mailto:pragm= a@wxs.nl]
To: mailing list for ConTeXt users [mailto:ntg-conte= xt@ntg.nl]
Sent: Fri, 05 Oct 2007 13:53:14 +0200
Subject= : Re: [NTG-context] Problem with XML entities in titles [2]

R= ichard Gabriel wrote:
> Hans,
>
> \xmlsetsetups throws "Undefined control sequence"...

as said ...

> in mkiv ... this becomes:

so you need luatex

btw, you can then also do things like:

\xmlfirst{#1}{b[position() > 2 and position() < 5 and text() =3D= =3D 'ok']}
\xmlfirst{#1}{b[position() > 2 and position() < 5 and text() =3D= =3D
upper('ok')]}
\xmlfirst{#1}{b[@n=3D=3D'03' or @n=3D=3D'08']}
\xmlall {#1}{b[number(@n)>2 and number(@n)<6]}
\xmlfirst{#1}{b[find(text(),'ALSO')]}

and other complex path stuff



Hans


-----------------------------------------------------------------
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
-------------b5dbc910154a559aebd0e6f2e3d8ffa3-- --===============0174880965== 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 ___________________________________________________________________________________ --===============0174880965==--