Sample MVC for William
✓ Published0🌍 Public
CCliffordAnderson
Last edited Apr 25, 2017
Created on Apr 25, 2017
This example demonstrates a simple Model-View-Controller architecture for generating an HTML listing of the first 50 article titles from a TEI XML collection. It shows how an XQuery REST endpoint (`%rest:path`) routes requests to a controller function, which delegates rendering to a separate view module. The view uses standard XQuery functions like `fn:collection` and `element` to transform TEI-encoded text segments directly into HTML paragraphs.
AI-generated description