
It works! Thanks again Bernhard Am 10.05.2018 um 19:01 schrieb Bernhard Kleine:
I would prefer to use an entity like
<!ENTITY primATP "<primary sortas='ATP'>ATP, (Adenosin-Tri-Phosphat)</primary>" >
But I get the idea. I was not aware if the "sortas" attribute, therefore the question.
Thanks a lot.
Bernhard
Am 10.05.2018 um 18:49 schrieb Imsieke, Gerrit, le-tex:
Using a pure markup language, rather than a Turing-complete macro-expanding programming language, has its merits and its drawbacks.
Why don’t you use the established internal subset mechanism for centralizing these indexterm definitions?
Example: <!ENTITY idx_ATP "<indexterm><primary sortas='ATP'>ATP, (Adenosin-Tri-Phosphat)</primary></indexterm>" >
You can think of other methods for avoiding repetition, for example, (mis-) using <xref> for pointing to the first occurrence of an indexterm with a certain content:
<indexterm xml:id="idx_ATP"><primary sortas='ATP'>ATP, (Adenosin-Tri-Phosphat)</primary></indexterm> … <xref linkend="idx_ATP"/>
but then you can’t use DocBook XSL’s rendering out of the box.
Gerrit
_______________________________________________ oXygen-user mailing list oXygen-user@oxygenxml.com https://www.oxygenxml.com/mailman/listinfo/oxygen-user
-- spitzhalde9 D-79853 lenzkirch bernhard.kleine@gmx.net www.b-kleine.com, www.urseetal.net - thunderbird mit enigmail GPG schlüssel: D5257409 fingerprint: 08 B7 F8 70 22 7A FC C1 15 49 CA A6 C7 6F A0 2E D5 25 74 09