From: Norman W. <nw...@us...> - 2001-09-26 18:36:37
|
Update of /cvsroot/docbook/xsl/html In directory usw-pr-cvs1:/tmp/cvs-serv28139 Modified Files: admon.xsl biblio.xsl block.xsl callout.xsl component.xsl division.xsl ebnf.xsl formal.xsl glossary.xsl graphics.xsl html.xsl index.xsl inline.xsl lists.xsl qandaset.xsl refentry.xsl sections.xsl synop.xsl table.xsl verbatim.xsl xref.xsl Log Message: Bug #464487: use (new) anchor template to consistently generate HTML anchors (usually conditionally, in other words, only for elements that actually have an ID) Index: admon.xsl =================================================================== RCS file: /cvsroot/docbook/xsl/html/admon.xsl,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -r1.1 -r1.2 *** admon.xsl 2001/04/02 13:03:45 1.1 --- admon.xsl 2001/09/26 18:36:34 1.2 *************** *** 63,71 **** </td> <th> ! <a> ! <xsl:attribute name="name"> ! <xsl:call-template name="object.id"/> ! </xsl:attribute> ! </a> <xsl:apply-templates select="." mode="object.title.markup"/> </th> --- 63,67 ---- </td> <th> ! <xsl:call-template name="anchor"/> <xsl:apply-templates select="." mode="object.title.markup"/> </th> *************** *** 89,97 **** <h3 class="title"> ! <a> ! <xsl:attribute name="name"> ! <xsl:call-template name="object.id"/> ! </xsl:attribute> ! </a> <xsl:apply-templates select="." mode="object.title.markup"/> </h3> --- 85,89 ---- <h3 class="title"> ! <xsl:call-template name="anchor"/> <xsl:apply-templates select="." mode="object.title.markup"/> </h3> *************** *** 106,135 **** <xsl:template match="caution/title"></xsl:template> <xsl:template match="tip/title"></xsl:template> - - <xsl:template match="title" mode="admonition.title.mode"> - <xsl:variable name="id"> - <xsl:call-template name="object.id"> - <xsl:with-param name="object" select=".."/> - </xsl:call-template> - </xsl:variable> - <h3 class="title"> - <a name="{$id}"> - <xsl:apply-templates/> - </a> - </h3> - </xsl:template> - - <xsl:template match="title" mode="graphic.admonition.title.mode"> - <xsl:variable name="id"> - <xsl:call-template name="object.id"> - <xsl:with-param name="object" select=".."/> - </xsl:call-template> - </xsl:variable> - <b class="title"> - <a name="{$id}"> - <xsl:apply-templates/> - </a> - </b> - </xsl:template> </xsl:stylesheet> --- 98,101 ---- Index: biblio.xsl =================================================================== RCS file: /cvsroot/docbook/xsl/html/biblio.xsl,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -r1.2 -r1.3 *** biblio.xsl 2001/07/04 09:48:26 1.2 --- biblio.xsl 2001/09/26 18:36:34 1.3 *************** *** 31,43 **** <xsl:template match="bibliography/title" mode="component.title.mode"> - <xsl:variable name="id"> - <xsl:call-template name="object.id"> - <xsl:with-param name="object" select=".."/> - </xsl:call-template> - </xsl:variable> <h2 class="title"> ! <a name="{$id}"> ! <xsl:apply-templates/> ! </a> </h2> </xsl:template> --- 31,39 ---- <xsl:template match="bibliography/title" mode="component.title.mode"> <h2 class="title"> ! <xsl:call-template name="anchor"> ! <xsl:with-param name="node" select=".."/> ! </xsl:call-template> ! <xsl:apply-templates/> </h2> </xsl:template> *************** *** 58,70 **** <xsl:template match="bibliodiv/title"> - <xsl:variable name="id"> - <xsl:call-template name="object.id"> - <xsl:with-param name="object" select=".."/> - </xsl:call-template> - </xsl:variable> <h3 class="{name(.)}"> ! <a name="{$id}"> ! <xsl:apply-templates/> ! </a> </h3> </xsl:template> --- 54,62 ---- <xsl:template match="bibliodiv/title"> <h3 class="{name(.)}"> ! <xsl:call-template name="anchor"> ! <xsl:with-param name="node" select=".."/> ! </xsl:call-template> ! <xsl:apply-templates/> </h3> </xsl:template> *************** *** 73,77 **** <xsl:template match="biblioentry"> ! <xsl:variable name="id"><xsl:call-template name="object.id"/></xsl:variable> <xsl:choose> <xsl:when test="string(.) = ''"> --- 65,72 ---- <xsl:template match="biblioentry"> ! <xsl:variable name="id"> ! <xsl:call-template name="object.id"/> ! </xsl:variable> ! <xsl:choose> <xsl:when test="string(.) = ''"> *************** *** 89,94 **** <xsl:value-of select="$bibliography.collection"/> </xsl:message> ! <div id="{$id}" class="{name(.)}"> ! <a name="{$id}"/> <p> <xsl:text>Error: no bibliography entry: </xsl:text> --- 84,89 ---- <xsl:value-of select="$bibliography.collection"/> </xsl:message> ! <div class="{name(.)}"> ! <xsl:call-template name="anchor"/> <p> <xsl:text>Error: no bibliography entry: </xsl:text> *************** *** 102,107 **** </xsl:when> <xsl:otherwise> ! <div id="{$id}" class="{name(.)}"> ! <a name="{$id}"/> <p> <xsl:apply-templates mode="bibliography.mode"/> --- 97,102 ---- </xsl:when> <xsl:otherwise> ! <div class="{name(.)}"> ! <xsl:call-template name="anchor"/> <p> <xsl:apply-templates mode="bibliography.mode"/> *************** *** 113,117 **** <xsl:template match="bibliomixed"> ! <xsl:variable name="id"><xsl:call-template name="object.id"/></xsl:variable> <xsl:choose> <xsl:when test="string(.) = ''"> --- 108,115 ---- <xsl:template match="bibliomixed"> ! <xsl:variable name="id"> ! <xsl:call-template name="object.id"/> ! </xsl:variable> ! <xsl:choose> <xsl:when test="string(.) = ''"> *************** *** 130,134 **** </xsl:message> <div id="{$id}" class="{name(.)}"> ! <a name="{$id}"/> <p> <xsl:text>Error: no bibliography entry: </xsl:text> --- 128,132 ---- </xsl:message> <div id="{$id}" class="{name(.)}"> ! <xsl:call-template name="anchor"/> <p> <xsl:text>Error: no bibliography entry: </xsl:text> *************** *** 143,147 **** <xsl:otherwise> <div id="{$id}" class="{name(.)}"> ! <a name="{$id}"/> <p> <xsl:choose> --- 141,145 ---- <xsl:otherwise> <div id="{$id}" class="{name(.)}"> ! <xsl:call-template name="anchor"/> <p> <xsl:choose> Index: block.xsl =================================================================== RCS file: /cvsroot/docbook/xsl/html/block.xsl,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -r1.4 -r1.5 *** block.xsl 2001/07/21 14:32:31 1.4 --- block.xsl 2001/09/26 18:36:34 1.5 *************** *** 17,25 **** <xsl:template name="block.object"> <div class="{name(.)}"> ! <a> ! <xsl:attribute name="name"> ! <xsl:call-template name="object.id"/> ! </xsl:attribute> ! </a> <xsl:apply-templates/> </div> --- 17,21 ---- <xsl:template name="block.object"> <div class="{name(.)}"> ! <xsl:call-template name="anchor"/> <xsl:apply-templates/> </div> *************** *** 31,46 **** <p> <xsl:if test="position() = 1 and parent::listitem"> ! <a> ! <xsl:attribute name="name"> ! <xsl:call-template name="object.id"> ! <xsl:with-param name="object" select="parent::listitem"/> ! </xsl:call-template> ! </xsl:attribute> ! </a> </xsl:if> ! <xsl:if test="@id"> ! <a name="{@id}"/> ! </xsl:if> <xsl:apply-templates/> </p> --- 27,36 ---- <p> <xsl:if test="position() = 1 and parent::listitem"> ! <xsl:call-template name="anchor"> ! <xsl:with-param name="node" select="parent::listitem"/> ! </xsl:call-template> </xsl:if> ! <xsl:call-template name="anchor"/> <xsl:apply-templates/> </p> *************** *** 50,56 **** <!-- see also listitem/simpara in lists.xsl --> <p> ! <xsl:if test="@id"> ! <a name="{@id}"/> ! </xsl:if> <xsl:apply-templates/> </p> --- 40,44 ---- <!-- see also listitem/simpara in lists.xsl --> <p> ! <xsl:call-template name="anchor"/> <xsl:apply-templates/> </p> *************** *** 59,65 **** <xsl:template match="formalpara"> <p> ! <xsl:if test="@id"> ! <a name="{@id}"/> ! </xsl:if> <xsl:apply-templates/> </p> --- 47,51 ---- <xsl:template match="formalpara"> <p> ! <xsl:call-template name="anchor"/> <xsl:apply-templates/> </p> *************** *** 91,97 **** <xsl:template match="blockquote"> ! <xsl:if test="@id"> ! <a name="{@id}"/> ! </xsl:if> <xsl:choose> <xsl:when test="attribution"> --- 77,81 ---- <xsl:template match="blockquote"> ! <xsl:call-template name="anchor"/> <xsl:choose> <xsl:when test="attribution"> *************** *** 139,148 **** <xsl:template match="sidebar"> <div class="{name(.)}"> ! <a> ! <xsl:attribute name="name"> ! <xsl:call-template name="object.id"/> ! </xsl:attribute> ! </a> ! <xsl:apply-templates/> </div> --- 123,127 ---- <xsl:template match="sidebar"> <div class="{name(.)}"> ! <xsl:call-template name="anchor"/> <xsl:apply-templates/> </div> Index: callout.xsl =================================================================== RCS file: /cvsroot/docbook/xsl/html/callout.xsl,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -r1.3 -r1.4 *** callout.xsl 2001/05/21 17:16:03 1.3 --- callout.xsl 2001/09/26 18:36:34 1.4 *************** *** 90,94 **** <xsl:template match="co"> ! <a name="{@id}"/> <xsl:apply-templates select="." mode="callout-bug"/> </xsl:template> --- 90,94 ---- <xsl:template match="co"> ! <xsl:call-template name="anchor"/> <xsl:apply-templates select="." mode="callout-bug"/> </xsl:template> Index: component.xsl =================================================================== RCS file: /cvsroot/docbook/xsl/html/component.xsl,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -r1.7 -r1.8 *** component.xsl 2001/08/01 00:44:58 1.7 --- component.xsl 2001/09/26 18:36:34 1.8 *************** *** 17,28 **** <xsl:template name="component.title"> <xsl:param name="node" select="."/> - <xsl:variable name="id"> - <xsl:call-template name="object.id"> - <xsl:with-param name="object" select="$node"/> - </xsl:call-template> - </xsl:variable> - <h2 class="title"> ! <a name="{$id}"/> <xsl:apply-templates select="$node" mode="object.title.markup"/> </h2> --- 17,24 ---- <xsl:template name="component.title"> <xsl:param name="node" select="."/> <h2 class="title"> ! <xsl:call-template name="anchor"> ! <xsl:with-param name="node" select="$node"/> ! </xsl:call-template> <xsl:apply-templates select="$node" mode="object.title.markup"/> </h2> *************** *** 55,60 **** <xsl:template match="dedication" mode="dedication"> ! <xsl:variable name="id"><xsl:call-template name="object.id"/></xsl:variable> ! <div id="{$id}" class="{name(.)}"> <xsl:call-template name="dedication.titlepage"/> <xsl:apply-templates/> --- 51,55 ---- <xsl:template match="dedication" mode="dedication"> ! <div class="{name(.)}"> <xsl:call-template name="dedication.titlepage"/> <xsl:apply-templates/> *************** *** 98,106 **** <xsl:template match="preface"> ! <xsl:variable name="id"> ! <xsl:call-template name="object.id"/> ! </xsl:variable> ! ! <div id="{$id}" class="{name(.)}"> <xsl:call-template name="component.separator"/> <xsl:call-template name="preface.titlepage"/> --- 93,97 ---- <xsl:template match="preface"> ! <div class="{name(.)}"> <xsl:call-template name="component.separator"/> <xsl:call-template name="preface.titlepage"/> Index: division.xsl =================================================================== RCS file: /cvsroot/docbook/xsl/html/division.xsl,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -r1.1 -r1.2 *** division.xsl 2001/04/02 13:03:45 1.1 --- division.xsl 2001/09/26 18:36:34 1.2 *************** *** 16,24 **** <xsl:template match="set"> ! <xsl:variable name="id"> ! <xsl:call-template name="object.id"/> ! </xsl:variable> ! ! <div class="{name(.)}" id="{$id}"> <xsl:call-template name="set.titlepage"/> <xsl:if test="$generate.set.toc != '0'"> --- 16,20 ---- <xsl:template match="set"> ! <div class="{name(.)}"> <xsl:call-template name="set.titlepage"/> <xsl:if test="$generate.set.toc != '0'"> *************** *** 37,45 **** <xsl:template match="book"> ! <xsl:variable name="id"> ! <xsl:call-template name="object.id"/> ! </xsl:variable> ! ! <div class="{name(.)}" id="{$id}"> <xsl:call-template name="book.titlepage"/> <xsl:apply-templates select="dedication" mode="dedication"/> --- 33,37 ---- <xsl:template match="book"> ! <div class="{name(.)}"> <xsl:call-template name="book.titlepage"/> <xsl:apply-templates select="dedication" mode="dedication"/> *************** *** 59,67 **** <xsl:template match="part"> ! <xsl:variable name="id"> ! <xsl:call-template name="object.id"/> ! </xsl:variable> ! ! <div class="{name(.)}" id="{$id}"> <xsl:call-template name="part.titlepage"/> <xsl:if test="not(partintro) and $generate.part.toc != '0'"> --- 51,55 ---- <xsl:template match="part"> ! <div class="{name(.)}"> <xsl:call-template name="part.titlepage"/> <xsl:if test="not(partintro) and $generate.part.toc != '0'"> *************** *** 103,115 **** <xsl:template match="partintro/title" mode="partintro.title.mode"> - <xsl:variable name="id"> - <xsl:call-template name="object.id"> - <xsl:with-param name="object" select=".."/> - </xsl:call-template> - </xsl:variable> <h2> ! <a name="{$id}"> ! <xsl:apply-templates/> ! </a> </h2> </xsl:template> --- 91,96 ---- <xsl:template match="partintro/title" mode="partintro.title.mode"> <h2> ! <xsl:apply-templates/> </h2> </xsl:template> Index: ebnf.xsl =================================================================== RCS file: /cvsroot/docbook/xsl/html/ebnf.xsl,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -r1.3 -r1.4 *** ebnf.xsl 2001/07/04 10:08:18 1.3 --- ebnf.xsl 2001/09/26 18:36:34 1.4 *************** *** 128,132 **** <xsl:template match="production"> <xsl:param name="recap" select="false()"/> - <xsl:variable name="id"><xsl:call-template name="object.id"/></xsl:variable> <tr> <td align="left" valign="top" width="3%"> --- 128,131 ---- *************** *** 148,152 **** </xsl:when> <xsl:otherwise> ! <a name="{$id}"/> <xsl:apply-templates select="lhs"/> </xsl:otherwise> --- 147,151 ---- </xsl:when> <xsl:otherwise> ! <xsl:call-template name="anchor"/> <xsl:apply-templates select="lhs"/> </xsl:otherwise> *************** *** 335,341 **** <xsl:template match="constraintdef"> - <xsl:variable name="id"><xsl:call-template name="object.id"/></xsl:variable> <div class="{name(.)}"> ! <a name="{$id}"/> <xsl:apply-templates/> </div> --- 334,339 ---- <xsl:template match="constraintdef"> <div class="{name(.)}"> ! <xsl:call-template name="anchor"/> <xsl:apply-templates/> </div> Index: formal.xsl =================================================================== RCS file: /cvsroot/docbook/xsl/html/formal.xsl,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -r1.4 -r1.5 *** formal.xsl 2001/08/01 00:48:18 1.4 --- formal.xsl 2001/09/26 18:36:34 1.5 *************** *** 22,30 **** <xsl:template name="formal.object.heading"> <p> ! <a> ! <xsl:attribute name="name"> ! <xsl:call-template name="object.id"/> ! </xsl:attribute> ! </a> <b> <xsl:apply-templates select="." mode="object.title.markup"> --- 22,26 ---- <xsl:template name="formal.object.heading"> <p> ! <xsl:call-template name="anchor"/> <b> <xsl:apply-templates select="." mode="object.title.markup"> *************** *** 36,44 **** <xsl:template name="informal.object"> ! <xsl:variable name="id"><xsl:call-template name="object.id"/></xsl:variable> ! ! <div class="{name(.)}" id="{$id}"> <xsl:if test="$spacing.paras != 0"><p/></xsl:if> ! <a name="{$id}"/> <xsl:apply-templates/> <xsl:if test="$spacing.paras != 0"><p/></xsl:if> --- 32,38 ---- <xsl:template name="informal.object"> ! <div class="{name(.)}"> <xsl:if test="$spacing.paras != 0"><p/></xsl:if> ! <xsl:call-template name="anchor"/> <xsl:apply-templates/> <xsl:if test="$spacing.paras != 0"><p/></xsl:if> Index: glossary.xsl =================================================================== RCS file: /cvsroot/docbook/xsl/html/glossary.xsl,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -r1.3 -r1.4 *** glossary.xsl 2001/04/24 10:44:43 1.3 --- glossary.xsl 2001/09/26 18:36:34 1.4 *************** *** 66,75 **** <xsl:template match="glosslist"> <div class="{name(.)}"> ! <a> ! <xsl:attribute name="name"> ! <xsl:call-template name="object.id"/> ! </xsl:attribute> ! </a> ! <dl> <xsl:apply-templates/> --- 66,70 ---- <xsl:template match="glosslist"> <div class="{name(.)}"> ! <xsl:call-template name="anchor"/> <dl> <xsl:apply-templates/> *************** *** 118,130 **** <xsl:template match="glossentry/glossterm[1]" priority="2"> <dt> ! <a> ! <xsl:attribute name="name"> ! <xsl:call-template name="object.id"> ! <xsl:with-param name="object" select=".."/> ! </xsl:call-template> ! </xsl:attribute> ! ! <xsl:apply-templates/> ! </a> </dt> </xsl:template> --- 113,120 ---- <xsl:template match="glossentry/glossterm[1]" priority="2"> <dt> ! <xsl:call-template name="anchor"> ! <xsl:with-param name="node" select=".."/> ! </xsl:call-template> ! <xsl:apply-templates/> </dt> </xsl:template> Index: graphics.xsl =================================================================== RCS file: /cvsroot/docbook/xsl/html/graphics.xsl,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -r1.5 -r1.6 *** graphics.xsl 2001/08/01 00:52:24 1.5 --- graphics.xsl 2001/09/26 18:36:34 1.6 *************** *** 144,150 **** <xsl:template match="graphic"> <p> ! <xsl:if test="@id"> ! <a name="{@id}"/> ! </xsl:if> <xsl:call-template name="process.image"/> </p> --- 144,148 ---- <xsl:template match="graphic"> <p> ! <xsl:call-template name="anchor"/> <xsl:call-template name="process.image"/> </p> Index: html.xsl =================================================================== RCS file: /cvsroot/docbook/xsl/html/html.xsl,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -r1.1 -r1.2 *** html.xsl 2001/04/02 13:03:45 1.1 --- html.xsl 2001/09/26 18:36:34 1.2 *************** *** 13,16 **** --- 13,29 ---- ******************************************************************** --> + <xsl:template name="anchor"> + <xsl:param name="node" select="."/> + <xsl:param name="conditional" select="1"/> + <xsl:variable name="id"> + <xsl:call-template name="object.id"> + <xsl:with-param name="object" select="$node"/> + </xsl:call-template> + </xsl:variable> + <xsl:if test="$conditional = 0 or $node/@id"> + <a name="{$id}"/> + </xsl:if> + </xsl:template> + <xsl:template name="dingbat"> <xsl:param name="dingbat">bullet</xsl:param> Index: index.xsl =================================================================== RCS file: /cvsroot/docbook/xsl/html/index.xsl,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -r1.2 -r1.3 *** index.xsl 2001/06/13 22:07:30 1.2 --- index.xsl 2001/09/26 18:36:34 1.3 *************** *** 23,31 **** <xsl:if test="count(*)>0 or $generate.index != '0'"> ! <xsl:variable name="id"> ! <xsl:call-template name="object.id"/> ! </xsl:variable> ! ! <div id="{$id}" class="{name(.)}"> <xsl:call-template name="index.titlepage"/> <xsl:apply-templates/> --- 23,28 ---- <xsl:if test="count(*)>0 or $generate.index != '0'"> ! <div class="{name(.)}"> ! <xsl:call-template name="anchor"/> <xsl:call-template name="index.titlepage"/> <xsl:apply-templates/> *************** *** 45,57 **** <xsl:template match="index/title" mode="component.title.mode"> - <xsl:variable name="id"> - <xsl:call-template name="object.id"> - <xsl:with-param name="object" select=".."/> - </xsl:call-template> - </xsl:variable> <h2 class="title"> ! <a name="{$id}"> ! <xsl:apply-templates/> ! </a> </h2> </xsl:template> --- 42,47 ---- <xsl:template match="index/title" mode="component.title.mode"> <h2 class="title"> ! <xsl:apply-templates/> </h2> </xsl:template> *************** *** 67,70 **** --- 57,61 ---- <xsl:template match="indexdiv"> <div class="{name(.)}"> + <xsl:call-template name="anchor"/> <xsl:apply-templates mode="not-indexentrys"/> <dl> *************** *** 79,91 **** <xsl:template match="indexdiv/title"> - <xsl:variable name="id"> - <xsl:call-template name="object.id"> - <xsl:with-param name="object" select=".."/> - </xsl:call-template> - </xsl:variable> <h3 class="{name(.)}"> ! <a name="{$id}"> ! <xsl:apply-templates/> ! </a> </h3> </xsl:template> --- 70,75 ---- <xsl:template match="indexdiv/title"> <h3 class="{name(.)}"> ! <xsl:apply-templates/> </h3> </xsl:template> *************** *** 94,97 **** --- 78,82 ---- <xsl:template match="indexterm"> + <!-- this one must have a name, even if it doesn't have an ID --> <xsl:variable name="id"> <xsl:call-template name="object.id"/> Index: inline.xsl =================================================================== RCS file: /cvsroot/docbook/xsl/html/inline.xsl,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -r1.6 -r1.7 *** inline.xsl 2001/07/16 21:27:43 1.6 --- inline.xsl 2001/09/26 18:36:34 1.7 *************** *** 15,21 **** <xsl:template name="inline.charseq"> <xsl:param name="content"> ! <xsl:if test="@id"> ! <a name="{@id}"/> ! </xsl:if> <xsl:apply-templates/> </xsl:param> --- 15,19 ---- <xsl:template name="inline.charseq"> <xsl:param name="content"> ! <xsl:call-template name="anchor"/> <xsl:apply-templates/> </xsl:param> *************** *** 25,31 **** <xsl:template name="inline.monoseq"> <xsl:param name="content"> ! <xsl:if test="@id"> ! <a name="{@id}"/> ! </xsl:if> <xsl:apply-templates/> </xsl:param> --- 23,27 ---- <xsl:template name="inline.monoseq"> <xsl:param name="content"> ! <xsl:call-template name="anchor"/> <xsl:apply-templates/> </xsl:param> *************** *** 35,41 **** <xsl:template name="inline.boldseq"> <xsl:param name="content"> ! <xsl:if test="@id"> ! <a name="{@id}"/> ! </xsl:if> <xsl:apply-templates/> </xsl:param> --- 31,35 ---- <xsl:template name="inline.boldseq"> <xsl:param name="content"> ! <xsl:call-template name="anchor"/> <xsl:apply-templates/> </xsl:param> *************** *** 56,62 **** <xsl:template name="inline.italicseq"> <xsl:param name="content"> ! <xsl:if test="@id"> ! <a name="{@id}"/> ! </xsl:if> <xsl:apply-templates/> </xsl:param> --- 50,54 ---- <xsl:template name="inline.italicseq"> <xsl:param name="content"> ! <xsl:call-template name="anchor"/> <xsl:apply-templates/> </xsl:param> *************** *** 66,72 **** <xsl:template name="inline.boldmonoseq"> <xsl:param name="content"> ! <xsl:if test="@id"> ! <a name="{@id}"/> ! </xsl:if> <xsl:apply-templates/> </xsl:param> --- 58,62 ---- <xsl:template name="inline.boldmonoseq"> <xsl:param name="content"> ! <xsl:call-template name="anchor"/> <xsl:apply-templates/> </xsl:param> *************** *** 89,95 **** <xsl:template name="inline.italicmonoseq"> <xsl:param name="content"> ! <xsl:if test="@id"> ! <a name="{@id}"/> ! </xsl:if> <xsl:apply-templates/> </xsl:param> --- 79,83 ---- <xsl:template name="inline.italicmonoseq"> <xsl:param name="content"> ! <xsl:call-template name="anchor"/> <xsl:apply-templates/> </xsl:param> *************** *** 99,105 **** <xsl:template name="inline.superscriptseq"> <xsl:param name="content"> ! <xsl:if test="@id"> ! <a name="{@id}"/> ! </xsl:if> <xsl:apply-templates/> </xsl:param> --- 87,91 ---- <xsl:template name="inline.superscriptseq"> <xsl:param name="content"> ! <xsl:call-template name="anchor"/> <xsl:apply-templates/> </xsl:param> *************** *** 109,115 **** <xsl:template name="inline.subscriptseq"> <xsl:param name="content"> ! <xsl:if test="@id"> ! <a name="{@id}"/> ! </xsl:if> <xsl:apply-templates/> </xsl:param> --- 95,99 ---- <xsl:template name="inline.subscriptseq"> <xsl:param name="content"> ! <xsl:call-template name="anchor"/> <xsl:apply-templates/> </xsl:param> *************** *** 406,412 **** </xsl:otherwise> </xsl:choose> ! <xsl:if test="@id"> ! <a name="{@id}"/> ! </xsl:if> <xsl:choose> --- 390,394 ---- </xsl:otherwise> </xsl:choose> ! <xsl:call-template name="anchor"/> <xsl:choose> *************** *** 447,454 **** <xsl:value-of select="@role"/> </xsl:attribute> - </xsl:if> - <xsl:if test="@id"> - <a name="{@id}"/> </xsl:if> <xsl:apply-templates/> </span> --- 429,434 ---- <xsl:value-of select="@role"/> </xsl:attribute> </xsl:if> + <xsl:call-template name="anchor"/> <xsl:apply-templates/> </span> Index: lists.xsl =================================================================== RCS file: /cvsroot/docbook/xsl/html/lists.xsl,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -r1.10 -r1.11 *** lists.xsl 2001/08/29 13:08:36 1.10 --- lists.xsl 2001/09/26 18:36:34 1.11 *************** *** 17,23 **** <xsl:template match="itemizedlist"> <div class="{name(.)}"> ! <xsl:if test="@id"> ! <a name="{@id}"/> ! </xsl:if> <xsl:if test="title"> <xsl:apply-templates select="title"/> --- 17,21 ---- <xsl:template match="itemizedlist"> <div class="{name(.)}"> ! <xsl:call-template name="anchor"/> <xsl:if test="title"> <xsl:apply-templates select="title"/> *************** *** 94,100 **** <div class="{name(.)}"> ! <xsl:if test="@id"> ! <a name="{@id}"/> ! </xsl:if> <xsl:if test="title"> <xsl:apply-templates select="title"/> --- 92,96 ---- <div class="{name(.)}"> ! <xsl:call-template name="anchor"/> <xsl:if test="title"> <xsl:apply-templates select="title"/> *************** *** 127,133 **** <xsl:template match="variablelist"> <div class="{name(.)}"> ! <xsl:if test="@id"> ! <a name="{@id}"/> ! </xsl:if> <xsl:if test="title"> <xsl:apply-templates select="title"/> --- 123,127 ---- <xsl:template match="variablelist"> <div class="{name(.)}"> ! <xsl:call-template name="anchor"/> <xsl:if test="title"> <xsl:apply-templates select="title"/> *************** *** 144,150 **** <xsl:template match="listitem"> - <xsl:variable name="id"> - <xsl:call-template name="object.id"/> - </xsl:variable> <xsl:variable name="mark" select="ancestor-or-self::*/@mark"/> <xsl:variable name="override" select="@override"/> --- 138,141 ---- *************** *** 183,187 **** put the anchor in anyway. --> <xsl:if test="local-name(child::*[1]) != 'para'"> ! <a name="{$id}"/> </xsl:if> --- 174,178 ---- put the anchor in anyway. --> <xsl:if test="local-name(child::*[1]) != 'para'"> ! <xsl:call-template name="anchor"/> </xsl:if> *************** *** 210,223 **** <xsl:when test="not(preceding-sibling::*) and not (following-sibling::*)"> ! <xsl:if test="@id"> ! <a name="{@id}"/> ! </xsl:if> <xsl:apply-templates/> </xsl:when> <xsl:otherwise> <p> ! <xsl:if test="@id"> ! <a name="{@id}"/> ! </xsl:if> <xsl:apply-templates/> </p> --- 201,210 ---- <xsl:when test="not(preceding-sibling::*) and not (following-sibling::*)"> ! <xsl:call-template name="anchor"/> <xsl:apply-templates/> </xsl:when> <xsl:otherwise> <p> ! <xsl:call-template name="anchor"/> <xsl:apply-templates/> </p> *************** *** 227,242 **** <xsl:template match="varlistentry"> ! <xsl:variable name="id"> ! <xsl:call-template name="object.id"/> ! </xsl:variable> ! <dt><a name="{$id}"/><xsl:apply-templates select="term"/></dt> ! <dd><xsl:apply-templates select="listitem"/></dd> </xsl:template> <xsl:template match="varlistentry/term"> <span class="term"> ! <xsl:if test="@id"> ! <a name="{@id}"/> ! </xsl:if> <xsl:apply-templates/> <xsl:text>, </xsl:text> --- 214,229 ---- <xsl:template match="varlistentry"> ! <dt> ! <xsl:call-template name="anchor"/> ! <xsl:apply-templates select="term"/> ! </dt> ! <dd> ! <xsl:apply-templates select="listitem"/> ! </dd> </xsl:template> <xsl:template match="varlistentry/term"> <span class="term"> ! <xsl:call-template name="anchor"/> <xsl:apply-templates/> <xsl:text>, </xsl:text> *************** *** 246,252 **** <xsl:template match="varlistentry/term[position()=last()]" priority="2"> <span class="term"> ! <xsl:if test="@id"> ! <a name="{@id}"/> ! </xsl:if> <xsl:apply-templates/> </span> --- 233,237 ---- <xsl:template match="varlistentry/term[position()=last()]" priority="2"> <span class="term"> ! <xsl:call-template name="anchor"/> <xsl:apply-templates/> </span> *************** *** 270,276 **** <xsl:template match="simplelist"> <!-- with no type specified, the default is 'vert' --> ! <xsl:if test="@id"> ! <a name="{@id}"/> ! </xsl:if> <table class="simplelist" border="0" summary="Simple list"> <xsl:call-template name="simplelist.vert"> --- 255,259 ---- <xsl:template match="simplelist"> <!-- with no type specified, the default is 'vert' --> ! <xsl:call-template name="anchor"/> <table class="simplelist" border="0" summary="Simple list"> <xsl:call-template name="simplelist.vert"> *************** *** 289,295 **** <xsl:template match="simplelist[@type='inline']"> <span class="{name(.)}"> ! <xsl:if test="@id"> ! <a name="{@id}"/> ! </xsl:if> <xsl:apply-templates/> </span> --- 272,276 ---- <xsl:template match="simplelist[@type='inline']"> <span class="{name(.)}"> ! <xsl:call-template name="anchor"/> <xsl:apply-templates/> </span> *************** *** 297,303 **** <xsl:template match="simplelist[@type='horiz']"> ! <xsl:if test="@id"> ! <a name="{@id}"/> ! </xsl:if> <table class="simplelist" border="0" summary="Simple list"> <xsl:call-template name="simplelist.horiz"> --- 278,282 ---- <xsl:template match="simplelist[@type='horiz']"> ! <xsl:call-template name="anchor"/> <table class="simplelist" border="0" summary="Simple list"> <xsl:call-template name="simplelist.horiz"> *************** *** 315,321 **** <xsl:template match="simplelist[@type='vert']"> ! <xsl:if test="@id"> ! <a name="{@id}"/> ! </xsl:if> <table class="simplelist" border="0" summary="Simple list"> <xsl:call-template name="simplelist.vert"> --- 294,298 ---- <xsl:template match="simplelist[@type='vert']"> ! <xsl:call-template name="anchor"/> <table class="simplelist" border="0" summary="Simple list"> <xsl:call-template name="simplelist.vert"> *************** *** 464,470 **** <xsl:template match="procedure"> <div class="{name(.)}"> ! <xsl:if test="@id"> ! <a name="{@id}"/> ! </xsl:if> <xsl:if test="title or $formal.procedures != 0"> <xsl:call-template name="formal.object.heading"/> --- 441,445 ---- <xsl:template match="procedure"> <div class="{name(.)}"> ! <xsl:call-template name="anchor"/> <xsl:if test="title or $formal.procedures != 0"> <xsl:call-template name="formal.object.heading"/> *************** *** 496,502 **** </xsl:variable> ! <xsl:if test="@id"> ! <a name="{@id}"/> ! </xsl:if> <ol type="{$numeration}"> --- 471,475 ---- </xsl:variable> ! <xsl:call-template name="anchor"/> <ol type="{$numeration}"> *************** *** 506,515 **** <xsl:template match="step"> - <xsl:variable name="id"> - <xsl:call-template name="object.id"/> - </xsl:variable> - <li> ! <a name="{$id}"/> <xsl:apply-templates/> </li> --- 479,484 ---- <xsl:template match="step"> <li> ! <xsl:call-template name="anchor"/> <xsl:apply-templates/> </li> *************** *** 523,529 **** <xsl:template match="segmentedlist"> ! <xsl:if test="@id"> ! <a name="{@id}"/> ! </xsl:if> <xsl:apply-templates/> </xsl:template> --- 492,496 ---- <xsl:template match="segmentedlist"> ! <xsl:call-template name="anchor"/> <xsl:apply-templates/> </xsl:template> *************** *** 568,576 **** <xsl:template match="calloutlist"> - <xsl:variable name="id"> - <xsl:call-template name="object.id"/> - </xsl:variable> <div class="{name(.)}"> ! <a name="{$id}"/> <xsl:if test="./title"> <p> --- 535,540 ---- <xsl:template match="calloutlist"> <div class="{name(.)}"> ! <xsl:call-template name="anchor"/> <xsl:if test="./title"> <p> *************** *** 601,612 **** <xsl:template match="callout"> - <xsl:variable name="id"> - <xsl:call-template name="object.id"/> - </xsl:variable> <xsl:choose> <xsl:when test="$callout.list.table != 0"> <tr> <td width="5%" valign="top" align="left"> ! <a name="{$id}"/> <xsl:call-template name="callout.arearefs"> <xsl:with-param name="arearefs" select="@arearefs"/> --- 565,573 ---- <xsl:template match="callout"> <xsl:choose> <xsl:when test="$callout.list.table != 0"> <tr> <td width="5%" valign="top" align="left"> ! <xsl:call-template name="anchor"/> <xsl:call-template name="callout.arearefs"> <xsl:with-param name="arearefs" select="@arearefs"/> *************** *** 620,624 **** <xsl:otherwise> <dt> ! <a name="{$id}"/> <xsl:call-template name="callout.arearefs"> <xsl:with-param name="arearefs" select="@arearefs"/> --- 581,585 ---- <xsl:otherwise> <dt> ! <xsl:call-template name="anchor"/> <xsl:call-template name="callout.arearefs"> <xsl:with-param name="arearefs" select="@arearefs"/> Index: qandaset.xsl =================================================================== RCS file: /cvsroot/docbook/xsl/html/qandaset.xsl,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -r1.5 -r1.6 *** qandaset.xsl 2001/08/01 00:50:48 1.5 --- qandaset.xsl 2001/09/26 18:36:34 1.6 *************** *** 59,67 **** <xsl:call-template name="qandadiv.section.level"/> </xsl:variable> - <xsl:variable name="id"> - <xsl:call-template name="object.id"> - <xsl:with-param name="object" select="parent::*"/> - </xsl:call-template> - </xsl:variable> <xsl:element name="h{string(number($qalevel)+1)}"> --- 59,62 ---- *************** *** 69,73 **** <xsl:value-of select="name(.)"/> </xsl:attribute> ! <a name="{$id}"/> <xsl:apply-templates select="parent::qandadiv" mode="label.markup"/> <xsl:text> </xsl:text> --- 64,70 ---- <xsl:value-of select="name(.)"/> </xsl:attribute> ! <xsl:call-template name="anchor"> ! <xsl:with-param name="node" select=".."/> ! </xsl:call-template> <xsl:apply-templates select="parent::qandadiv" mode="label.markup"/> <xsl:text> </xsl:text> *************** *** 106,119 **** <div class="{name(.)}"> <p> ! <xsl:if test="../@id"> ! <a> ! <xsl:attribute name="name"> ! <xsl:call-template name="object.id"> ! <xsl:with-param name="object" select="parent::*"/> ! </xsl:call-template> ! </xsl:attribute> ! </a> ! </xsl:if> ! <a name="{$id}"/> <xsl:choose> --- 103,110 ---- <div class="{name(.)}"> <p> ! <xsl:call-template name="anchor"> ! <xsl:with-param name="node" select=".."/> ! </xsl:call-template> ! <xsl:call-template name="anchor"/> <xsl:choose> *************** *** 138,148 **** <xsl:variable name="firstch" select="(*[name(.)!='label'])[1]"/> <xsl:variable name="restch" select="(*[name(.)!='label'])[position()!=1]"/> - <xsl:variable name="id"> - <xsl:call-template name="object.id"/> - </xsl:variable> <div class="{name(.)}"> <p> ! <a name="{$id}"/> <b> <xsl:apply-templates select="." mode="label.markup"/> --- 129,136 ---- <xsl:variable name="firstch" select="(*[name(.)!='label'])[1]"/> <xsl:variable name="restch" select="(*[name(.)!='label'])[position()!=1]"/> <div class="{name(.)}"> <p> ! <xsl:call-template name="anchor"/> <b> <xsl:apply-templates select="." mode="label.markup"/> Index: refentry.xsl =================================================================== RCS file: /cvsroot/docbook/xsl/html/refentry.xsl,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -r1.4 -r1.5 *** refentry.xsl 2001/09/24 13:14:47 1.4 --- refentry.xsl 2001/09/26 18:36:34 1.5 *************** *** 16,27 **** <xsl:template match="reference"> - <xsl:variable name="id"> - <xsl:call-template name="object.id"/> - </xsl:variable> - <div class="{name(.)}"> ! <xsl:if test="@id"> ! <a name="{$id}"/> ! </xsl:if> <xsl:call-template name="reference.titlepage"/> <xsl:if test="not(partintro) and $generate.reference.toc != '0'"> --- 16,21 ---- <xsl:template match="reference"> <div class="{name(.)}"> ! <xsl:call-template name="anchor"/> <xsl:call-template name="reference.titlepage"/> <xsl:if test="not(partintro) and $generate.reference.toc != '0'"> *************** *** 62,70 **** <div class="{name(.)}"> <h1 class="title"> ! <a> ! <xsl:attribute name="name"> ! <xsl:call-template name="object.id"/> ! </xsl:attribute> ! </a> <xsl:copy-of select="$title"/> </h1> --- 56,60 ---- <div class="{name(.)}"> <h1 class="title"> ! <xsl:call-template name="anchor"/> <xsl:copy-of select="$title"/> </h1> *************** *** 100,108 **** <xsl:template match="refnamediv"> <div class="{name(.)}"> ! <a> ! <xsl:attribute name="name"> ! <xsl:call-template name="object.id"/> ! </xsl:attribute> ! </a> <xsl:if test="$refentry.generate.name != 0"> <h2> --- 90,94 ---- <xsl:template match="refnamediv"> <div class="{name(.)}"> ! <xsl:call-template name="anchor"/> <xsl:if test="$refentry.generate.name != 0"> <h2> *************** *** 152,160 **** <xsl:template match="refsynopsisdiv"> <div class="{name(.)}"> ! <a> ! <xsl:attribute name="name"> ! <xsl:call-template name="object.id"/> ! </xsl:attribute> ! </a> <h2> <xsl:choose> --- 138,142 ---- <xsl:template match="refsynopsisdiv"> <div class="{name(.)}"> ! <xsl:call-template name="anchor"/> <h2> <xsl:choose> Index: sections.xsl =================================================================== RCS file: /cvsroot/docbook/xsl/html/sections.xsl,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -r1.11 -r1.12 *** sections.xsl 2001/08/25 19:46:25 1.11 --- sections.xsl 2001/09/26 18:36:34 1.12 *************** *** 16,24 **** <xsl:template match="section"> - <xsl:variable name="id"><xsl:call-template name="object.id"/></xsl:variable> <xsl:variable name="depth" select="count(ancestor::section)+1"/> <div class="{name(.)}"> - <a name="{$id}"/> <xsl:call-template name="section.titlepage"/> <xsl:if test="($generate.section.toc != '0' --- 16,22 ---- *************** *** 64,73 **** <xsl:template match="sect1"> - <xsl:variable name="id"> - <xsl:call-template name="object.id"/> - </xsl:variable> - <div class="{name(.)}"> - <a name="{$id}"/> <xsl:call-template name="sect1.titlepage"/> <xsl:if test="($generate.section.toc != '0' --- 62,66 ---- *************** *** 86,95 **** <xsl:template match="sect2"> - <xsl:variable name="id"> - <xsl:call-template name="object.id"/> - </xsl:variable> - <div class="{name(.)}"> - <a name="{$id}"/> <xsl:call-template name="sect2.titlepage"/> <xsl:if test="($generate.section.toc != '0' --- 79,83 ---- *************** *** 107,116 **** <xsl:template match="sect3"> - <xsl:variable name="id"> - <xsl:call-template name="object.id"/> - </xsl:variable> - <div class="{name(.)}"> - <a name="{$id}"/> <xsl:call-template name="sect3.titlepage"/> <xsl:if test="($generate.section.toc != '0' --- 95,99 ---- *************** *** 128,137 **** <xsl:template match="sect4"> - <xsl:variable name="id"> - <xsl:call-template name="object.id"/> - </xsl:variable> - <div class="{name(.)}"> - <a name="{$id}"/> <xsl:call-template name="sect4.titlepage"/> <xsl:if test="($generate.section.toc != '0' --- 111,115 ---- *************** *** 149,158 **** <xsl:template match="sect5"> - <xsl:variable name="id"> - <xsl:call-template name="object.id"/> - </xsl:variable> - <div class="{name(.)}"> - <a name="{$id}"/> <xsl:call-template name="sect5.titlepage"/> <xsl:if test="($generate.section.toc != '0' --- 127,131 ---- *************** *** 170,179 **** <xsl:template match="simplesect"> - <xsl:variable name="id"> - <xsl:call-template name="object.id"/> - </xsl:variable> - <div class="{name(.)}"> - <a name="{$id}"/> <xsl:call-template name="simplesect.titlepage"/> <xsl:apply-templates/> --- 143,147 ---- *************** *** 225,228 **** --- 193,213 ---- <xsl:param name="level" select="'1'"/> <xsl:param name="title"/> + + <xsl:variable name="id"> + <xsl:choose> + <!-- if title is in an *info wrapper, get the grandparent --> + <xsl:when test="contains(local-name(..), 'info')"> + <xsl:call-template name="object.id"> + <xsl:with-param name="object" select="../.."/> + </xsl:call-template> + </xsl:when> + <xsl:otherwise> + <xsl:call-template name="object.id"> + <xsl:with-param name="object" select=".."/> + </xsl:call-template> + </xsl:otherwise> + </xsl:choose> + </xsl:variable> + <xsl:element name="h{$level}"> <xsl:attribute name="class">title</xsl:attribute> *************** *** 232,242 **** </xsl:if> </xsl:if> ! <a> ! <xsl:attribute name="name"> ! <xsl:call-template name="object.id"> ! <xsl:with-param name="object" select="$section"/> ! </xsl:call-template> ! </xsl:attribute> ! </a> <xsl:copy-of select="$title"/> </xsl:element> --- 217,224 ---- </xsl:if> </xsl:if> ! <xsl:call-template name="anchor"> ! <xsl:with-param name="node" select="$section"/> ! <xsl:with-param name="conditional" select="0"/> ! </xsl:call-template> <xsl:copy-of select="$title"/> </xsl:element> *************** *** 316,325 **** </xsl:variable> - <xsl:variable name="id"> - <xsl:call-template name="object.id"/> - </xsl:variable> - <xsl:element name="h{$level}"> ! <a name="{$id}"/> <xsl:apply-templates/> </xsl:element> --- 298,305 ---- </xsl:variable> <xsl:element name="h{$level}"> ! <xsl:call-template name="anchor"> ! <xsl:with-param name="conditional" select="0"/> ! </xsl:call-template> <xsl:apply-templates/> </xsl:element> Index: synop.xsl =================================================================== RCS file: /cvsroot/docbook/xsl/html/synop.xsl,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -r1.3 -r1.4 *** synop.xsl 2001/09/24 13:14:47 1.3 --- synop.xsl 2001/09/26 18:36:34 1.4 *************** *** 24,32 **** <xsl:template match="cmdsynopsis"> ! <xsl:variable name="id"><xsl:call-template name="object.id"/></xsl:variable> ! ! <div class="{name(.)}" id="{$id}"> <p> ! <a name="{$id}"/> <xsl:apply-templates/> </p> --- 24,30 ---- <xsl:template match="cmdsynopsis"> ! <div class="{name(.)}"> <p> ! <xsl:call-template name="anchor"/> <xsl:apply-templates/> </p> Index: table.xsl =================================================================== RCS file: /cvsroot/docbook/xsl/html/table.xsl,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -r1.5 -r1.6 *** table.xsl 2001/07/16 21:28:47 1.5 --- table.xsl 2001/09/26 18:36:34 1.6 *************** *** 362,371 **** <xsl:if test="not(preceding-sibling::*) and ancestor::row/@id"> ! <a name="{ancestor::row/@id}"/> </xsl:if> ! <xsl:if test="@id"> ! <a name="{@id}"/> ! </xsl:if> <xsl:choose> --- 362,371 ---- <xsl:if test="not(preceding-sibling::*) and ancestor::row/@id"> ! <xsl:call-template name="anchor"> ! <xsl:with-param name="node" select="ancestor::row[1]"/> ! </xsl:call-template> </xsl:if> ! <xsl:call-template name="anchor"/> <xsl:choose> Index: verbatim.xsl =================================================================== RCS file: /cvsroot/docbook/xsl/html/verbatim.xsl,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -r1.4 -r1.5 *** verbatim.xsl 2001/09/24 10:19:11 1.4 --- verbatim.xsl 2001/09/26 18:36:34 1.5 *************** *** 25,31 **** <xsl:variable name="id"><xsl:call-template name="object.id"/></xsl:variable> ! <xsl:if test="@id"> ! <a href="{$id}"/> ! </xsl:if> <xsl:variable name="content"> --- 25,29 ---- <xsl:variable name="id"><xsl:call-template name="object.id"/></xsl:variable> ! <xsl:call-template name="anchor"/> <xsl:variable name="content"> Index: xref.xsl =================================================================== RCS file: /cvsroot/docbook/xsl/html/xref.xsl,v retrieving revision 1.15 retrieving revision 1.16 diff -C2 -r1.15 -r1.16 *** xref.xsl 2001/09/22 15:05:29 1.15 --- xref.xsl 2001/09/26 18:36:34 1.16 *************** *** 18,26 **** <xsl:template match="anchor"> ! <a> ! <xsl:attribute name="name"> ! <xsl:call-template name="object.id"/> ! </xsl:attribute> ! </a> </xsl:template> --- 18,22 ---- <xsl:template match="anchor"> ! <xsl:call-template name="anchor"/> </xsl:template> *************** *** 36,42 **** </xsl:call-template> ! <xsl:if test="@id"> ! <a name="{@id}"/> ! </xsl:if> <xsl:choose> --- 32,36 ---- </xsl:call-template> ! <xsl:call-template name="anchor"/> <xsl:choose> *************** *** 487,494 **** <xsl:template match="olink"> ! <xsl:if test="@id"> ! <a name="{@id}"/> ! </xsl:if> ! <xsl:variable name="localinfo" select="@localinfo"/> --- 481,485 ---- <xsl:template match="olink"> ! <xsl:call-template name="anchor"/> <xsl:variable name="localinfo" select="@localinfo"/> |