Skip to main content
100%

This is my example code from our classroom exercise

✓ Published0🌍 Public
CCliffordAnderson
Last edited Jun 13, 2014
Created on Jun 12, 2014

This example visualizes stage directions from a TEI-encoded text by associating each person with the stages they appear in. The XQuery code iterates through `//person` elements and collects matching `//stage` elements based on the `@who` attribute, outputting a structured XML list of directions per character. It relies on the TEI namespace and uses `fn:tokenize` to parse multiple ID references. The result is a plain XML document, not a graphical rendering, serving as a preprocessing step for potential downstream visualization.

AI-generated description

Similar vizzes