xsl-list
[Top] [All Lists]

[xsl] Re: Use XSLT to check a bunch of XHTML files for well-formedness?

2021-02-16 15:03:09
Hi Roger,

If you can do this in linux, you can run

        xmllint --noout xhtml/*.xhtml

if the directory is flat, or

        find xhtml/ -name '*.xhtml' -print0 | xargs -0 xmllint --noout

if the directory has hierarchy. (Using "find -print0" plus "xargs -0" allows 
filenames with spaces and other special/escaped characters to be handled 
robustly.)

If you're using Windows 10, you can install WSL (Windows Subsystem for Linux) 
to be able to run linux commands directly in your Windows environment.

 - Chris
--~----------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
EasyUnsubscribe: http://lists.mulberrytech.com/unsub/xsl-list/1167547
or by email: xsl-list-unsub(_at_)lists(_dot_)mulberrytech(_dot_)com
--~--


<Prev in Thread] Current Thread [Next in Thread>