[NTG-context] XML filtering

WN wneimeijer01 at cs.com
Sun Sep 3 19:36:12 CEST 2006


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.

\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

<?xml ============== File Bios.xml ===================>
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<?xml-stylesheet type="text/xsl" href="wa_xml2html.xsl"?>
    <title>Computer Audit :: 03-Sep-2006 18:25:08</title>
    <category title="BIOS Version">
        <subcategory title="">
            <recordset title="">
                    <fieldvalue>System Version</fieldvalue>
                    <fieldvalue>ASUS   - 30303031 Award Medallion BIOS 
v6.0 Award Plug and Play BIOS Extension v1.0A Award Modular BIOS 
                    <fieldvalue>System Date</fieldvalue>
                    <fieldvalue>Video Version</fieldvalue>
                    <fieldvalue>ASUS AGP-V7700 VGA BIOS Version ASUS AGP-V7700 VGA BIOS Version ASUS AGP-V7700 VGA 
BIOS Version</fieldvalue>
                    <fieldvalue>Video Date</fieldvalue>
    <disclaimer>Names mentioned herein maybe trademarks or service marks 
of their respective holders. Errors and Omissions Excepted. </disclaimer>
-------------- 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