From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/30635 Path: news.gmane.org!not-for-mail From: WN Newsgroups: gmane.comp.tex.context Subject: XML filtering Date: Sun, 03 Sep 2006 19:36:12 +0200 Message-ID: <44FB128C.5050706@cs.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1925435173==" X-Trace: sea.gmane.org 1157305004 27669 80.91.229.2 (3 Sep 2006 17:36:44 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 3 Sep 2006 17:36:44 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Sun Sep 03 19:36:42 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 1GJvtb-0001h8-KF for gctc-ntg-context-518@m.gmane.org; Sun, 03 Sep 2006 19:36:35 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id B7BC81FC1A; Sun, 3 Sep 2006 19:36:30 +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 16925-02; Sun, 3 Sep 2006 19:36:23 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id DD8481FB5A; Sun, 3 Sep 2006 19:36:22 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 9D8B21FB5A for ; Sun, 3 Sep 2006 19:36:19 +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 13373-06 for ; Sun, 3 Sep 2006 19:36:14 +0200 (CEST) Original-Received: from imo-m25.mx.aol.com (imo-m25.mx.aol.com [64.12.137.6]) by ronja.ntg.nl (Postfix) with SMTP id 43EB01FB55 for ; Sun, 3 Sep 2006 19:36:13 +0200 (CEST) Original-Received: from Wneimeijer01@cs.com by imo-m25.mx.aol.com (mail_out_v38_r7.6.) id a.316.b71dc14 (60465) for ; Sun, 3 Sep 2006 13:36:08 -0400 (EDT) Original-Received: from [192.168.1.33] (3e331ada.dslaccess.aol.com [62.51.26.218]) by ciaaol-m01.mx.aol.com (v112.5) with ESMTP id MAILCIAAOLM012-ec3144fb12872eb; Sun, 03 Sep 2006 13:36:08 -0400 User-Agent: Thunderbird 1.5.0.5 (Windows/20060719) Original-To: mailing list for ConTeXt users 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:30635 Archived-At: --===============1925435173== Content-Type: multipart/alternative; boundary="------------000000000207030103070707" --------------000000000207030103070707 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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. The Tex and XML files are listed below. \usemodule[contml] \defineXMLargument [category] {\chapter{ \XMLpar{category}{title}{} }} \defineXMLargument [subcategory] {\section{ \XMLpar{subcategory}{title}{} }} \defineXMLenvironment [list] \startitemize \stopitemize \defineXMLenvironment [item] \item \par \defineXMLenvironment [recordset] \bTABLE \eTABLE \defineXMLpickup [datarow] \bTR \eTR \defineXMLpickup [fieldvalue] \bTD \eTD \starttext \processXMLfilegrouped{Bios.xml} \stoptext Computer Audit :: 03-Sep-2006 18:25:08 Item Value System Version ASUS - 30303031 Award Medallion BIOS v6.0 Award Plug and Play BIOS Extension v1.0A Award Modular BIOS v6.0 System Date 08/20/02 Video Version ASUS AGP-V7700 VGA BIOS Version 2.15.01.14 ASUS AGP-V7700 VGA BIOS Version 2.15.01.14 ASUS AGP-V7700 VGA BIOS Version 2.15.01.14 Video Date 08/17/00 Names mentioned herein maybe trademarks or service marks of their respective holders. Errors and Omissions Excepted. --------------000000000207030103070707 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit 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.

The Tex and XML files are listed below.

\usemodule[contml]
\defineXMLargument [category] {\chapter{ \XMLpar{category}{title}{} }}
\defineXMLargument [subcategory] {\section{ \XMLpar{subcategory}{title}{} }}
\defineXMLenvironment [list] \startitemize \stopitemize
\defineXMLenvironment [item] \item \par

\defineXMLenvironment [recordset] \bTABLE \eTABLE
\defineXMLpickup [datarow] \bTR \eTR
\defineXMLpickup [fieldvalue] \bTD \eTD
\starttext
\processXMLfilegrouped{Bios.xml}
\stoptext

<?xml ============== File Bios.xml ===================>
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<?xml-stylesheet type="text/xsl" href="wa_xml2html.xsl"?>
<computeraudit>
    <title>Computer Audit :: 03-Sep-2006 18:25:08</title>
    <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>
                </datarow>
                <datarow>
                    <fieldvalue>System Date</fieldvalue>
                    <fieldvalue>08/20/02</fieldvalue>
                </datarow>
                <datarow>
                    <fieldvalue>Video Version</fieldvalue>
                    <fieldvalue>ASUS AGP-V7700 VGA BIOS Version 2.15.01.14 ASUS AGP-V7700 VGA BIOS Version 2.15.01.14 ASUS AGP-V7700 VGA BIOS Version 2.15.01.14</fieldvalue>
                </datarow>
                <datarow>
                    <fieldvalue>Video Date</fieldvalue>
                    <fieldvalue>08/17/00</fieldvalue>
                </datarow>
            </recordset>
        </subcategory>
    </category>
    <disclaimer>Names mentioned herein maybe trademarks or service marks of their respective holders. Errors and Omissions Excepted. </disclaimer>
</computeraudit>
--------------000000000207030103070707-- --===============1925435173== 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 --===============1925435173==--