Employ an XML Validator

  • Have a <validate> section in the environment file tex4ht.env
    <validate>  
    .xml xmllint --noout --valid %%1.xml  
    .html java -cp texmf/tex4ht/bin/xv4ht.jar xv4ht %%1.html xv4ht.cat  
    .css mycssparser %%1.css  
    </validate>

  • Have a ‘-cvalidate’ switch for the postprocessor t4ht.c in the calling mzlatex script

    t4ht -f/$1 -cvalidate

24, next, prev, up, toc