From efdfe76b7f3f1bd0804456de6a92aef3ddd8cda5 Mon Sep 17 00:00:00 2001 From: Jirka Kosek Date: Sun, 18 Nov 2001 14:55:48 +0000 Subject: [PATCH] Added parameter glossterm.auto.link. When set to 1 links from glossterm to glossentry are created automatically even if there is no linkend attribute on glossterm and id attribute on glossentry. --- xsl/html/Makefile | 1 + xsl/html/glossary.xsl | 6 +++++ xsl/html/inline.xsl | 35 ++++++++++++++++++++++++++++++ xsl/html/param.ent | 1 + xsl/html/param.xweb | 2 ++ xsl/params/glossterm.auto.link.xml | 26 ++++++++++++++++++++++ 6 files changed, 71 insertions(+) create mode 100644 xsl/params/glossterm.auto.link.xml diff --git a/xsl/html/Makefile b/xsl/html/Makefile index 0def7ef60..7aec549dc 100644 --- a/xsl/html/Makefile +++ b/xsl/html/Makefile @@ -49,6 +49,7 @@ PARAMS=../params/admon.graphics.xml \ ../params/generate.section.toc.xml \ ../params/generate.section.toc.level.xml \ ../params/generate.set.toc.xml \ + ../params/glossterm.auto.link.xml \ ../params/graphic.default.extension.xml \ ../params/html.base.xml \ ../params/html.longdesc.xml \ diff --git a/xsl/html/glossary.xsl b/xsl/html/glossary.xsl index fe3e836d6..48e574dfc 100644 --- a/xsl/html/glossary.xsl +++ b/xsl/html/glossary.xsl @@ -114,6 +114,12 @@ GlossEntry ::=
+ + + 0 + 1 + +
diff --git a/xsl/html/inline.xsl b/xsl/html/inline.xsl index 8b7202c02..cea850508 100644 --- a/xsl/html/inline.xsl +++ b/xsl/html/inline.xsl @@ -621,6 +621,7 @@ + @@ -645,6 +646,40 @@ + + + + + + + + + Error: no glossentry for glossterm: + + . + + + + + + + + + + + + + + + + + + + + + + + diff --git a/xsl/html/param.ent b/xsl/html/param.ent index c0a96fe87..4301206d2 100644 --- a/xsl/html/param.ent +++ b/xsl/html/param.ent @@ -46,6 +46,7 @@ + diff --git a/xsl/html/param.xweb b/xsl/html/param.xweb index 234b41d47..576b37d8c 100644 --- a/xsl/html/param.xweb +++ b/xsl/html/param.xweb @@ -200,6 +200,7 @@ to be incomplete. Don't forget to read the source, too :-) &olink.pubid; &olink.sysid; &olink.resolver; +&glossterm.auto.link; Bibliography @@ -324,6 +325,7 @@ around all these parameters. + diff --git a/xsl/params/glossterm.auto.link.xml b/xsl/params/glossterm.auto.link.xml new file mode 100644 index 000000000..6af580c3c --- /dev/null +++ b/xsl/params/glossterm.auto.link.xml @@ -0,0 +1,26 @@ + + +glossterm.auto.link +boolean + + +glossterm.auto.link +Generate links from glossterm to glossentry automaticaly? + + + + + + +Description + +If true, a link will be automatically created from glossterm +to glossentry for that glossary term. This is usefull when your +glossterm names are consistent and you don't want to add links +manually. +If there is linkend on +glossterm then is used instead of autogeneration of +link. + + + -- 2.40.0