-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Labels
enhancementNew feature or requestNew feature or request
Description
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 selectxsd:element
in structure likexsd: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,
- iterate all nested elements xsd:element independent of depth, for example
- support
{%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)
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request