Prefix the remaining template and mode names with their module namespaces, drop the extractor's unnamed-mode match="/" - #27
Merged
Conversation
…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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The extractor entry becomes a named template only,
rdfax:extract-rdfa— enforcing the composition contract CLAUDE.md already documented. Its unnamed-modematch="/"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 itsclient.xslintegration, where view Properties mode fed its SPARQL results document to the extractor and rendered an emptyrdf:RDFelement instead of resource blocks.The remaining unprefixed names move into their module namespaces:
extract-rdfa→rdfax:extract-rdfa(…/rdfa-editor/rdfa#)canonical/cm-normalize/cm-demote→cm:canonical/cm:normalize/cm:demote(…/rdfa-editor/content-model#; thecm-local prefix is redundant once the namespace carries it, andcm:normalizethe function is the functional form ofcm:normalizethe mode)canonical-xhtml→cm:canonical-xhtmlmain→rdfae:mainHeadless invocations move to
Q{uri}localEQNames intests/run-tests.sh(note:xslt3-herejects Clark form{uri}local), andinitialTemplateinindex.htmland the fourtests/fixture*.htmlrunners becomesQ{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-systembranch, commits429448918and49e0fee7c).🤖 Generated with Claude Code
https://claude.ai/code/session_014Tgf5DjbYiX3SPnCFSgCzd