You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In order to generate documentation for XSD, XML object parser in Metanorma should support:
process xml namespaces
setup namespaces
specify namespaces in element names, like xsd:element
specify XPath expressions, it is necessary for these features:
iterate all nested elements xsd:element independent of depth, for example xsd:schema//xsd:element allows to select xsd:element in structure like xsd:schema/xsd:complexType/xsd:sequence/xsd:element;
access to ancestor element, for example ancestor::xsd:complexType/@name allows to know the type which uses this element/attribute;
find nodes by condition, for example //*[@type = $typename] - find nodes with attribute type equals to value from variable typename,
Intelligent2013
changed the title
DRAFT: requirements for Metanorma to process documentation for XSD
Requirements for Metanorma to process documentation for XSD in adoc
Mar 1, 2021
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...
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)The text was updated successfully, but these errors were encountered: