Comments (2)
xs:restriction
is not a built-in data type. Those are listed here in the spec https://www.w3.org/TR/xmlschema-2/#built-in-datatypes
I also want to stress the obligatory https://www.quora.com/Is-W3Schools-a-reliable-source here I don't think we should base our decisions on that source.
Also there are apparently other issues with xsd.exe handling ref incorrectly (although not very similar to this case) https://stackoverflow.com/questions/44028046/how-to-use-xsd-exe-with-attributegroup-ref I personally have mixed experience with automated codegen from XSD.
In my understanding, but I'm not an XML/XSD expert, and I know @berlotti has consulted people infinitely more knowledgeable than me on this regard, it's as you hinted on in the other issue, in this case mostly a matter of taste. When you use type
, you declare something of that type but still need to give it a name local to your schema [in XML files that adhere to the schema you see the local name]. When you use ref you basically nest that thing verbatim in your schema [in XML files that adhere to the schema you see xs:restriction].
Another difference, but not relevant, but what's described in your table, is that type
can only be used for, well, types. And ref is much more general, can be used for identifiable elements, including types.
from ids.
It is an explicit choice to use the xs:restriction as is. We don't want to create an IDS restriction of the same type as an xs:restriction, but use the actual xs:restriction. This brings a lot of added value with the ability to use multiple toolkits for xs:restriction saving implementation time and adding consistency.
Combining two namespaces was a deliberate choice. The use of two namespaces in the XSD is not common, but valid.
Closing this issue.
from ids.
Related Issues (20)
- Move PASS/FAIL to the end of file name
- Multiple regex patterns in the same requirement HOT 9
- Format of values in IDS HOT 1
- Default branch settings HOT 1
- Data type of IfcLengthMeasure "Real" or "Double"? HOT 1
- List of datatypes with Enum types used by attributes HOT 6
- List of datatypes without IfcCompoundPlaneAngleMeasure HOT 2
- IfcLogical representation in XML base HOT 1
- IMPROVEMENT: functionality to point towards bSDD (data dictionaries) HOT 4
- IDS BIM
- Restriction of values: Enumeration limited to string-based datatype or do we allow for real, integer and measurements HOT 3
- Predefined type evaluation
- userdefuned HOT 6
- Test case naming consistency HOT 2
- 2 testcases have .html file instead of .ifc HOT 2
- Tolerance documentation 1.0.0 HOT 6
- Wrong file name in the entity directory of test cases HOT 1
- Tolerance test issues in 1.0 HOT 3
- Are complex restrictions applicable to all facet parameters? HOT 2
- Test case for indirect containment is incorrect
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 ids.