mirror of
https://github.com/samba-team/samba.git
synced 2024-12-28 07:21:54 +03:00
Add hack for ignoring link/text() for LaTeX output.
(This used to be commit 14198df840
)
This commit is contained in:
parent
f75a6fddf0
commit
cfb79825bb
@ -27,10 +27,24 @@
|
||||
</xsl:param>
|
||||
|
||||
<!-- Show real name of the link rather then user specified description -->
|
||||
<xsl:template name="link">
|
||||
<xsl:element name="link">
|
||||
<xsl:copy-of select="@*"/>
|
||||
</xsl:element>
|
||||
<xsl:template match="link">
|
||||
<xsl:variable name="target" select="key('id',@linkend)[1]"/>
|
||||
<xsl:variable name="refelem" select="local-name($target)"/>
|
||||
<xsl:if test="$refelem=''">
|
||||
<xsl:message><xsl:text>XRef to nonexistent id: </xsl:text><xsl:value-of select="@linkend"/></xsl:message>
|
||||
<xsl:text>XrefId[?</xsl:text>
|
||||
<xsl:apply-templates/>
|
||||
<xsl:text>?]</xsl:text>
|
||||
</xsl:if>
|
||||
|
||||
<xsl:call-template name="generate.hyperlink">
|
||||
<xsl:with-param name="target" select="$target"/>
|
||||
<xsl:with-param name="text">
|
||||
<xsl:call-template name="generate.xref.text">
|
||||
<xsl:with-param name="target" select="$target"/>
|
||||
</xsl:call-template>
|
||||
</xsl:with-param>
|
||||
</xsl:call-template>
|
||||
</xsl:template>
|
||||
|
||||
<!-- LaTeX doesn't accept verbatim stuff in titles -->
|
||||
|
Loading…
Reference in New Issue
Block a user