[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Use XSLT to check a bunch of XHTML files for well

Subject: Re: Use XSLT to check a bunch of XHTML files for well-formedness?
From: "Bauman, Syd s.bauman@xxxxxxxxxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Tue, 16 Feb 2021 21:38:30 -0000
Re:  Use XSLT to check a bunch of XHTML files for  well
Roger b Do you need to know from XSLT, or is it sufficient to just know? I
use xmblwfb on the commandline almost daily. It is nearly instantaneous.
Here it processes all 830 TEI specification files (relatively small files,
that is) in < 0.04 s of real time:[1]

$ ls -1 *.xml | wc
    830     830   12112
$ time xmlwf *.xml

real 0m0.038s
user 0m0.027s
sys 0m0.011s
$

Here I deliberately introduce an ill-formedness and try again (just to prove
it is not a no-op p):

$ echo "</duck>" >> xenoData.xml
$ time xmlwf *.xml
xenoData.xml:275:1: not well-formed (invalid token)

real 0m0.034s
user 0m0.034s
sys 0m0.000s
$

Notes
[1] That is literally less than a heartbeat, almost no matter how you define
one. Just the electrical signal for ventricular contraction alone in healthy
subjects is > 0.06 s, let alone atrial contraction or the time in between. (In
an unhealthy heart ventricular contraction may take over twice that long).
[2] I am not sure, but I think xmlwf is part of the expat package in Debian,
and probably other distros.
________________________________

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.