vscode-sxml icon indicating copy to clipboard operation
vscode-sxml copied to clipboard

Local schematron files not supported

Open jstaerk opened this issue 3 months ago • 0 comments

When I put e.g. books.xml and price.sch together in the same directory and run validate XML with associated RelaxNG scholary XML 0.4.0 will report a "Could not fetch schematron from URL" despite a control click on price.sch opens the schematron file correctly.

Books.xml refers to <?xml-model href="price.sch"... and I'm using Win11, Visual Studio Code 1.104.3.

When I put https://github.com/octavianN/Schematron-step-by-step/blob/master/Samples/BookPrice/price.sch in the href I get XML is OK (actually this should say Could not fetch schematron from URL because it's a HTML page displaying schematron, i.e. not a valid schematron) only if I put https://raw.githubusercontent.com/octavianN/Schematron-step-by-step/refs/heads/master/Samples/BookPrice/price.sch as xml-model href it works.

If "proper" URLs are expected I would expect that e.g. file:///c:/Users/jstaerk/test/books.sch would be allowed but that also reports "Could not fetch schematron from URL" ?

jstaerk avatar Oct 08 '25 08:10 jstaerk