Skip to main content
100%

Fleurs du Mal

✓ Published0🌍 Public
CCliffordAnderson
Last edited Mar 13, 2015
Created on Mar 6, 2015

This example displays the table of contents for Charles Baudelaire’s *Fleurs du Mal*, stored as a collection in BaseX. The page fetches document URLs from the `fleurs-du-mal` database and renders them as hyperlinks, using the RESTXQ module to map the `{$title}` path parameter to a specific document when the title starts with “FDM.” The code relies on BaseX’s `db:open`, `fn:collection`, and `fn:doc` functions to query XML files, and outputs XHTML via the `%rest:path` and `%output:method` annotations.

AI-generated description

Similar vizzes