Re: [xsl] Why does Chrome's XSL processor validate my XML files when processing them, and how can I make it stop doing that so that it processes them faster?

Subject: Re: [xsl] Why does Chrome's XSL processor validate my XML files when processing them, and how can I make it stop doing that so that it processes them faster?
From: "Liam R. E. Quin liam@xxxxxxxxxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Sun, 21 Feb 2021 02:48:06 -0000
On Sun, 2021-02-21 at 02:00 +0000, Wolfhart Totschnig
wolfhart.totschnig@xxxxxxxxxxx wrote:
>  I would have thought that 
> switching from a DTD to an XSD would not have any effect on the 
> performance of the XSL processor because the processor would ignore
> the 
> associated DTD or XSD, respectively.B 

It can't ignore the DTD because it might define entities.

Are you producing XHTML with a DOCTYPE?  The W3C servers throttle the
spead at which they serve the HTML DTDs, because of high demand (at
times the load dwarfs e.g. having multiple stories on the front page of
slashdot).

> is there a way -- a line of
> code 
> that I could add to the XSL stylesheet -- that would make it stop 
> validating the files and hence process them faster?

Without seeing teh stylesheets or the input or the output it's
impossible to say.

> 
> 2) I could not test the issue with another web browser because Chrome
> is 
> the only browser that I can get to execute the stylesheet at all. All
> other browsers that I have tried refuse to execute the stylesheet on
> my 
> local XML files, supposedly for security reasons.

Make sure you serve the files via a local Web server. Most Linux
systems include one, so tryputting he files in ~/public_html/ and going
to http://127.0.0.1/~wolfhart/ or whaever.

Liam

-- 
Liam Quin,B https://www.delightfulcomputing.com/
Available for XML/Document/Information Architecture/XSLT/
XSL/XQuery/Web/Text Processing/A11Y training, work & consulting.
Barefoot Web-slave, antique illustrations: B http://www.fromoldbooks.org

Current Thread