Giter VIP home page Giter VIP logo

Comments (3)

Lin87 avatar Lin87 commented on August 17, 2024

After half-day of research, I don't think this is possible with the validator at https://validator.w3.org/. It always displayed the Schema Error: Cannot find preset schema for namespace...error message. I even tested an XML file created by W3C and got the same error message. Plus, this W3C validator complains when the XML character encoding is not US-ASCII (basic English, no accent characters, etc.)

I created the schema for the sbplus.xml, https://media.uwex.edu/app/storybook_plus_v3/sbplus.xsd. I tested this schema and sbplus.xml files with other XML validators (https://www.freeformatter.com/xml-validator-xsd.html, http://www.utilities-online.info/xsdvalidation/, etc.), and they all worked.

My conclusion is that W3C validator no longer works (or outdated) for XML validation. The error message is a bug that W3C no longer bother to fix.

from sbplus-v3.

Lin87 avatar Lin87 commented on August 17, 2024

Add the following attributes to test against the schema:
<storybook ... xmlns="https://media.uwex.edu/app/storybook_plus_v3/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="https://media.uwex.edu/app/storybook_plus_v3/ https://media.uwex.edu/app/storybook_plus_v3/sbplus.xsd">

from sbplus-v3.

Lin87 avatar Lin87 commented on August 17, 2024

XML error message screen updated with a new message. Three XML validator services are listed as alternatives. All of them can validate XML by URL, upload, or direct input. W3C validator link removed as it is no longer validate XML.

from sbplus-v3.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.