xsl-list
[Top] [All Lists]

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

2021-02-16 16:25:26
On 16/02/2021 20:53, Roger L Costello costello(_at_)mitre(_dot_)org wrote:
Hi Folks,

I have a folder containing a large number of XHTML files.

I want to know: for each file, is it well-formed?

What is the easiest and fastest way to see if each file is well-formed?

Install rxp and run

$ for f in *.xhtml; do rxp -xs $f; done

That performs a well-formedness test and outputs only errors.

rxp comes from the Language Technology Group at Edinburgh University,
https://www.ltg.ed.ac.uk/software/rxp/

Peter
--~----------------------------------------------------------------
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>