Closed fsteimke closed 5 months ago
In retrospect, I have identified two problems with this PR:
I like what you've done, but I've had to make a few changes.
v:pi-db-attributes-are-uris
) to handle this.$glossary-collection
parameter point to glosscollection.xml
by default for most of the glossary tests. (Except the ones that use a PI.)xpath-default-namespace
intensly confusing. I've taken it out. t:glossary-content
template is only defined in transforms/50-normalize.xsl
so it doesn't fit into the documentation. I'm still trying to work out what to do about that.It feels like bibliography-collection
might need a similar sort of treatment, at least with respect to things like taking a list of values. But I may not try to do that right now.
I'm tempted to take t:glossary-content
out. It seems like it might reasonably be considered a bug to have multiple glossary entries for the same entry. There's no mechanism for users to add customizations to the internal transformations, so it's not really practical to provide an alternate definition.
If you have a glossary with multiple entries, you can deal with that when the glossary is being formatted.
No, that doesn't work. You don't want to have multiple versions "visible" to the cross-referencing mechanisms.
Thats right, i don
t want two glossentries for the same term in my glossary.
But a general definition in the shared glossary, and a specific definition in my internal glossary is a use case that we had in practice. The specific entry covers the general definition
When I have your solution for Glassaries, I'd be happy to use it as a blueprint for bibliography. There are typically three parts that can be shared and need similar schematron rules in our documents:
This is a big one. I hope it fits in with your plans for further development of the stylesheets.
standalone-functions.xsl
. It contains a public functionf:glossentries
.f:glossentries
in50-normalize.xsl
to create content for automatic glossaries.glossdiv
in automatic glossaries, created a new templatet:glossary-content
which enables overwriting it.f:glossentries
and `t:glossary-content' in the reference manualI don't expect this contribution to be adopted as is, but I'd be very happy if my work at least partially contributes to better glossary support in xslTNG.
I tried to avoid the whitespace problems. Please let me know if i could do better.
Greetings, Frank