From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/28086 Path: news.gmane.org!not-for-mail From: nico Newsgroups: gmane.comp.tex.context Subject: Re: open math Date: Sat, 20 May 2006 00:30:15 +0200 Message-ID: References: <446CD2BB.1050409@wxs.nl> <446E2ADC.3030601@wxs.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1148077599 6840 80.91.229.2 (19 May 2006 22:26:39 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 19 May 2006 22:26:39 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Sat May 20 00:26:34 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 1FhDQU-0002mu-58 for gctc-ntg-context-518@m.gmane.org; Sat, 20 May 2006 00:26:30 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id BE8A4126F8; Sat, 20 May 2006 00:26:29 +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 00453-01; Sat, 20 May 2006 00:26:24 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 94BD512772; Sat, 20 May 2006 00:26:24 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 1DFC512772 for ; Sat, 20 May 2006 00:26:24 +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 00419-02-3 for ; Sat, 20 May 2006 00:26:23 +0200 (CEST) Original-Received: from swip.net (mailfe02.tele2.fr [212.247.154.44]) by ronja.ntg.nl (Postfix) with SMTP id 466D3126F8 for ; Sat, 20 May 2006 00:26:21 +0200 (CEST) X-T2-Posting-ID: 3brHPWvyEzVNt0QNlxQWsxGJRDYe7rueGgqwO1zxZAg= X-Cloudmark-Score: 0.000000 [] Original-Received: from [213.103.239.234] (HELO localhost) by mailfe02.swip.net (CommuniGate Pro SMTP 5.0.8) with ESMTP id 201297052 for ntg-context@ntg.nl; Sat, 20 May 2006 00:26:20 +0200 Original-To: "mailing list for ConTeXt users" In-Reply-To: <446E2ADC.3030601@wxs.nl> User-Agent: Opera M2/7.54 (FreeBSD, build 955) 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:28086 Archived-At: On Fri, 19 May 2006 22:30:20 +0200, Hans Hagen wrote: > nico wrote: >> On Thu, 18 May 2006 22:02:03 +0200, Hans Hagen wrote: >> >> Just a question about the ctx file as described in the doc: does it mean >> that every XML file is processed first by 'openmath' and then >> 'mathadore'? >> >> If so, why not using the xsltproc piping, avoiding the intermediate .om >> files? >> > i'm not aware of piping ... how does the command look then? Thinking a bit about this, you could avoid using two passes, by merging both stylesheets. The only limitation is the need of the node-set EXSL function (but available in xsltproc by default). Simple example: The main stylesheet (say, x-openmath.xsl): The imported ones: x-sm2om.xsl ----------- http://www.openmath.org/OpenMath 2.0 x-om2cml.xsl ------------ http://www.openmath.org/OpenMath 2.0 XML file --------- a b c d e xsltproc x-openmath.xsl example.xml It should be checked on the real stylesheets, but it should work. It's nicer than piping commands, and should take less time to process. Regards, BG