From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/30522 Path: news.gmane.org!not-for-mail From: Sjoerd Siebinga Newsgroups: gmane.comp.tex.context Subject: Re: XML-lookahead Date: Sun, 27 Aug 2006 15:29:07 +0200 Message-ID: <67C6883C-2DCA-4D9B-BC0B-23F23F6EF7D6@gmail.com> References: <44F1966C.7060908@wxs.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 (Apple Message framework v752.2) Content-Type: multipart/mixed; boundary="===============0955765406==" X-Trace: sea.gmane.org 1156685375 15879 80.91.229.2 (27 Aug 2006 13:29:35 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 27 Aug 2006 13:29:35 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Sun Aug 27 15:29:33 2006 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 ciao.gmane.org with esmtp (Exim 4.43) id 1GHKha-0004RP-W2 for gctc-ntg-context-518@m.gmane.org; Sun, 27 Aug 2006 15:29:27 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id DC1651FDFE; Sun, 27 Aug 2006 15:29:25 +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 16427-02; Sun, 27 Aug 2006 15:29:16 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 0E76E1FE00; Sun, 27 Aug 2006 15:29:16 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id C01B71FE00 for ; Sun, 27 Aug 2006 15:29:11 +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 16454-01-2 for ; Sun, 27 Aug 2006 15:29:04 +0200 (CEST) Original-Received: from ibook-G4-2.local (53542FF8.cable.casema.nl [83.84.47.248]) by ronja.ntg.nl (Postfix) with SMTP id 70A9C1FDFE for ; Sun, 27 Aug 2006 15:29:02 +0200 (CEST) Original-Received: from [127.0.0.1] (localhost [127.0.0.1]) by ibook-G4-2.local (Postfix) with ESMTP id D83D620B1AC for ; Sun, 27 Aug 2006 15:29:08 +0200 (CEST) In-Reply-To: <44F1966C.7060908@wxs.nl> Original-To: mailing list for ConTeXt users X-Mailer: Apple Mail (2.752.2) X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.7 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:30522 Archived-At: --===============0955765406== Content-Type: multipart/alternative; boundary=Apple-Mail-1-137004748 --Apple-Mail-1-137004748 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Thanks Hans, for the fast response. On 27-aug-2006, at 14:56, Hans Hagen wrote: > \disablemode[xml:linebreak] > > \startsetups[xml:linebreak] > \doifmode{xml:linebreak}{\disablemode[xml:linebreak]\crlf} > \stopsetups > > \defineXMLenvironment [av] {} {\ensablemode[xml:linebreak]} > > \defineXMLenvironment [liste] {\setups[xml:linebreak]} {\crlf} > > or sometign similar, I have played around with this solution for a bit and \defineXMLenvironment [liste] {} {\setups[xml:linebreak]} seems to work for the -tag. But it not entirely clear to me how this should work for the -tag when it is not followed by another tag on the same line. Sjoerd --Apple-Mail-1-137004748 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=ISO-8859-1 Thanks Hans, for the fast = response.
On 27-aug-2006, at 14:56, Hans Hagen = wrote:

\disablemode[xml:linebreak]


\startsetups[xml:linebreak]

=A0= \doifmode{xml:linebreak}{\disablemode[xml:linebreak]\crlf} =A0

\stopsetups=A0


\defineXMLenvironment [av] {} = {\ensablemode[xml:linebreak]}


\defineXMLenvironment = [liste] {\setups[xml:linebreak]} {\crlf}


or = sometign similar, =A0

=

I have played around with this solution for = a bit and=A0\defineXMLenvironment [liste] {} = {\setups[xml:linebreak]}
=A0seems to work for the = <liste>-tag. But it not entirely clear to me how this should work = for the <av>-tag when it is not followed by another tag on the = same line.=A0

Sjoerd=A0
= --Apple-Mail-1-137004748-- --===============0955765406== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context --===============0955765406==--