From: WN <wneimeijer01@cs.com>
Subject: XML filtering
Date: Sun, 03 Sep 2006 19:36:12 +0200 [thread overview]
Message-ID: <44FB128C.5050706@cs.com> (raw)
[-- Attachment #1.1: Type: text/plain, Size: 2380 bytes --]
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>
[-- Attachment #1.2: Type: text/html, Size: 4532 bytes --]
[-- Attachment #2: Type: text/plain, Size: 139 bytes --]
_______________________________________________
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context
next reply other threads:[~2006-09-03 17:36 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-09-03 17:36 WN [this message]
2006-09-03 17:41 ` Hans Hagen
2006-09-04 0:54 ` WN
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=44FB128C.5050706@cs.com \
--to=wneimeijer01@cs.com \
--cc=ntg-context@ntg.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).