Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to create permalinks in ref attribute? #1

Open
jjarosch opened this issue Jul 5, 2024 · 0 comments
Open

how to create permalinks in ref attribute? #1

jjarosch opened this issue Jul 5, 2024 · 0 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@jjarosch
Copy link
Collaborator

jjarosch commented Jul 5, 2024

Projects may differ on how their permalinks are structured and where they are stored. How to handle this? Create a configuration field with an XPath that evaluates to the permalink? (Either by retrieving it as-is from the file, or by concatenating.)

<xsl:attribute name="ref">
<!-- concatenate the permalink from a namespace / base URL and the xml:id of the file -->
<!-- TODO: it may be better to not do this, and instead take the complete permalink from an <idno> within the file -->
<!-- if the latter, that may need to be configured using an XPath -->
<xsl:value-of select="$config/c8r:namespace/child::text() || ./ancestor::tei:TEI/@xml:id"/>
</xsl:attribute>

@jjarosch jjarosch added enhancement New feature or request help wanted Extra attention is needed labels Jul 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant