<fragment>
The <fragment> tag defines a named piece of program text for literate
programming and code assembly. A fragment can contain raw code along with
references to other fragments via <fragref>.
Fragments are useful when you want to explain code in pieces while still assembling complete source files for output.
Syntax
Attributes
| Attribute | Required? | Values |
|---|---|---|
filename = "…" | optional | string |
xml:id = "…" | optional | string |
Children
The following may appear as children:<code> <fragref> <title> Parents
This element may appear as an immediate child of the following elements:<appendix> <article> <chapter> <conclusion> <introduction> <page> <paragraphs> <section> <subsection> <subsubsection> <worksheet>