OfficeIMO.DocBook 3.4.0

Prefix Reserved
dotnet add package OfficeIMO.DocBook --version 3.4.0
                    
NuGet\Install-Package OfficeIMO.DocBook -Version 3.4.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="OfficeIMO.DocBook" Version="3.4.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="OfficeIMO.DocBook" Version="3.4.0" />
                    
Directory.Packages.props
<PackageReference Include="OfficeIMO.DocBook" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add OfficeIMO.DocBook --version 3.4.0
                    
#r "nuget: OfficeIMO.DocBook, 3.4.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package OfficeIMO.DocBook@3.4.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=OfficeIMO.DocBook&version=3.4.0
                    
Install as a Cake Addin
#tool nuget:?package=OfficeIMO.DocBook&version=3.4.0
                    
Install as a Cake Tool

OfficeIMO.DocBook

OfficeIMO.DocBook creates, reads, edits, validates, converts, and writes a bounded common-structure profile of DocBook 4 and 5. It prioritizes articles, books, metadata, sections, paragraphs, lists, CALS-shaped tables, code, links, cross-references, admonitions, media, and indexes. It does not claim a typed object for every DocBook or extension element.

Install

dotnet add package OfficeIMO.DocBook
using OfficeIMO.DocBook;

DocBookDocument document = DocBookDocument.CreateArticle(DocBookProfile.DocBook52);
document.Title = "Deployment guide";

DocBookNode section = document.AddSection("Install");
section.AddParagraph("Install the package from NuGet.");
section.AddProgramListing("dotnet add package OfficeIMO.DocBook", "shell");
section.AddAdmonition(DocBookNodeKind.Note, "Validate before publishing.");

DocBookValidationResult validation = document.Validate();
document.Save("guide.docbook");

The typed API is a view over the backing XDocument. Unknown elements, attributes, comments, processing instructions, namespace declarations, and document types remain present. An unchanged file or stream is written byte-for-byte; after an edit, preserved XML is serialized around changed values. AddExtension and Xml provide deliberate access outside the typed common structure.

Exact profiles and validation scope

DocBookSchemaProfiles exposes the exact official identifiers associated with each OfficeIMO profile:

  • DocBook45: public ID -//OASIS//DTD DocBook XML V4.5//EN and system ID http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd.
  • DocBook52: namespace http://docbook.org/ns/docbook, the OASIS 5.2 non-XInclude docbook.rng, and its Schematron rules.

Validate() performs DocBookValidationScope.OfficeIMOCommonStructure. Its result sets IsOfficialSchemaValidated to false: it checks the bounded authoring contract but does not pretend to run the complete external DTD, RELAX NG, Schematron, XInclude, assembly, ITS, or arbitrary extension schemas. Applications requiring formal conformance can run the exposed official artifacts in their chosen validator.

Reading accepts no-namespace DocBook 4 and namespaced DocBook 5 documents; canonical creation writes exactly 4.5 or 5.2. External entity resolution is disabled, and internal subsets containing external or parameter entity declarations are rejected; bounded internal general entities remain supported. Default limits are 32 MiB encoded input, 32 million XML characters, 256 levels, 250,000 elements, one million attributes, and 4,096 entity-expanded characters.

ToOfficeDocumentModel() and FromOfficeDocumentModel() use OfficeDocumentModel.Structure and deterministic loss diagnostics. The shared projection also publishes authors, links, and bounded CALS tables. Independent flat blocks, tables, assets, or links are appended to the document's common content container when recursive structure does not already represent them, with a placement-loss diagnostic; books use a chapter container so typed additions remain schema-valid. Shared-model pages, forms, and structured visuals are outside this bounded profile and produce explicit loss diagnostics instead of being silently discarded. Both conversion directions enforce DocBookConversionOptions.MaxStructureDepth and MaxStructureNodes; reverse conversion also rejects cyclic structures. Projection defaults to an aggregate 32-million-character text budget, at most 1,024 table columns, 100,000 header rows, 100,000 body rows, and 1,000,000 aggregate column-label and rectangular row-cell slots across the document; DocBookConversionOptions can lower those limits, and diagnostics report omitted text, truncation, or layout flattening while the native XML remains preserved. Structured author attribution uses the person's name fields rather than folding affiliation or contact metadata into the display name; the recursive structure still retains those additional author children. Validation and conversion retain at most 100 detailed diagnostics per code by default, followed by one occurrence summary; DocBookValidationOptions.MaxDetailedDiagnosticsPerCode and DocBookConversionOptions.MaxDetailedDiagnosticsPerCode can lower or raise that budget. OfficeIMO.Reader.DocBook adds dedicated .dbk and .docbook ingestion without taking over generic .xml routing; Reader chunks retain enclosing admonition kinds and use content-safe Markdown fences for program listings and screens.

Targets: netstandard2.0, net8.0, net10.0, and net472 on Windows.

Dependency footprint

  • External: None; schemas are identified but not downloaded at runtime.
  • OfficeIMO: OfficeIMO.Core.

See the complete OfficeIMO package map for related formats and conversion paths.

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 is compatible.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on OfficeIMO.DocBook:

Package Downloads
OfficeIMO.Reader.DocBook

Modular OfficeIMO.Reader adapter for bounded DocBook ingestion.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
3.4.0 0 9/6/2026
3.3.0 54 9/2/2026