| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286 | <?xml version="1.0" encoding="ASCII"?><!--This file was created automatically by html2xhtml--><!--from the HTML stylesheets.--><xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:suwl="http://nwalsh.com/xslt/ext/com.nwalsh.saxon.UnwrapLinks" xmlns:exsl="http://exslt.org/common" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/1999/xhtml" exclude-result-prefixes="suwl exsl xlink" version="1.0"><!-- ********************************************************************     $Id$     ********************************************************************     This file is part of the XSL DocBook Stylesheet distribution.     See ../README or http://docbook.sf.net/release/xsl/current/ for     copyright and other information.     ******************************************************************** --><!-- Use internal variable for olink xlink role for consistency --><xsl:variable name="xolink.role">http://docbook.org/xlink/role/olink</xsl:variable><!-- ==================================================================== --><xsl:template match="anchor">  <xsl:call-template name="anchor"/></xsl:template><!-- ==================================================================== --><xsl:template match="xref" name="xref">  <xsl:param name="xhref" select="@xlink:href"/>  <!-- is the @xlink:href a local idref link? -->  <xsl:param name="xlink.idref">    <xsl:if test="starts-with($xhref,'#')                   and (not(contains($xhref,'('))                   or starts-with($xhref, '#xpointer(id('))">      <xsl:call-template name="xpointer.idref">        <xsl:with-param name="xpointer" select="$xhref"/>      </xsl:call-template>   </xsl:if>  </xsl:param>  <xsl:param name="xlink.targets" select="key('id',$xlink.idref)"/>  <xsl:param name="linkend.targets" select="key('id',@linkend)"/>  <xsl:param name="target" select="($xlink.targets | $linkend.targets)[1]"/>  <xsl:variable name="xrefstyle">    <xsl:choose>      <xsl:when test="@role and not(@xrefstyle)                        and $use.role.as.xrefstyle != 0">        <xsl:value-of select="@role"/>      </xsl:when>      <xsl:otherwise>        <xsl:value-of select="@xrefstyle"/>      </xsl:otherwise>    </xsl:choose>  </xsl:variable>  <xsl:call-template name="anchor"/>  <xsl:variable name="content">    <xsl:choose>        <xsl:when test="@endterm">        <xsl:variable name="etargets" select="key('id',@endterm)"/>        <xsl:variable name="etarget" select="$etargets[1]"/>        <xsl:choose>          <xsl:when test="count($etarget) = 0">            <xsl:message>              <xsl:value-of select="count($etargets)"/>              <xsl:text>Endterm points to nonexistent ID: </xsl:text>              <xsl:value-of select="@endterm"/>            </xsl:message>            <xsl:text>???</xsl:text>          </xsl:when>          <xsl:otherwise>            <xsl:apply-templates select="$etarget" mode="endterm"/>          </xsl:otherwise>        </xsl:choose>      </xsl:when>        <xsl:when test="$target/@xreflabel">        <xsl:call-template name="xref.xreflabel">          <xsl:with-param name="target" select="$target"/>        </xsl:call-template>      </xsl:when>        <xsl:when test="$target">        <xsl:if test="not(parent::citation)">          <xsl:apply-templates select="$target" mode="xref-to-prefix"/>        </xsl:if>          <xsl:apply-templates select="$target" mode="xref-to">          <xsl:with-param name="referrer" select="."/>          <xsl:with-param name="xrefstyle" select="$xrefstyle"/>        </xsl:apply-templates>          <xsl:if test="not(parent::citation)">          <xsl:apply-templates select="$target" mode="xref-to-suffix"/>        </xsl:if>      </xsl:when>      <xsl:otherwise>        <xsl:message>          <xsl:text>ERROR: xref linking to </xsl:text>          <xsl:value-of select="@linkend|@xlink:href"/>          <xsl:text> has no generated link text.</xsl:text>        </xsl:message>        <xsl:text>???</xsl:text>      </xsl:otherwise>    </xsl:choose>  </xsl:variable>  <xsl:call-template name="simple.xlink">    <xsl:with-param name="content" select="$content"/>  </xsl:call-template></xsl:template><!-- ==================================================================== --><!-- biblioref handled largely like an xref --><!-- To be done: add support for begin, end, and units attributes --><xsl:template match="biblioref">  <xsl:variable name="targets" select="key('id',@linkend)"/>  <xsl:variable name="target" select="$targets[1]"/>  <xsl:variable name="refelem" select="local-name($target)"/>  <xsl:call-template name="check.id.unique">    <xsl:with-param name="linkend" select="@linkend"/>  </xsl:call-template>  <xsl:call-template name="anchor"/>  <xsl:choose>    <xsl:when test="count($target) = 0">      <xsl:message>        <xsl:text>XRef to nonexistent id: </xsl:text>        <xsl:value-of select="@linkend"/>      </xsl:message>      <xsl:text>???</xsl:text>    </xsl:when>    <xsl:when test="@endterm">      <xsl:variable name="href">        <xsl:call-template name="href.target">          <xsl:with-param name="object" select="$target"/>        </xsl:call-template>      </xsl:variable>      <xsl:variable name="etargets" select="key('id',@endterm)"/>      <xsl:variable name="etarget" select="$etargets[1]"/>      <xsl:choose>        <xsl:when test="count($etarget) = 0">          <xsl:message>            <xsl:value-of select="count($etargets)"/>            <xsl:text>Endterm points to nonexistent ID: </xsl:text>            <xsl:value-of select="@endterm"/>          </xsl:message>          <a href="{$href}">            <xsl:apply-templates select="." mode="class.attribute"/>            <xsl:text>???</xsl:text>          </a>        </xsl:when>        <xsl:otherwise>          <a href="{$href}">            <xsl:apply-templates select="." mode="class.attribute"/>            <xsl:apply-templates select="$etarget" mode="endterm"/>          </a>        </xsl:otherwise>      </xsl:choose>    </xsl:when>    <xsl:when test="$target/@xreflabel">      <a>        <xsl:apply-templates select="." mode="class.attribute"/>        <xsl:attribute name="href">          <xsl:call-template name="href.target">            <xsl:with-param name="object" select="$target"/>          </xsl:call-template>        </xsl:attribute>        <xsl:call-template name="xref.xreflabel">          <xsl:with-param name="target" select="$target"/>        </xsl:call-template>      </a>    </xsl:when>    <xsl:otherwise>      <xsl:variable name="href">        <xsl:call-template name="href.target">          <xsl:with-param name="object" select="$target"/>        </xsl:call-template>      </xsl:variable>      <xsl:if test="not(parent::citation)">        <xsl:apply-templates select="$target" mode="xref-to-prefix"/>      </xsl:if>      <a href="{$href}">        <xsl:apply-templates select="." mode="class.attribute"/>        <xsl:if test="$target/title or $target/*/title">          <xsl:attribute name="title">            <xsl:apply-templates select="$target" mode="xref-title"/>          </xsl:attribute>        </xsl:if>        <xsl:apply-templates select="$target" mode="xref-to">          <xsl:with-param name="referrer" select="."/>          <xsl:with-param name="xrefstyle">            <xsl:choose>              <xsl:when test="@role and not(@xrefstyle) and $use.role.as.xrefstyle != 0">                <xsl:value-of select="@role"/>              </xsl:when>              <xsl:otherwise>                <xsl:value-of select="@xrefstyle"/>              </xsl:otherwise>            </xsl:choose>          </xsl:with-param>        </xsl:apply-templates>      </a>      <xsl:if test="not(parent::citation)">        <xsl:apply-templates select="$target" mode="xref-to-suffix"/>      </xsl:if>    </xsl:otherwise>  </xsl:choose></xsl:template><!-- ==================================================================== --><xsl:template match="*" mode="endterm">  <!-- Process the children of the endterm element -->  <xsl:variable name="endterm">    <xsl:apply-templates select="child::node()"/>  </xsl:variable>  <xsl:choose>    <xsl:when test="function-available('exsl:node-set')">      <xsl:apply-templates select="exsl:node-set($endterm)" mode="remove-ids"/>    </xsl:when>    <xsl:otherwise>      <xsl:copy-of select="$endterm"/>    </xsl:otherwise>  </xsl:choose></xsl:template><xsl:template match="*" mode="remove-ids">  <xsl:choose>    <!-- handle html or xhtml -->    <xsl:when test="local-name(.) = 'a'                     and (namespace-uri(.) = ''                          or namespace-uri(.) = 'http://www.w3.org/1999/xhtml')">      <xsl:choose>        <xsl:when test="(@name and count(@*) = 1)                         or (@id and count(@*) = 1)                         or (@xml:id and count(@*) = 1)                         or (@xml:id and @name and count(@*) = 2)                         or (@id and @name and count(@*) = 2)">          <xsl:message>suppress anchor</xsl:message>          <!-- suppress the whole thing -->        </xsl:when>        <xsl:otherwise>          <xsl:copy>            <xsl:for-each select="@*">              <xsl:choose>                <xsl:when test="local-name(.) != 'name' and local-name(.) != 'id'">                  <xsl:copy/>                </xsl:when>                <xsl:otherwise>                  <xsl:message>removing <xsl:value-of select="local-name(.)"/></xsl:message>                </xsl:otherwise>              </xsl:choose>            </xsl:for-each>          </xsl:copy>          <xsl:apply-templates mode="remove-ids"/>        </xsl:otherwise>      </xsl:choose>    </xsl:when>    <xsl:otherwise>      <xsl:copy>        <xsl:for-each select="@*">          <xsl:choose>            <xsl:when test="local-name(.) != 'id'">              <xsl:copy/>            </xsl:when>            <xsl:otherwise>              <xsl:message>removing <xsl:value-of select="local-name(.)"/></xsl:message>            </xsl:otherwise>          </xsl:choose>        </xsl:for-each>        <xsl:apply-templates mode="remove-ids"/>      </xsl:copy>    </xsl:otherwise>  </xsl:choose></xsl:template><!-- ==================================================================== --><xsl:template match="*" mode="xref-to-prefix"/><xsl:template match="*" mode="xref-to-suffix"/><xsl:template match="*" mode="xref-to">  <xsl:param name="referrer"/>  <xsl:param name="xrefstyle"/>  <xsl:param name="verbose" select="1"/>  <xsl:if test="$verbose">    <xsl:message>      <xsl:text>Don't know what gentext to create for xref to: "</xsl:text>      <xsl:value-of select="name(.)"/>      <xsl:text>", ("</xsl:text>      <xsl:value-of select="(@id|@xml:id)[1]"/>      <xsl:text>")</xsl:text>    </xsl:message>  </xsl:if>  <xsl:text>???</xsl:text></xsl:template><xsl:template match="title" mode="xref-to">  <xsl:param name="referrer"/>  <xsl:param name="xrefstyle"/>  <xsl:param name="verbose" select="1"/>  <!-- if you xref to a title, xref to the parent... -->  <xsl:choose>    <!-- FIXME: how reliable is this? -->    <xsl:when test="contains(local-name(parent::*), 'info')">      <xsl:apply-templates select="parent::*[2]" mode="xref-to">        <xsl:with-param name="referrer" select="$referrer"/>        <xsl:with-param name="xrefstyle" select="$xrefstyle"/>        <xsl:with-param name="verbose" select="$verbose"/>      </xsl:apply-templates>    </xsl:when>    <xsl:otherwise>      <xsl:apply-templates select="parent::*" mode="xref-to">        <xsl:with-param name="referrer" select="$referrer"/>        <xsl:with-param name="xrefstyle" select="$xrefstyle"/>        <xsl:with-param name="verbose" select="$verbose"/>      </xsl:apply-templates>    </xsl:otherwise>  </xsl:choose></xsl:template><xsl:template match="abstract|authorblurb|personblurb|bibliodiv|bibliomset                      |biblioset|blockquote|calloutlist|caution|colophon                      |constraintdef|formalpara|glossdiv|important|indexdiv                      |itemizedlist|legalnotice|lot|msg|msgexplan|msgmain                      |msgrel|msgset|msgsub|note|orderedlist|partintro                      |productionset|qandadiv|refsynopsisdiv|segmentedlist                      |set|setindex|sidebar|tip|toc|variablelist|warning" mode="xref-to">  <xsl:param name="referrer"/>  <xsl:param name="xrefstyle"/>  <xsl:param name="verbose" select="1"/>  <!-- catch-all for things with (possibly optional) titles -->  <xsl:apply-templates select="." mode="object.xref.markup">    <xsl:with-param name="purpose" select="'xref'"/>    <xsl:with-param name="xrefstyle" select="$xrefstyle"/>    <xsl:with-param name="referrer" select="$referrer"/>    <xsl:with-param name="verbose" select="$verbose"/>  </xsl:apply-templates></xsl:template><xsl:template match="author|editor|othercredit|personname" mode="xref-to">  <xsl:param name="referrer"/>  <xsl:param name="xrefstyle"/>  <xsl:call-template name="person.name"/></xsl:template><xsl:template match="authorgroup" mode="xref-to">  <xsl:param name="referrer"/>  <xsl:param name="xrefstyle"/>  <xsl:call-template name="person.name.list"/></xsl:template><xsl:template match="figure|example|table|equation" mode="xref-to">  <xsl:param name="referrer"/>  <xsl:param name="xrefstyle"/>  <xsl:param name="verbose" select="1"/>  <xsl:apply-templates select="." mode="object.xref.markup">    <xsl:with-param name="purpose" select="'xref'"/>    <xsl:with-param name="xrefstyle" select="$xrefstyle"/>    <xsl:with-param name="referrer" select="$referrer"/>    <xsl:with-param name="verbose" select="$verbose"/>  </xsl:apply-templates></xsl:template><xsl:template match="procedure" mode="xref-to">  <xsl:param name="referrer"/>  <xsl:param name="xrefstyle"/>  <xsl:param name="verbose"/>  <xsl:apply-templates select="." mode="object.xref.markup">    <xsl:with-param name="purpose" select="'xref'"/>    <xsl:with-param name="xrefstyle" select="$xrefstyle"/>    <xsl:with-param name="referrer" select="$referrer"/>    <xsl:with-param name="verbose" select="$verbose"/>  </xsl:apply-templates></xsl:template><xsl:template match="task" mode="xref-to">  <xsl:param name="referrer"/>  <xsl:param name="xrefstyle"/>  <xsl:param name="verbose"/>  <xsl:apply-templates select="." mode="object.xref.markup">    <xsl:with-param name="purpose" select="'xref'"/>    <xsl:with-param name="xrefstyle" select="$xrefstyle"/>    <xsl:with-param name="referrer" select="$referrer"/>    <xsl:with-param name="verbose" select="$verbose"/>  </xsl:apply-templates></xsl:template><xsl:template match="cmdsynopsis" mode="xref-to">  <xsl:apply-templates select="(.//command)[1]" mode="xref"/></xsl:template><xsl:template match="funcsynopsis" mode="xref-to">  <xsl:apply-templates select="(.//function)[1]" mode="xref"/></xsl:template><xsl:template match="dedication|preface|chapter|appendix|article" mode="xref-to">  <xsl:param name="referrer"/>  <xsl:param name="xrefstyle"/>  <xsl:param name="verbose" select="1"/>  <xsl:apply-templates select="." mode="object.xref.markup">    <xsl:with-param name="purpose" select="'xref'"/>    <xsl:with-param name="xrefstyle" select="$xrefstyle"/>    <xsl:with-param name="referrer" select="$referrer"/>    <xsl:with-param name="verbose" select="$verbose"/>  </xsl:apply-templates></xsl:template><xsl:template match="bibliography" mode="xref-to">  <xsl:param name="referrer"/>  <xsl:param name="xrefstyle"/>  <xsl:param name="verbose" select="1"/>  <xsl:apply-templates select="." mode="object.xref.markup">    <xsl:with-param name="purpose" select="'xref'"/>    <xsl:with-param name="xrefstyle" select="$xrefstyle"/>    <xsl:with-param name="referrer" select="$referrer"/>    <xsl:with-param name="verbose" select="$verbose"/>  </xsl:apply-templates></xsl:template><xsl:template match="biblioentry|bibliomixed" mode="xref-to-prefix">  <xsl:text>[</xsl:text></xsl:template><xsl:template match="biblioentry|bibliomixed" mode="xref-to-suffix">  <xsl:text>]</xsl:text></xsl:template><xsl:template match="biblioentry|bibliomixed" mode="xref-to">  <xsl:param name="referrer"/>  <xsl:param name="xrefstyle"/>  <xsl:param name="verbose" select="1"/>  <!-- handles both biblioentry and bibliomixed -->  <xsl:choose>    <xsl:when test="string(.) = ''">      <xsl:variable name="bib" select="document($bibliography.collection,.)"/>      <xsl:variable name="id" select="(@id|@xml:id)[1]"/>      <xsl:variable name="entry" select="$bib/bibliography/                                     *[@id=$id or @xml:id=$id][1]"/>      <xsl:choose>        <xsl:when test="$entry">          <xsl:choose>            <xsl:when test="$bibliography.numbered != 0">              <xsl:number from="bibliography" count="biblioentry|bibliomixed" level="any" format="1"/>            </xsl:when>            <xsl:when test="local-name($entry/*[1]) = 'abbrev'">              <xsl:apply-templates select="$entry/*[1]"/>            </xsl:when>            <xsl:otherwise>              <xsl:value-of select="(@id|@xml:id)[1]"/>            </xsl:otherwise>          </xsl:choose>        </xsl:when>        <xsl:otherwise>          <xsl:message>            <xsl:text>No bibliography entry: </xsl:text>            <xsl:value-of select="$id"/>            <xsl:text> found in </xsl:text>            <xsl:value-of select="$bibliography.collection"/>          </xsl:message>          <xsl:value-of select="(@id|@xml:id)[1]"/>        </xsl:otherwise>      </xsl:choose>    </xsl:when>    <xsl:otherwise>      <xsl:choose>        <xsl:when test="$bibliography.numbered != 0">          <xsl:number from="bibliography" count="biblioentry|bibliomixed" level="any" format="1"/>        </xsl:when>        <xsl:when test="local-name(*[1]) = 'abbrev'">          <xsl:apply-templates select="*[1]"/>        </xsl:when>        <xsl:otherwise>          <xsl:value-of select="(@id|@xml:id)[1]"/>        </xsl:otherwise>      </xsl:choose>    </xsl:otherwise>  </xsl:choose></xsl:template><xsl:template match="glossary" mode="xref-to">  <xsl:param name="referrer"/>  <xsl:param name="xrefstyle"/>  <xsl:param name="verbose" select="1"/>  <xsl:apply-templates select="." mode="object.xref.markup">    <xsl:with-param name="purpose" select="'xref'"/>    <xsl:with-param name="xrefstyle" select="$xrefstyle"/>    <xsl:with-param name="referrer" select="$referrer"/>    <xsl:with-param name="verbose" select="$verbose"/>  </xsl:apply-templates></xsl:template><xsl:template match="glossentry" mode="xref-to">  <xsl:param name="referrer"/>  <xsl:param name="xrefstyle"/>  <xsl:param name="verbose" select="1"/>  <xsl:choose>    <xsl:when test="$glossentry.show.acronym = 'primary'">      <xsl:choose>        <xsl:when test="acronym|abbrev">          <xsl:apply-templates select="(acronym|abbrev)[1]"/>        </xsl:when>        <xsl:otherwise>          <xsl:apply-templates select="glossterm[1]" mode="xref-to">            <xsl:with-param name="xrefstyle" select="$xrefstyle"/>            <xsl:with-param name="referrer" select="$referrer"/>            <xsl:with-param name="verbose" select="$verbose"/>          </xsl:apply-templates>        </xsl:otherwise>      </xsl:choose>    </xsl:when>    <xsl:otherwise>      <xsl:apply-templates select="glossterm[1]" mode="xref-to">        <xsl:with-param name="xrefstyle" select="$xrefstyle"/>        <xsl:with-param name="referrer" select="$referrer"/>        <xsl:with-param name="verbose" select="$verbose"/>      </xsl:apply-templates>    </xsl:otherwise>  </xsl:choose></xsl:template><xsl:template match="glossterm" mode="xref-to">  <xsl:apply-templates/></xsl:template><xsl:template match="index" mode="xref-to">  <xsl:param name="referrer"/>  <xsl:param name="xrefstyle"/>  <xsl:param name="verbose" select="1"/>  <xsl:apply-templates select="." mode="object.xref.markup">    <xsl:with-param name="purpose" select="'xref'"/>    <xsl:with-param name="xrefstyle" select="$xrefstyle"/>    <xsl:with-param name="referrer" select="$referrer"/>    <xsl:with-param name="verbose" select="$verbose"/>  </xsl:apply-templates></xsl:template><xsl:template match="listitem" mode="xref-to">  <xsl:param name="referrer"/>  <xsl:param name="xrefstyle"/>  <xsl:param name="verbose"/>  <xsl:apply-templates select="." mode="object.xref.markup">    <xsl:with-param name="purpose" select="'xref'"/>    <xsl:with-param name="xrefstyle" select="$xrefstyle"/>    <xsl:with-param name="referrer" select="$referrer"/>    <xsl:with-param name="verbose" select="$verbose"/>  </xsl:apply-templates></xsl:template><xsl:template match="section|simplesect                      |sect1|sect2|sect3|sect4|sect5                      |refsect1|refsect2|refsect3|refsection" mode="xref-to">  <xsl:param name="referrer"/>  <xsl:param name="xrefstyle"/>  <xsl:param name="verbose" select="1"/>  <xsl:apply-templates select="." mode="object.xref.markup">    <xsl:with-param name="purpose" select="'xref'"/>    <xsl:with-param name="xrefstyle" select="$xrefstyle"/>    <xsl:with-param name="referrer" select="$referrer"/>    <xsl:with-param name="verbose" select="$verbose"/>  </xsl:apply-templates>  <!-- FIXME: What about "in Chapter X"? --></xsl:template><xsl:template match="bridgehead" mode="xref-to">  <xsl:param name="referrer"/>  <xsl:param name="xrefstyle"/>  <xsl:param name="verbose" select="1"/>  <xsl:apply-templates select="." mode="object.xref.markup">    <xsl:with-param name="purpose" select="'xref'"/>    <xsl:with-param name="xrefstyle" select="$xrefstyle"/>    <xsl:with-param name="referrer" select="$referrer"/>    <xsl:with-param name="verbose" select="$verbose"/>  </xsl:apply-templates>  <!-- FIXME: What about "in Chapter X"? --></xsl:template><xsl:template match="qandaset" mode="xref-to">  <xsl:param name="referrer"/>  <xsl:param name="xrefstyle"/>  <xsl:param name="verbose" select="1"/>  <xsl:apply-templates select="." mode="object.xref.markup">    <xsl:with-param name="purpose" select="'xref'"/>    <xsl:with-param name="xrefstyle" select="$xrefstyle"/>    <xsl:with-param name="referrer" select="$referrer"/>    <xsl:with-param name="verbose" select="$verbose"/>  </xsl:apply-templates></xsl:template><xsl:template match="qandadiv" mode="xref-to">  <xsl:param name="referrer"/>  <xsl:param name="xrefstyle"/>  <xsl:param name="verbose" select="1"/>  <xsl:apply-templates select="." mode="object.xref.markup">    <xsl:with-param name="purpose" select="'xref'"/>    <xsl:with-param name="xrefstyle" select="$xrefstyle"/>    <xsl:with-param name="referrer" select="$referrer"/>    <xsl:with-param name="verbose" select="$verbose"/>  </xsl:apply-templates></xsl:template><xsl:template match="qandaentry" mode="xref-to">  <xsl:param name="referrer"/>  <xsl:param name="xrefstyle"/>  <xsl:param name="verbose" select="1"/>  <xsl:apply-templates select="question[1]" mode="object.xref.markup">    <xsl:with-param name="purpose" select="'xref'"/>    <xsl:with-param name="xrefstyle" select="$xrefstyle"/>    <xsl:with-param name="referrer" select="$referrer"/>    <xsl:with-param name="verbose" select="$verbose"/>  </xsl:apply-templates></xsl:template><xsl:template match="question|answer" mode="xref-to">  <xsl:param name="referrer"/>  <xsl:param name="xrefstyle"/>  <xsl:param name="verbose" select="1"/>  <xsl:apply-templates select="." mode="object.xref.markup">    <xsl:with-param name="purpose" select="'xref'"/>    <xsl:with-param name="xrefstyle" select="$xrefstyle"/>    <xsl:with-param name="referrer" select="$referrer"/>    <xsl:with-param name="verbose" select="$verbose"/>  </xsl:apply-templates></xsl:template><xsl:template match="part|reference" mode="xref-to">  <xsl:param name="referrer"/>  <xsl:param name="xrefstyle"/>  <xsl:param name="verbose" select="1"/>  <xsl:apply-templates select="." mode="object.xref.markup">    <xsl:with-param name="purpose" select="'xref'"/>    <xsl:with-param name="xrefstyle" select="$xrefstyle"/>    <xsl:with-param name="referrer" select="$referrer"/>    <xsl:with-param name="verbose" select="$verbose"/>  </xsl:apply-templates></xsl:template><xsl:template match="refentry" mode="xref-to">  <xsl:param name="referrer"/>  <xsl:param name="xrefstyle"/>  <xsl:choose>    <xsl:when test="refmeta/refentrytitle">      <xsl:apply-templates select="refmeta/refentrytitle"/>    </xsl:when>    <xsl:otherwise>      <xsl:apply-templates select="refnamediv/refname[1]"/>    </xsl:otherwise>  </xsl:choose>  <xsl:apply-templates select="refmeta/manvolnum"/></xsl:template><xsl:template match="refnamediv" mode="xref-to">  <xsl:param name="referrer"/>  <xsl:param name="xrefstyle"/>  <xsl:param name="verbose" select="1"/>  <xsl:apply-templates select="refname[1]" mode="xref-to">    <xsl:with-param name="xrefstyle" select="$xrefstyle"/>    <xsl:with-param name="referrer" select="$referrer"/>    <xsl:with-param name="verbose" select="$verbose"/>  </xsl:apply-templates></xsl:template><xsl:template match="refname" mode="xref-to">  <xsl:param name="referrer"/>  <xsl:param name="xrefstyle"/>  <xsl:param name="verbose" select="1"/>  <xsl:apply-templates mode="xref-to"/></xsl:template><xsl:template match="step" mode="xref-to">  <xsl:param name="referrer"/>  <xsl:param name="xrefstyle"/>  <xsl:call-template name="gentext">    <xsl:with-param name="key" select="'Step'"/>  </xsl:call-template>  <xsl:text> </xsl:text>  <xsl:apply-templates select="." mode="number"/></xsl:template><xsl:template match="varlistentry" mode="xref-to">  <xsl:param name="referrer"/>  <xsl:param name="xrefstyle"/>  <xsl:param name="verbose" select="1"/>  <xsl:apply-templates select="term[1]" mode="xref-to">    <xsl:with-param name="xrefstyle" select="$xrefstyle"/>    <xsl:with-param name="referrer" select="$referrer"/>    <xsl:with-param name="verbose" select="$verbose"/>  </xsl:apply-templates></xsl:template><xsl:template match="varlistentry/term" mode="xref-to">  <xsl:param name="referrer"/>  <xsl:param name="xrefstyle"/>  <!-- to avoid the comma that will be generated if there are several terms -->  <xsl:apply-templates/></xsl:template><xsl:template match="co" mode="xref-to">  <xsl:param name="referrer"/>  <xsl:param name="xrefstyle"/>  <xsl:apply-templates select="." mode="callout-bug"/></xsl:template><xsl:template match="area|areaset" mode="xref-to">  <xsl:param name="referrer"/>  <xsl:param name="xrefstyle"/>  <xsl:call-template name="callout-bug">    <xsl:with-param name="conum">      <xsl:apply-templates select="." mode="conumber"/>    </xsl:with-param>  </xsl:call-template></xsl:template><xsl:template match="book" mode="xref-to">  <xsl:param name="referrer"/>  <xsl:param name="xrefstyle"/>  <xsl:param name="verbose" select="1"/>  <xsl:apply-templates select="." mode="object.xref.markup">    <xsl:with-param name="purpose" select="'xref'"/>    <xsl:with-param name="xrefstyle" select="$xrefstyle"/>    <xsl:with-param name="referrer" select="$referrer"/>    <xsl:with-param name="verbose" select="$verbose"/>  </xsl:apply-templates></xsl:template><xsl:template match="para" mode="xref-to">  <xsl:param name="referrer"/>  <xsl:param name="xrefstyle"/>  <xsl:param name="verbose" select="1"/>  <xsl:variable name="context" select="(ancestor::simplesect                                        |ancestor::section                                        |ancestor::sect1                                        |ancestor::sect2                                        |ancestor::sect3                                        |ancestor::sect4                                        |ancestor::sect5                                        |ancestor::refsection                                        |ancestor::refsect1                                        |ancestor::refsect2                                        |ancestor::refsect3                                        |ancestor::chapter                                        |ancestor::appendix                                        |ancestor::preface                                        |ancestor::partintro                                        |ancestor::dedication                                        |ancestor::colophon                                        |ancestor::bibliography                                        |ancestor::index                                        |ancestor::glossary                                        |ancestor::glossentry                                        |ancestor::listitem                                        |ancestor::varlistentry)[last()]"/>  <xsl:apply-templates select="$context" mode="xref-to">    <xsl:with-param name="purpose" select="'xref'"/>    <xsl:with-param name="xrefstyle" select="$xrefstyle"/>    <xsl:with-param name="referrer" select="$referrer"/>    <xsl:with-param name="verbose" select="$verbose"/>  </xsl:apply-templates></xsl:template><!-- ==================================================================== --><xsl:template match="*" mode="xref-title">  <xsl:variable name="title">    <xsl:apply-templates select="." mode="object.title.markup"/>  </xsl:variable>  <xsl:value-of select="$title"/></xsl:template><xsl:template match="author" mode="xref-title">  <xsl:variable name="title">    <xsl:call-template name="person.name"/>  </xsl:variable>  <xsl:value-of select="$title"/></xsl:template><xsl:template match="authorgroup" mode="xref-title">  <xsl:variable name="title">    <xsl:call-template name="person.name.list"/>  </xsl:variable>  <xsl:value-of select="$title"/></xsl:template><xsl:template match="cmdsynopsis" mode="xref-title">  <xsl:variable name="title">    <xsl:apply-templates select="(.//command)[1]" mode="xref"/>  </xsl:variable>  <xsl:value-of select="$title"/></xsl:template><xsl:template match="funcsynopsis" mode="xref-title">  <xsl:variable name="title">    <xsl:apply-templates select="(.//function)[1]" mode="xref"/>  </xsl:variable>  <xsl:value-of select="$title"/></xsl:template><xsl:template match="biblioentry|bibliomixed" mode="xref-title">  <!-- handles both biblioentry and bibliomixed -->  <xsl:variable name="title">    <xsl:text>[</xsl:text>    <xsl:choose>      <xsl:when test="local-name(*[1]) = 'abbrev'">        <xsl:apply-templates select="*[1]"/>      </xsl:when>      <xsl:otherwise>        <xsl:value-of select="(@id|@xml:id)[1]"/>      </xsl:otherwise>    </xsl:choose>    <xsl:text>]</xsl:text>  </xsl:variable>  <xsl:value-of select="$title"/></xsl:template><xsl:template match="step" mode="xref-title">  <xsl:call-template name="gentext">    <xsl:with-param name="key" select="'Step'"/>  </xsl:call-template>  <xsl:text> </xsl:text>  <xsl:apply-templates select="." mode="number"/></xsl:template><xsl:template match="step[not(./title)]" mode="title.markup">  <xsl:call-template name="gentext">    <xsl:with-param name="key" select="'Step'"/>  </xsl:call-template>  <xsl:text> </xsl:text>  <xsl:apply-templates select="." mode="number"/></xsl:template><xsl:template match="co" mode="xref-title">  <xsl:variable name="title">    <xsl:apply-templates select="." mode="callout-bug"/>  </xsl:variable>  <xsl:value-of select="$title"/></xsl:template><!-- ==================================================================== --><xsl:template match="link" name="link">  <xsl:param name="linkend" select="@linkend"/>  <xsl:param name="a.target"/>  <xsl:variable name="content">    <xsl:call-template name="anchor"/>    <xsl:choose>      <xsl:when test="count(child::node()) > 0">        <!-- If it has content, use it -->        <xsl:apply-templates/>      </xsl:when>      <!-- else look for an endterm -->      <xsl:when test="@endterm">        <xsl:variable name="etargets" select="key('id',@endterm)"/>        <xsl:variable name="etarget" select="$etargets[1]"/>        <xsl:choose>          <xsl:when test="count($etarget) = 0">            <xsl:message>              <xsl:value-of select="count($etargets)"/>              <xsl:text>Endterm points to nonexistent ID: </xsl:text>              <xsl:value-of select="@endterm"/>            </xsl:message>            <xsl:text>???</xsl:text>          </xsl:when>          <xsl:otherwise>              <xsl:apply-templates select="$etarget" mode="endterm"/>          </xsl:otherwise>        </xsl:choose>      </xsl:when>      <!-- Use the xlink:href if no other text -->      <xsl:when test="@xlink:href">        <xsl:value-of select="@xlink:href"/>      </xsl:when>      <xsl:otherwise>        <xsl:message>          <xsl:text>Link element has no content and no Endterm. </xsl:text>          <xsl:text>Nothing to show in the link to </xsl:text>          <xsl:value-of select="(@xlink:href|@linkend)[1]"/>        </xsl:message>        <xsl:text>???</xsl:text>      </xsl:otherwise>    </xsl:choose>  </xsl:variable>  <xsl:call-template name="simple.xlink">    <xsl:with-param name="node" select="."/>    <xsl:with-param name="linkend" select="$linkend"/>    <xsl:with-param name="content" select="$content"/>    <xsl:with-param name="a.target" select="$a.target"/>  </xsl:call-template></xsl:template><xsl:template match="ulink" name="ulink">  <xsl:param name="url" select="@url"/>  <xsl:variable name="link">    <a>      <xsl:apply-templates select="." mode="class.attribute"/>      <xsl:if test="@id or @xml:id">        <xsl:attribute name="id">          <xsl:value-of select="(@id|@xml:id)[1]"/>        </xsl:attribute>      </xsl:if>      <xsl:attribute name="href"><xsl:value-of select="$url"/></xsl:attribute>      <xsl:if test="$ulink.target != ''">        <xsl:attribute name="target">          <xsl:value-of select="$ulink.target"/>        </xsl:attribute>      </xsl:if>      <xsl:choose>        <xsl:when test="count(child::node())=0">          <xsl:value-of select="$url"/>        </xsl:when>        <xsl:otherwise>          <xsl:apply-templates/>        </xsl:otherwise>      </xsl:choose>    </a>  </xsl:variable>  <xsl:choose>    <xsl:when test="function-available('suwl:unwrapLinks')">      <xsl:copy-of select="suwl:unwrapLinks($link)"/>    </xsl:when>    <xsl:otherwise>      <xsl:copy-of select="$link"/>    </xsl:otherwise>  </xsl:choose></xsl:template><xsl:template match="olink" name="olink">  <!-- olink content may be passed in from xlink olink -->  <xsl:param name="content" select="NOTANELEMENT"/>  <xsl:call-template name="anchor"/>  <xsl:variable name="localinfo" select="@localinfo"/>  <xsl:choose>    <!-- olinks resolved by stylesheet and target database -->    <xsl:when test="@targetdoc or @targetptr or                     (@xlink:role=$xolink.role and                      contains(@xlink:href, '#') )">      <xsl:variable name="targetdoc.att">        <xsl:choose>          <xsl:when test="@targetdoc != ''">            <xsl:value-of select="@targetdoc"/>          </xsl:when>          <xsl:when test="@xlink:role=$xolink.role and                        contains(@xlink:href, '#')">            <xsl:value-of select="substring-before(@xlink:href, '#')"/>          </xsl:when>        </xsl:choose>      </xsl:variable>      <xsl:variable name="targetptr.att">        <xsl:choose>          <xsl:when test="@targetptr != ''">            <xsl:value-of select="@targetptr"/>          </xsl:when>          <xsl:when test="@xlink:role=$xolink.role and                        contains(@xlink:href, '#')">            <xsl:value-of select="substring-after(@xlink:href, '#')"/>          </xsl:when>        </xsl:choose>      </xsl:variable>      <xsl:variable name="olink.lang">        <xsl:call-template name="l10n.language">          <xsl:with-param name="xref-context" select="true()"/>        </xsl:call-template>      </xsl:variable>          <xsl:variable name="target.database.filename">        <xsl:call-template name="select.target.database">          <xsl:with-param name="targetdoc.att" select="$targetdoc.att"/>          <xsl:with-param name="targetptr.att" select="$targetptr.att"/>          <xsl:with-param name="olink.lang" select="$olink.lang"/>        </xsl:call-template>      </xsl:variable>          <xsl:variable name="target.database" select="document($target.database.filename,/)"/>          <xsl:if test="$olink.debug != 0">        <xsl:message>          <xsl:text>Olink debug: root element of target.database '</xsl:text>          <xsl:value-of select="$target.database.filename"/>          <xsl:text>' is '</xsl:text>          <xsl:value-of select="local-name($target.database/*[1])"/>          <xsl:text>'.</xsl:text>        </xsl:message>      </xsl:if>          <xsl:variable name="olink.key">        <xsl:call-template name="select.olink.key">          <xsl:with-param name="targetdoc.att" select="$targetdoc.att"/>          <xsl:with-param name="targetptr.att" select="$targetptr.att"/>          <xsl:with-param name="olink.lang" select="$olink.lang"/>          <xsl:with-param name="target.database" select="$target.database"/>        </xsl:call-template>      </xsl:variable>          <xsl:if test="string-length($olink.key) = 0">        <xsl:message>          <xsl:text>Error: unresolved olink: </xsl:text>          <xsl:text>targetdoc/targetptr = '</xsl:text>          <xsl:value-of select="$targetdoc.att"/>          <xsl:text>/</xsl:text>          <xsl:value-of select="$targetptr.att"/>          <xsl:text>'.</xsl:text>        </xsl:message>      </xsl:if>      <xsl:variable name="href">        <xsl:call-template name="make.olink.href">          <xsl:with-param name="olink.key" select="$olink.key"/>          <xsl:with-param name="target.database" select="$target.database"/>        </xsl:call-template>      </xsl:variable>      <xsl:variable name="hottext">        <xsl:choose>          <xsl:when test="$content">            <xsl:copy-of select="$content"/>          </xsl:when>          <xsl:otherwise>            <xsl:call-template name="olink.hottext">              <xsl:with-param name="olink.key" select="$olink.key"/>              <xsl:with-param name="olink.lang" select="$olink.lang"/>              <xsl:with-param name="target.database" select="$target.database"/>            </xsl:call-template>          </xsl:otherwise>        </xsl:choose>      </xsl:variable>      <xsl:variable name="olink.docname.citation">        <xsl:call-template name="olink.document.citation">          <xsl:with-param name="olink.key" select="$olink.key"/>          <xsl:with-param name="target.database" select="$target.database"/>          <xsl:with-param name="olink.lang" select="$olink.lang"/>        </xsl:call-template>      </xsl:variable>      <xsl:variable name="olink.page.citation">        <xsl:call-template name="olink.page.citation">          <xsl:with-param name="olink.key" select="$olink.key"/>          <xsl:with-param name="target.database" select="$target.database"/>          <xsl:with-param name="olink.lang" select="$olink.lang"/>        </xsl:call-template>      </xsl:variable>      <xsl:choose>        <xsl:when test="$href != ''">          <a href="{$href}">            <xsl:apply-templates select="." mode="class.attribute"/>            <xsl:copy-of select="$hottext"/>          </a>          <xsl:copy-of select="$olink.page.citation"/>          <xsl:copy-of select="$olink.docname.citation"/>        </xsl:when>        <xsl:otherwise>          <span class="olink"><xsl:copy-of select="$hottext"/></span>          <xsl:copy-of select="$olink.page.citation"/>          <xsl:copy-of select="$olink.docname.citation"/>        </xsl:otherwise>      </xsl:choose>    </xsl:when>    <!-- Or use old olink mechanism -->    <xsl:otherwise>      <xsl:variable name="href">        <xsl:choose>          <xsl:when test="@linkmode">            <!-- use the linkmode to get the base URI, use localinfo as fragid -->            <xsl:variable name="modespec" select="key('id',@linkmode)"/>            <xsl:if test="count($modespec) != 1                           or local-name($modespec) != 'modespec'">              <xsl:message>Warning: olink linkmode pointer is wrong.</xsl:message>            </xsl:if>            <xsl:value-of select="$modespec"/>            <xsl:if test="@localinfo">              <xsl:text>#</xsl:text>              <xsl:value-of select="@localinfo"/>            </xsl:if>          </xsl:when>          <xsl:when test="@type = 'href'">            <xsl:call-template name="olink.outline">              <xsl:with-param name="outline.base.uri" select="unparsed-entity-uri(@targetdocent)"/>              <xsl:with-param name="localinfo" select="@localinfo"/>              <xsl:with-param name="return" select="'href'"/>            </xsl:call-template>          </xsl:when>          <xsl:otherwise>            <xsl:value-of select="$olink.resolver"/>            <xsl:text>?</xsl:text>            <xsl:value-of select="$olink.sysid"/>            <xsl:value-of select="unparsed-entity-uri(@targetdocent)"/>            <!-- XSL gives no access to the public identifier (grumble...) -->            <xsl:if test="@localinfo">              <xsl:text>&</xsl:text>              <xsl:value-of select="$olink.fragid"/>              <xsl:value-of select="@localinfo"/>            </xsl:if>          </xsl:otherwise>        </xsl:choose>      </xsl:variable>          <xsl:choose>        <xsl:when test="$href != ''">          <a href="{$href}">            <xsl:apply-templates select="." mode="class.attribute"/>            <xsl:call-template name="olink.hottext"/>          </a>        </xsl:when>        <xsl:otherwise>          <xsl:call-template name="olink.hottext"/>        </xsl:otherwise>      </xsl:choose>    </xsl:otherwise>  </xsl:choose></xsl:template><xsl:template match="*" mode="pagenumber.markup">  <!-- no-op in HTML --></xsl:template><xsl:template name="olink.outline">  <xsl:param name="outline.base.uri"/>  <xsl:param name="localinfo"/>  <xsl:param name="return" select="href"/>  <xsl:variable name="outline-file" select="concat($outline.base.uri,                                $olink.outline.ext)"/>  <xsl:variable name="outline" select="document($outline-file,.)/div"/>  <xsl:variable name="node-href">    <xsl:choose>      <xsl:when test="$localinfo != ''">        <xsl:variable name="node" select="$outline//                                    *[@id=$localinfo or @xml:id=$localinfo]"/>        <xsl:value-of select="$node/@href"/>      </xsl:when>      <xsl:otherwise>        <xsl:value-of select="$outline/@href"/>      </xsl:otherwise>    </xsl:choose>  </xsl:variable>  <xsl:variable name="node-xref">    <xsl:choose>      <xsl:when test="$localinfo != ''">        <xsl:variable name="node" select="$outline//                                *[@id=$localinfo or @xml:id=$localinfo]"/>        <xsl:copy-of select="$node/xref"/>      </xsl:when>      <xsl:otherwise>        <xsl:value-of select="$outline/xref"/>      </xsl:otherwise>    </xsl:choose>  </xsl:variable>  <xsl:choose>    <xsl:when test="$return = 'href'">      <xsl:value-of select="$node-href"/>    </xsl:when>    <xsl:when test="$return = 'xref'">      <xsl:value-of select="$node-xref"/>    </xsl:when>    <xsl:otherwise>      <xsl:copy-of select="$node-xref"/>    </xsl:otherwise>  </xsl:choose></xsl:template><!-- ==================================================================== --><xsl:template name="xref.xreflabel">  <!-- called to process an xreflabel...you might use this to make  -->  <!-- xreflabels come out in the right font for different targets, -->  <!-- for example. -->  <xsl:param name="target" select="."/>  <xsl:value-of select="$target/@xreflabel"/></xsl:template><!-- ==================================================================== --><xsl:template match="title" mode="xref">  <xsl:apply-templates/></xsl:template><xsl:template match="command" mode="xref">  <xsl:call-template name="inline.boldseq"/></xsl:template><xsl:template match="function" mode="xref">  <xsl:call-template name="inline.monoseq"/></xsl:template><!-- ==================================================================== --><xsl:template match="*" mode="insert.title.markup">  <xsl:param name="purpose"/>  <xsl:param name="xrefstyle"/>  <xsl:param name="title"/>  <xsl:choose>    <!-- FIXME: what about the case where titleabbrev is inside the info? -->    <xsl:when test="$purpose = 'xref' and titleabbrev">      <xsl:apply-templates select="." mode="titleabbrev.markup"/>    </xsl:when>    <xsl:otherwise>      <xsl:copy-of select="$title"/>    </xsl:otherwise>  </xsl:choose></xsl:template><xsl:template match="chapter|appendix" mode="insert.title.markup">  <xsl:param name="purpose"/>  <xsl:param name="xrefstyle"/>  <xsl:param name="title"/>  <xsl:choose>    <xsl:when test="$purpose = 'xref'">      <i>        <xsl:copy-of select="$title"/>      </i>    </xsl:when>    <xsl:otherwise>      <xsl:copy-of select="$title"/>    </xsl:otherwise>  </xsl:choose></xsl:template><xsl:template match="*" mode="insert.subtitle.markup">  <xsl:param name="purpose"/>  <xsl:param name="xrefstyle"/>  <xsl:param name="subtitle"/>  <xsl:copy-of select="$subtitle"/></xsl:template><xsl:template match="*" mode="insert.label.markup">  <xsl:param name="purpose"/>  <xsl:param name="xrefstyle"/>  <xsl:param name="label"/>  <xsl:copy-of select="$label"/></xsl:template><xsl:template match="*" mode="insert.pagenumber.markup">  <xsl:param name="purpose"/>  <xsl:param name="xrefstyle"/>  <xsl:param name="pagenumber"/>  <xsl:copy-of select="$pagenumber"/></xsl:template><xsl:template match="*" mode="insert.direction.markup">  <xsl:param name="purpose"/>  <xsl:param name="xrefstyle"/>  <xsl:param name="direction"/>  <xsl:copy-of select="$direction"/></xsl:template><xsl:template match="*" mode="insert.olink.docname.markup">  <xsl:param name="purpose"/>  <xsl:param name="xrefstyle"/>  <xsl:param name="docname"/>  <span class="olinkdocname">    <xsl:copy-of select="$docname"/>  </span></xsl:template></xsl:stylesheet>
 |