Re: 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?

"Kurt Cagle [email protected]" <[email protected]> Sun, 21 Feb 2021 06:26:49 -0000
Newsgroups gmane.text.xml.xsl.general.mulberrytech
Message-ID <[email protected]>
I'd second Liam's recommendation about watching the network tab.in the
Chrome console and see if the XSD is actually even being read. I'd be
surprised if it was, as even Google's own documentation states that when
validation is required it should be done prior to the XML file being
downloaded, as there's no formal code, I believe, that validates XML beyond
checking for well-formedness.


*Kurt Cagle*
Community/Managing Editor
Data Science Central, A TechTarget Property
[email protected] or [email protected]
443-837-8725


On Sat, Feb 20, 2021 at 8:32 PM Liam R. E. Quin [email protected] <
[email protected]> wrote:

> On Sun, 2021-02-21 at 03:58 +0000, Wolfhart Totschnig
> [email protected] wrote:
> >
> > To Liam's suggestions:
> >
> > > Are you producing XHTML with a DOCTYPE?
> >
> > No, just HTML (see below).
> >
> > rate, are the preambles of the XML files and of the stylesheet:
> >
> > <?xml version="1.0" encoding="UTF-8"?>
> > <?xml-stylesheet type="text/xsl" href="../zettel.xsl"?>
> > <zettel xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> > xsi:noNamespaceSchemaLocation="../zettel.xsd">
> >
> >
> > <?xml version="1.0" encoding="UTF-8"?>
> > <xsl:stylesheet version="1.1"
> > xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
> >      <xsl:output method="html" doctype-system="about:legacy-compat"/>
>
> >
> > Does that help to identify a solution?
>
> You could see if removing the schemaLocation made a difference,
> although i doubt it. Unless you've installed an extension, Chrome
> doesn't seem likely to have started doing XML Schema validation on
> input to XSLT. And a system document type of about:legacy-compat is
> correct and shouldn't cause problems.
>
> Try opening the Network tab in the browser console and refreshing the
> page and see what it's fetching.
>
> Liam
>
>
>
>
> --
> Liam Quin, 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:  http://www.fromoldbooks.org
> 
>
>
--~----------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
EasyUnsubscribe: http://lists.mulberrytech.com/unsub/xsl-list/3329386
or by email: [email protected]
--~--