Skip to content

Prefix the remaining template and mode names with their module namespaces, drop the extractor's unnamed-mode match="/" - #27

Merged
namedgraph merged 1 commit into
masterfrom
namespace-prefixed-entries
Aug 27, 2026
Merged

Prefix the remaining template and mode names with their module namespaces, drop the extractor's unnamed-mode match="/"#27
namedgraph merged 1 commit into
masterfrom
namespace-prefixed-entries

Conversation

@namedgraph

Copy link
Copy Markdown
Member

The extractor entry becomes a named template only, rdfax:extract-rdfa — enforcing the composition contract CLAUDE.md already documented. Its unnamed-mode match="/" sat in the unnamed mode of any host stylesheet importing the module and intercepted every default-mode dispatch against a document node: LinkedDataHub hit exactly that in its client.xsl integration, where view Properties mode fed its SPARQL results document to the extractor and rendered an empty rdf:RDF element instead of resource blocks.

The remaining unprefixed names move into their module namespaces:

  • extract-rdfardfax:extract-rdfa (…/rdfa-editor/rdfa#)
  • modes canonical / cm-normalize / cm-demotecm:canonical / cm:normalize / cm:demote (…/rdfa-editor/content-model#; the cm- local prefix is redundant once the namespace carries it, and cm:normalize the function is the functional form of cm:normalize the mode)
  • canonical-xhtmlcm:canonical-xhtml
  • the standalone entry mainrdfae:main

Headless invocations move to Q{uri}local EQNames in tests/run-tests.sh (note: xslt3-he rejects Clark form {uri}local), and initialTemplate in index.html and the four tests/fixture*.html runners becomes Q{https://w3id.org/atomgraph/rdfa-editor#}main. Docs (CLAUDE.md, docs/ldh/MIGRATION.md, docs/ROADMAP.md) updated to match — the "named template only" statement is now true of the source.

All 52 tests pass (extractor, lint, canonical). The browser runners are the one surface the headless suite does not exercise — worth one manual open of index.html.

The same renames are already applied to LinkedDataHub's vendored copies (rf-design-system branch, commits 429448918 and 49e0fee7c).

🤖 Generated with Claude Code

https://claude.ai/code/session_014Tgf5DjbYiX3SPnCFSgCzd

…aces, and drop the extractor's unnamed-mode match="/"

The extractor entry becomes rdfax:extract-rdfa (named only, per the
composition contract already stated in CLAUDE.md — an unnamed-mode
match="/" intercepts every default-mode dispatch against a document
node in a host stylesheet; LinkedDataHub hit exactly that in its
client.xsl integration). The canonicalization passes become
cm:canonical, cm:normalize and cm:demote (the cm- local prefix is
redundant once the namespace carries it; the cm:normalize function is
the functional form of the mode), the entry cm:canonical-xhtml, and the
standalone entry rdfae:main. Headless invocations move to Q{uri}local
EQNames in run-tests.sh and initialTemplate in the HTML runners; docs
updated to match. All 52 tests pass.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014Tgf5DjbYiX3SPnCFSgCzd
@namedgraph
namedgraph merged commit b36103f into master Aug 27, 2026
2 checks passed
@namedgraph
namedgraph deleted the namespace-prefixed-entries branch August 27, 2026 14:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant