-
Notifications
You must be signed in to change notification settings - Fork 22
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
Improve support for automatic bibliographies, small tweaks to glossary handling #466
Conversation
I believe that the In this case, users would not necessarily have to provide the This would also apply for I would need a new public function The analogy is not that bad. |
Ah. Fair point. Bibliographic markup in DocBook is not as tidy as it could be. I tend to use biblioref but citation is clearly a possibility. |
I've added support for automatic bibliographies that are more similar to automatic glossaries when using One consequence of reworking how the bibliographies and glossaries are constructed (to avoid reordering elements) is that those functions aren't actually used by the stylesheets anymore. I don't know if that's a problem or not. |
I think the stylesheets are ready to go; what I didn't have time to finish this morning is the documentation. |
I am also eager to have a new release. Thanks a lot, Norm. I have started with Schematron for glossaries using SchXslt. The Schema is simple. The challenge is to implement it in a way that can be integrated in the xspec automatic testing. Especially we will have relative URIs to integrate standalone functions in the (compiled) schematron stylesheet. I'm afraid I'll have to bother you for this. I think we should try to find a solution where Schematron stylesheets and xslTNG transformation stylesheets use the same function to find matching entries for terms. Otherwise there is always a risk that schematron signals "OK" but transformation leads to errors. Maybe i can improve the |
Yes, it makes sense to use the same functions in both places or there's risk of drift. The problem with the That's even more problematic in the bibliography where sorting is impractical. I think the solution is probably a pair of simpler functions: given a term or citation, what are it's corresponding referents? And, given a glossentry or bibliography entry, does it have any referrers? I'll take another look this evening after the day job 😄 |
Norm, i have a question about the
Let's say that the
In other words, when called from schematron, it will find the dp PI only in this case:
but not when it is a child of the root element
I am afraid that the I have made my first schematron experiments which work very well. But when i test with glossary.007.xml from your pre-release, it can't find the external glossary from schematron. I had to move the processing instruction outside of the article and make it a documents child node. The above seems to explain this issue. What do you think? Greetings, Frank |
Yeah. I think that's a bug. I'm going to refactor a bunch of things tonight. |
I more-or-less completely reworked the way automatic glossaries and bibliographies work. I think the end result is equally useful and suitable for use in Schematron.
|
I have checked with the Schematron schema for Glossary and it looks very good, passing |
role="auto"
on bibliographies that causes unused entries to be omitted.