LibreOffice Writer Master Document Linking Protocols

LibreOffice Writer uses a master document system (.odm) to combine multiple sub-documents (.odt) into a single cohesive work. This article explains the underlying linking protocols, URI schemes, and file management mechanisms LibreOffice Writer employs to reference, synchronize, and display sub-documents within a master document framework.

OpenDocument Format (ODF) XML Linking

At the core format level, LibreOffice Writer adheres to the OASIS OpenDocument Format (ODF) standard. When a sub-document is inserted into a master document via the Navigator, Writer creates a specialized linked section within the document’s XML structure (content.xml).

This connection relies on the text:section-source element using the W3C XLink standard: * xlink:href: Specifies the target URI or file path of the sub-document. * xlink:type="simple": Designates a direct, one-way link to the external source file. * text:filter-name: Defines the import filter used to parse the sub-document contents upon loading.

URI Schemes and File-System Path Resolution

LibreOffice Writer resolves linked sub-documents using standard Uniform Resource Identifier (URI) formats and native operating system paths:

Remote and Virtual File System Protocols (UCP)

LibreOffice includes an abstraction layer called the Universal Content Provider (UCP), which enables master documents to link to sub-documents hosted across various network and cloud protocols:

DDE and OLE Section Linking

In addition to native master document Navigator links, LibreOffice Writer supports alternative linking protocols for bringing external content into master document workflows: