Closed Intelligent2013 closed 3 years ago
@Intelligent2013 let me know if there is anything I should do here. Thanks.
@ronaldtse I've updated the initial post, so please take a look.
@Intelligent2013 the proposed approach is good, is it already implemented in #2? Thanks!
@Intelligent2013 the proposed approach is good, is it already implemented in #2? Thanks!
@ronaldtse yes.
unitsml-v1.0-csd04.xsd has a few enumeration and some of them stored in unitsdb repo (https://github.com/unitsml/unitsdb/):
UnitsDB: https://github.com/unitsml/unitsdb/blob/master/prefixes.yaml
UnitsDB: https://github.com/unitsml/unitsdb/blob/master/units.yaml
There arent't such data in UnitsDB, so it fixed in xsd.
There arent't such data in UnitsDB, so it fixed in xsd.
There arent't such data in UnitsDB, so it fixed in xsd.
Proposals
Rename XSD file to .template and replace enumeration entities with
<boilerplate href="<entities_name>.xml"/>
, where<entities_name>.xml
is xml representation data from UnitsDB (see below). Example:On-fly convert value list from UnitsDB yaml files (prefixes.yaml and units.yaml) into xml format, like this: prefixes.xml
In https://github.com/unitsml/schemas/tree/xsd_gen branch I've prepared .template file for 1., ruby scripts for 2., and xslt transformation for 3.
Make
generates .xsd file in the folder template as described.@ronaldtse what do you think?