Comments (4)
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.
Should we recommenend adding the namespace attribute and update the examples accordingly?
from fmi-standard.
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.
Thanks @pmai =)
from fmi-standard.
Related Issues (20)
- Interpretation of fmi3GetBinary with array variables HOT 2
- Forbid or discourage nameclashes of terminal names with normal model variables HOT 1
- Layered standard for reference solutions in an FMU HOT 1
- PDF in 2.0.4 "Complete package" Zip file marked as "rc2" HOT 1
- Non-normative text states that importers can deactivate output clocks HOT 2
- Handling of time-based Clocks with interval=0 HOT 5
- Standard is not clear about the information flow of Clocks HOT 5
- LICENSE.TXT of full package of FMI 2.0.4 release still contains "non-commercial" version of CC license HOT 1
- Usage of FMI for steady state simulation HOT 6
- Glossary clarifications for "simulator - simulation program - simulation tool"
- Clarify lifetime of argument functions in fmi2Instantiate() HOT 3
- Define legal values for currentCommunicationPoint after t = startTime HOT 1
- FMI 2.0.4 PDF displays version 2.0.3 in header HOT 1
- fmi2_import_get_variable_has_start(fmi2_import_variable_t*) API is returning zero (0) for Outputs and Global Block Outputs HOT 2
- Define allowed call sequence when terminateSimulation = true HOT 3
- Handling of file access and pathname parameters HOT 1
- Clarify allowed call sequence after fmi3Error has been returned HOT 1
- Bump Reference FMUs submodule to latest version prior to release
- Clarify meaning of DefaultExperiment.stepSize for Model Exchange HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fmi-standard.