XQuery Working Group Challenge
✓ Published0🌍 Public
CCliffordAnderson
Last edited Jul 22, 2015
Created on Jul 22, 2015
This example transforms the PROIEL treebank’s Latin New Testament XML into a sequence of verse elements, each tagged with its citation and concatenated token forms. It fetches the remote XML via `fn:doc`, extracts distinct citation parts, and filters tokens by matching `@citation-part` to build structured verses. The code uses XQuery 3.1’s element constructors and `fn:data` to output text, demonstrating a direct pipeline from hierarchical treebank data to flat verse-like text.
AI-generated description