Skip to content

Requirements for Metanorma to process documentation for XSD in adoc #5

@Intelligent2013

Description

@Intelligent2013

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,
  • support {%include ... %} feature with parameters like this: {% include_relative typeref.adoc ref=type %} - pass named parameter ref with value type into module typeref.adoc (example you can see here: https://raw.githubusercontent.com/unitsml/schemas/xsd_liquid/adoc/index.adoc)

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions