Skip to content

Instantly share code, notes, and snippets.

@tomschr
Last active September 22, 2015 06:26
Show Gist options
  • Save tomschr/e4debf714d2149ede1e8 to your computer and use it in GitHub Desktop.
Save tomschr/e4debf714d2149ede1e8 to your computer and use it in GitHub Desktop.
Very rough XSLT to backlink from DocBook's glossary to the first glossterm|firstterm entry
<article xml:lang="en" version="5.0"
xmlns="http://docbook.org/ns/docbook"
xmlns:xi="http://www.w3.org/2001/XInclude"
xmlns:xlink="http://www.w3.org/1999/xlink">
<title>Test</title>
<para xml:id="first"><glossterm>XML</glossterm></para>
<para xml:id="second">bla bla bla <glossterm>XML</glossterm></para>
<glossary>
<title>Glossary</title>
<glossentry xml:id="glos.xml">
<glossterm>XML</glossterm>
<glossdef>
<para>Definition of XML</para>
</glossdef>
</glossentry>
</glossary>
</article>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment