[NTG-context] XML filtering
WN
wneimeijer01 at cs.com
Sun Sep 3 19:36:12 CEST 2006
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>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.ntg.nl/pipermail/ntg-context/attachments/20060903/eccdf552/attachment.html
More information about the ntg-context
mailing list