Home Articles Books Search About
日本語
How to Get an Element with a Specific xml:id Value Using JavaScript querySelector()

How to Get an Element with a Specific xml:id Value Using JavaScript querySelector()

This is a memo on how to get an element with a specific xml:id value using JavaScript’s querySelector(). Specifically, for a variable called myDoc, you can retrieve the element as follows. This example gets the element with the value abc in its xml:id attribute. myDoc.querySelector("[*|id=‘abc’]") The key point is to specify it in the format *|(pipe)id. When working with TEI/XML files in JavaScript, there are cases where you need to retrieve elements using xml:id attribute values. Unlike other attributes such as type or corresp, the xml:id attribute has the prefix “xml:” in its attribute name. Therefore, you need to use the approach described above. ...

[FOSS Memo] CollectiveAccess

[FOSS Memo] CollectiveAccess

The following is a partial translation of the GitHub README.md. github.com About CollectiveAccess CollectiveAccess is a web-based application suite that provides a framework for managing, describing, and discovering complex digital and physical collections in museum, archive, and research contexts. It consists of two applications. Providence is the “back-end” cataloging component of CollectiveAccess. It is highly configurable and supports a wide range of metadata standards, data types, and media formats. Pawtucket2 is CollectiveAccess’s general-purpose public-access publishing tool. It provides an easy way to create websites around data managed in Providence. (For more information on Pawtucket2, see https://github.com/collectiveaccess/pawtucket2.) ...