From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/22683 Path: news.gmane.org!not-for-mail From: "Adam Lindsay" Newsgroups: gmane.comp.tex.context Subject: Re: Antwort: Re: XML Date: Fri, 23 Sep 2005 16:03:29 +0100 Message-ID: <20050923150329.14468@mail.comp.lancs.ac.uk> References: 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 1127487925 8316 80.91.229.2 (23 Sep 2005 15:05:25 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 23 Sep 2005 15:05:25 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Fri Sep 23 17:05:21 2005 Return-path: 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 1EIp5U-0006go-1h for gctc-ntg-context-518@m.gmane.org; Fri, 23 Sep 2005 17:03:44 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 02CA312802; Fri, 23 Sep 2005 17:03:43 +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 10333-02; Fri, 23 Sep 2005 17:03:39 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 0EDFE127FB; Fri, 23 Sep 2005 17:03:39 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id E5A45127FB for ; Fri, 23 Sep 2005 17:03:37 +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 10444-01 for ; Fri, 23 Sep 2005 17:03:36 +0200 (CEST) Original-Received: from mail.comp.lancs.ac.uk (mail.comp.lancs.ac.uk [148.88.3.45]) by ronja.ntg.nl (Postfix) with ESMTP id E515E127A0 for ; Fri, 23 Sep 2005 17:03:36 +0200 (CEST) Original-Received: from [194.80.37.193] (localhost [127.0.0.1]) by mail.comp.lancs.ac.uk (8.12.10/8.12.10) with ESMTP id j8NF3VA7016345; Fri, 23 Sep 2005 16:03:31 +0100 (BST) Original-To: "mailing list for ConTeXt users" , "Jessica Holle" In-Reply-To: X-Mailer: CTM PowerMail version 5.2.1 build 4397 English X-Virus-Scanned: 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-Spam-Checker-Version: SpamAssassin 3.0.3 (2005-04-27) on smtp.ntg.nl X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:22683 Archived-At: Henning Hraban Ramm said this at Fri, 23 Sep 2005 16:29:17 +0200: >Am 2005-09-22 um 09:53 schrieb Jessica Holle: > >> There I don't find something which helps me. >> The input must not be only XML. In can also be CVS or something >> else... > >You will have to convert your XML file to become a ConTeXt table, use >XSLT or some scripting language. >ConTeXt's TABLE format ("HTML tables") is very suitable for such. I'm not sure I understand the "CVS or something else" part from the original poster, but XML-style tables can very feasibly be mixed with other ConTeXt code: \usemodule [contml] % load the simple default xml vocab \autoXMLnamespace [context] % avoid prefixing elements w/ context: \setupcolors [state=start] % not necessary, helps with example \starttext \section{Some \ConTeXt} \startXMLdata
some XML
xx xx
\stopXMLdata I can also have normal \TeX-like \inframed[frame=off,background=color,backgroundcolor=yellow] {markup}. \stoptext >Is it possible to fill a table or a document in ConTeXt with content >from a XML file? You can replace the \startXMLdata-\stopXMLdata block with (in this case) \processXMLfilegrouped{table.xml} where table.xml holds a table similar to the above. -- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Adam T. Lindsay, Computing Dept. atl@comp.lancs.ac.uk Lancaster University, InfoLab21 +44(0)1524/510.514 Lancaster, LA1 4WA, UK Fax:+44(0)1524/510.492 -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-