This code sample is adapted from Clifford B. Anderson and Joseph C. Wicentowski, XQuery for Humanists (College Station: Texas A&M University Press, 2020), 42. Download this code sample in its raw form. View the source on GitHub.

<p>In the <date when="2001-01-01">first day of the first year of the second
        millennium</date>, I looked outside my window, hoping to see hovercrafts
    flying by.</p>