From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/30637 Path: news.gmane.org!not-for-mail From: WN Newsgroups: gmane.comp.tex.context Subject: Re: XML filtering Date: Mon, 04 Sep 2006 02:54:41 +0200 Message-ID: <44FB7951.8040605@cs.com> References: <44FB128C.5050706@cs.com> <44FB13C2.5090307@wxs.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0069977513==" X-Trace: sea.gmane.org 1157331309 29748 80.91.229.2 (4 Sep 2006 00:55:09 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 4 Sep 2006 00:55:09 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Mon Sep 04 02:55:07 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 1GK2jw-0002X3-Mv for gctc-ntg-context-518@m.gmane.org; Mon, 04 Sep 2006 02:55:04 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id BD9031FCCA; Mon, 4 Sep 2006 02:55:00 +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 16568-03; Mon, 4 Sep 2006 02:54:49 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id BD8061FCAA; Mon, 4 Sep 2006 02:54:48 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 5312F1FCAA for ; Mon, 4 Sep 2006 02:54:47 +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 16610-01-2 for ; Mon, 4 Sep 2006 02:54:44 +0200 (CEST) Original-Received: from imo-d05.mx.aol.com (imo-d05.mx.aol.com [205.188.157.37]) by ronja.ntg.nl (Postfix) with SMTP id A8E6A1FCA3 for ; Mon, 4 Sep 2006 02:54:44 +0200 (CEST) Original-Received: from Wneimeijer01@cs.com by imo-d05.mx.aol.com (mail_out_v38_r7.6.) id a.523.67a6d65 (60476) for ; Sun, 3 Sep 2006 20:54:36 -0400 (EDT) Original-Received: from [192.168.1.33] (3e331ada.dslaccess.aol.com [62.51.26.218]) by ciaaol-m04.mx.aol.com (v112.5) with ESMTP id MAILCIAAOLM041-ec3c44fb794c21; Sun, 03 Sep 2006 20:54:36 -0400 User-Agent: Thunderbird 1.5.0.5 (Windows/20060719) Original-To: mailing list for ConTeXt users In-Reply-To: <44FB13C2.5090307@wxs.nl> X-AOL-IP: 62.51.26.218 X-Mailer: Unknown (No Version) 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:30637 Archived-At: --===============0069977513== Content-Type: multipart/alternative; boundary="------------000500040409060609090201" --------------000500040409060609090201 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit pragma@wxs.nl wrote: > WN wrote: > Another question, still learning, I am struggling with the following. In the XML there is a tag indicating a set of records which I map to table entries. After this tag a couple of tags labelled should be translated to table header entries followed by which I map to a table row (\bTR \eTR) but the tag is not grouped in a tag. How can I translate the tags so they will be interpreted as entries in the table header ? Wim example XML Item Value System Version ASUS - 30303031 Award Medallion BIOS v6.0 Award Plug and Play BIOS Extension v1.0A Award Modular BIOS v6.0 >> Hello, >> >> I have a couple of XML's generated by a freeware program which I want >> to process with Context. >> I started experimenting and things look good, however I want to >> skip/filter out some of the xml tags >> like * Some Text .... * and >> * Some Text * >> so they don't show in the resulting PDF. >> > \defineXMLignore[*computeraudit]* > > ----------------------------------------------------------------- > 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 > ----------------------------------------------------------------- > > _______________________________________________ > ntg-context mailing list > ntg-context@ntg.nl > http://www.ntg.nl/mailman/listinfo/ntg-context > --------------000500040409060609090201 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit pragma@wxs.nl wrote:
WN wrote:
  
Another question, still learning, I am struggling with the following. In the XML
there is a tag <recordset> indicating a set of records which I map to table entries.
After this tag a couple of tags labelled <fieldname> should be translated to table header entries
followed by <datarow> which I map to a table row (\bTR \eTR) but
the tag <fieldname> is not grouped in a <datarow> tag.

How can I translate the <fieldname> tags so they will be interpreted as entries in the table header ?

Wim

example XML
<category title="BIOS Version">
        <subcategory title="">
            <recordset title="">
                <fieldname>Item</fieldname>
                <fieldname>Value</fieldname>
                <datarow>
                    <fieldvalue>System Version</fieldvalue>
                    <fieldvalue>ASUS   - 30303031 Award Medallion BIOS v6.0 Award Plug and Play BIOS Extension v1.0A Award Modular BIOS v6.0</fieldvalue>
            </recordset>
        </subcategory>
    </category>
Hello,

I have a couple of XML's generated by a freeware program which I want 
to process with Context.
I started experimenting and things look good, however I want to 
skip/filter out some of the xml tags
like *<computeraudit> Some Text .... </computeraudit>* and 
*<disclaimer> Some Text </disclaimer>*
so they don't show in the resulting PDF.
    
\defineXMLignore[*computeraudit]*

-----------------------------------------------------------------
                                          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
-----------------------------------------------------------------

_______________________________________________
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context
  

--------------000500040409060609090201-- --===============0069977513== 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 --===============0069977513==--