Is there a way to access the <title> element of an HTML file? I would like that for processing multiple files, and use the title of each HTML as the page header.
Forum › How do I...?
Using the Title of a document
You can capture it with string-set:
Then reuse it in the page header:
title { string-set: page-title content() }
Then reuse it in the page header:
@page { @top { content: string(page-title) } }