FictionBook — Short SAMPLE (FB2)
A minimal FictionBook (.fb2) SAMPLE with one section — for FB2/XML ebook importers.
<?xml version="1.0" encoding="UTF-8"?>
<FictionBook xmlns="http://www.gribuser.ru/xml/fictionbook/2.0"><description><title-info><book-title>SAMPLE Short FB2</book-title><lang>en</lang></title-info></description><body><section><title><p>One</p></title><p>A short FictionBook SAMPLE for XML ebook parsers.</p></section></body></FictionBook>
Specifications
- Format
- FictionBook 2.0
- Sections
- 1
Testing contract
Expected to pass- Scenario
- Exercise FictionBook — Short SAMPLE (FB2) in its fb2 workflow. A minimal FictionBook (.fb2) SAMPLE with one section — for FB2/XML ebook importers.
- Expected result
- 2 text lines, decoded as UTF-8; first nonempty line is '<?xml version="1.0" encoding="UTF-8"?>'. Declared feature checks: sections=1.
What is a .fb2 file?
FB2 (FictionBook) is an XML-based e-book format that stores an entire book, including metadata and embedded images, in a single well-structured XML file. It emphasizes semantic markup of book structure over fixed presentation. It is especially popular in the Russian-speaking e-book community.
How to use this file
Use an example FB2 to test XML e-book parsing, embedded-image extraction, metadata handling, and converters between FB2 and EPUB.
How to use this file for testing
“FictionBook — Short SAMPLE (FB2)” is a deterministic Novus Examples fixture for Conversion testing, Editor testing. The same content exported across many formats and linked as a group, so you can convert one and diff against the expected twin.
Documented properties for this file: FictionBook 2.0. Compare results against paired or grouped companions on this page when present (clean↔damaged, searchable↔scanned, or format twins) so scores stay reproducible across runs.
Download the file once, keep the path stable in CI or local scripts, and treat the spec table as the contract: dimensions, seeds, field lists, and roles are intentional. Corrupt or invalid samples are labelled as such, expect parsers to fail loudly rather than silently accept them.
E-book fixtures are structured archives documented down to their spine and manifest. Test readers and converters, and where a valid↔intentionally-invalid pair exists, assert graceful handling of the malformed container.
Related files
- fb2FB2 - Three-Level Nested Sections with a Notes BodyA FictionBook nested three sections deep, with prose directly inside an outer section, an epigraph, a cite block, and a footnote linking into a second body named notes. The FB2 equivalents of a multi-level table of contents and non-linear back matter, in one file.

- txtEPUB Conformance Matrix (wave p7) - Fixture IndexA plain-text index of every EPUB and FB2 fixture in this wave: its validity class, its subcategory, and the scenario and expected result published for it. Generated from the same entry list that builds the catalogue, so it cannot describe a file that is not there.

- svgAnimated Spinner (SVG)An animated loading spinner using SMIL (animateTransform) — a self-contained animated SVG for testing whether a renderer or converter handles SVG animation, and how it rasterises an animated frame.
- adocAsciiDoc Guide (ADOC source)An AsciiDoc getting-started guide with source blocks, an admonition, and a table — for testing AsciiDoc renderers (Asciidoctor), editors, and conversion to HTML/PDF.

- assASS Subtitles (Advanced SSA)An Advanced SubStation Alpha (.ass) subtitle with a styles section and three timed Dialogue events — the styled format libass renders — carrying the same captions as the SRT/VTT twins.

- svgBar Chart (SVG)A bar chart drawn as vector SVG — axis, gridlines, labelled bars — the scalable counterpart to the raster chart images, for testing SVG chart rendering and vector conversion.
Generated by generation/ebooks_wave_c.py. Free for any use, no attribution required, license.