Open Intelligent2013 opened 3 years ago
My only reaction to all of this: I shouldn't be the one doing this, this should be a lutaml plugin or equivalent. (A lutaml preprocessor?) I nominate @w00lf. But then, I would...
This is to be implemented in metanorma/metanorma#203.
In order to generate documentation for XSD, XML object parser in Metanorma should support:
xsd:element
xsd:schema//xsd:element
allows to selectxsd:element
in structure likexsd:schema/xsd:complexType/xsd:sequence/xsd:element
;ancestor::xsd:complexType/@name
allows to know the type which uses this element/attribute;//*[@type = $typename]
- find nodes with attribute type equals to value from variable typename,{%include ... %}
feature with parameters like this:{% include_relative typeref.adoc ref=type %}
- pass named parameterref
with valuetype
into moduletyperef.adoc
(example you can see here: https://raw.githubusercontent.com/unitsml/schemas/xsd_liquid/adoc/index.adoc)