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

Subject: [xsl] Re: Use XSLT to check a bunch of XHTML files for well-formedness?
From: "Chris Papademetrious christopher.papademetrious@xxxxxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Tue, 16 Feb 2021 21:03:03 -0000
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

Current Thread