facets
✓ Published0🌍 Public
CCliffordAnderson
Last edited Nov 6, 2015
Created on Nov 6, 2015
This example visualizes a faceted breakdown of book metadata, displaying each facet as a distinct element with its value and count. It shows the distribution of terms across the dataset before explaining the mechanism: the XQuery script uses `fetch:text` and `csv:parse` to load and structure the CSV data, then groups books by each specified field path from an external XML file. The `local:get_facet` function dynamically builds facet elements, ordering results by frequency. The visualization relies on the BaseX XQuery processor’s string and sequence functions, not a client-side library, and renders the output as structured XML data.
AI-generated description