Giter VIP home page Giter VIP logo

Comments (4)

pmai avatar pmai commented on August 24, 2024 1

Since you asked: the xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" is a declaration of a namespace (binding), as per Section 3 of the Namespaces in XML 1.1 (Second Edition) W3C Recommendation . As such it is not considered an attribute, but rather a namespace attribute of the containing element, as per Section 2.2 of the XML Information Set (Second Edition) W3C Recommendation, on which XML Schema is based. Namespace attributes are not constrained by XML Schema, see inter-alia Section 3.2.1 of W3C XML Schema Definition Language (XSD) 1.1 Part 1: Structures, or Section 3.3.4.4 as well as Section 3.4.4.2.

Furthermore, XML Schema instances are explicitly allowed to contain the attributes xsi:schemaLocation or xsi:noNamespaceSchemaLocation in all elements, as per Section 3.3.4.4 and Section 3.4.4.2.

So in summary this is not only allowed, but rather suggested by XML Schema in combination with XML Namespaces and XML Infoset.

from fmi-standard.

t-sommer avatar t-sommer commented on August 24, 2024

Should we recommenend adding the namespace attribute and update the examples accordingly?

from fmi-standard.

pmai avatar pmai commented on August 24, 2024

Should we recommenend adding the namespace attribute and update the examples accordingly?

I don't think so: Giving a schema location would only help people manually editing modelDescription.xml files, without being sophisticated enough to manually assign the proper schema. That is not a use case that we as a whole community should worry about supporting. It is fine that tools can do this if they want to, and the more common case is likely for manually generated modelDescription files, e.g. in build pipelines for manually coded FMUs, where the author might want to do that. So I see no need to state anything on this one way or another.

from fmi-standard.

KarlWernersson avatar KarlWernersson commented on August 24, 2024

Thanks @pmai =)

from fmi-standard.

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.