Skip to main content
100%

XQuery Puzzles from Week 1, Day 5, Session 4 of the Advanced Digital Editions NEH Institute at the University of Pittsburgh

✓ Published0🌍 Public
CCliffordAnderson
Last edited Jul 17, 2022
Created on Jul 15, 2022

This gallery example presents a set of XQuery 3.1 puzzle solutions designed to transform data formats. One function converts a textual date like "July 15, 2022" into an `xs:date` value by tokenizing the string and using a `switch` expression to map month names to numbers, while another script processes a sequence of dates with a `for` loop. A third function converts Roman numerals to integers, using `string-to-codepoints` and `codepoints-to-string` to iterate over characters and applying a conditional sum to handle subtractive notation. The code does not use any visualization libraries; the source is a gist by CliffordAnderson.

AI-generated description

Similar vizzes