Edirom / MerMEId

Metadata Editor and Repository for MEI Data
https://mermeid.edirom.de/
Apache License 2.0
12 stars 5 forks source link

Conversion of the reusable components from XBL standard to Web Components approach #211

Closed claudius108 closed 1 month ago

claudius108 commented 3 months ago

Reason for conversion

This conversion is needed to modernize the codebase of MerMEId.

The current status

The reusable components, as the component for adding a reference to an authority file to the context node, are currently stored in XBL files. As an example, one can consider the forms/includes/authority.xbl file, which is used in 7 other files, namely: forms/details-expression.xml, forms/details-item.xml, forms/details-performance.xml, forms/details-reference.xml, forms/details-source.xml, forms/edit-form-head.xml, forms/model-edit-head.xml.

These components are expressed by using XBL, which comes from Xenogamous Binding Language, a specification for a language providing "the ability to associate elements in a document with script, event handlers, CSS, and more complex content models, which can be stored in another document" [1].

Important note: The XBL specification is not maintained anymore.

The structure of an XBL file

A component is stored in one xbl:binding element.

How to convert the above mentioned sections of an XBL file

Note: the result of conversion is an XForms file, to be insert in any other XForms file by using XInclude. The structure of the target XForms style will be according to the model offered by the certainty-input.xml file.

The proposed status

The proposed status is to use Web Components, a well defined, and well established approach, which uses W3C standards [2].

Bibliography

[1] XBL 2.0. W3C Working Group Note 24 May 2012, https://w3.org/TR/xbl/, accessed on 2024.07.23.

[2] Web Components. MDN Web Docs, https://developer.mozilla.org/en-US/docs/Web/API/Web_components.

claudius108 commented 1 month ago

Moved these ideas to NFDI cloud.