From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/17483 Path: main.gmane.org!not-for-mail From: h h extern Newsgroups: gmane.comp.tex.context Subject: Re: XML & s Date: Fri, 10 Dec 2004 22:38:27 +0100 Message-ID: <41BA1753.9080206@wxs.nl> References: <20041209211043.6911@news.comp.lancs.ac.uk> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1102715805 17783 80.91.229.6 (10 Dec 2004 21:56:45 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 10 Dec 2004 21:56:45 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Fri Dec 10 22:56:40 2004 Return-path: Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1Ccskh-0008FE-00 for ; Fri, 10 Dec 2004 22:56:40 +0100 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 88931127C0; Fri, 10 Dec 2004 22:56:39 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (ronja.vet.uu.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 10595-05; Fri, 10 Dec 2004 22:56:39 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id B46D0127C2; Fri, 10 Dec 2004 22:53:14 +0100 (CET) Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 399A1127C2 for ; Fri, 10 Dec 2004 22:53:13 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (ronja.vet.uu.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 10596-02 for ; Fri, 10 Dec 2004 22:53:12 +0100 (CET) Original-Received: from mailrelay02.solcon.nl (unknown [212.45.32.200]) by ronja.ntg.nl (Postfix) with ESMTP id 6C0D0127C0 for ; Fri, 10 Dec 2004 22:53:12 +0100 (CET) Original-Received: from server-1.pragma-net.nl (dsl-212-84-128-085.solcon.nl [212.84.128.85]) by mailrelay02.solcon.nl (8.12.11/SQL-8.12.11-5/8.12.11) with ESMTP id iBALr7VJ028017 for ; Fri, 10 Dec 2004 22:53:07 +0100 Original-Received: by server-1.pragma-net.nl (Postfix, from userid 65534) id D91DB1CE5B; Fri, 10 Dec 2004 22:53:11 +0100 (CET) Original-Received: from [127.0.0.1] (unknown [10.100.1.1]) by server-1.pragma-net.nl (Postfix) with ESMTP id 8692717BE7 for ; Fri, 10 Dec 2004 21:53:09 +0000 (UTC) User-Agent: Mozilla Thunderbird 0.8 (Windows/20040913) X-Accept-Language: en-us, en Original-To: mailing list for ConTeXt users In-Reply-To: <20041209211043.6911@news.comp.lancs.ac.uk> X-Virus-Scanned: ClamAV 0.80/540/Tue Oct 19 14:59:23 2004 clamav-milter version 0.80j on mailrelay02 X-Virus-Status: Clean X-Virus-Scanned: by amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.5 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: by amavisd-new at ntg.nl Xref: main.gmane.org gmane.comp.tex.context:17483 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:17483 Adam Lindsay wrote: > Hi all. > > I want to use XML, but in a non-doctrinaire way: I much prefer TeX > formula writing to mathml by hand. > > I looked at xtag-mml, and the \defineXMLenvironment [formula] looked like > just what I wanted. However, when trying it, the XML catcode regime was > still in effect, and the backslashes were printed, and didn't act as escapes. > > Am I missing something in the correct usage, or is support "incomplete"? > > > This is a sample file, showing how I've been trying to use it: > > \useXMLfilter[mml] > \starttext > \startXMLdata > > t+3+x+t\neq m\alpha\frac\theta\hbar > > \stopXMLdata > \stoptext \starttext \unprotected \def\XMLtex#1% {\begingroup \disableXML \scantokens\@EA\@EA\@EA{\csname\@@XMLdata:#1\endcsname}% \endgroup} \defineXMLenvironmentsave [formula] {} {\XMLtex{formula}} \input bryson \startXMLdata t+3+x+t\neq m\alpha\frac\theta\hbar \stopXMLdata \input thuan \stoptext > Also, what's the status of contml? I like the idea of it as a simple, > structural, basic markup that ConTeXt handles with zero effort, but is > anyone actually using it? we sometimes mix it into other xml docs; i have no problem with extending it; actualy, (see mag-0008.pdf), i want to map most context directly onto xml so that we have a rather complete xml input syntax 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 -----------------------------------------------------------------