|
Packit |
0f19cf |
|
|
Packit |
0f19cf |
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version='1.0'>
|
|
Packit |
0f19cf |
|
|
Packit |
0f19cf |
|
|
Packit |
0f19cf |
|
|
Packit |
0f19cf |
<xsl:param name="target.database.document">olinkdb.xml</xsl:param>
|
|
Packit |
0f19cf |
-->
|
|
Packit |
0f19cf |
|
|
Packit |
0f19cf |
|
|
Packit |
0f19cf |
<xsl:param name="current.docid" select="/*/@id"/>
|
|
Packit |
0f19cf |
|
|
Packit |
0f19cf |
|
|
Packit |
0f19cf |
<xsl:param name="literal.extensions">scale.by.width</xsl:param>
|
|
Packit |
0f19cf |
|
|
Packit |
0f19cf |
|
|
Packit |
0f19cf |
<xsl:param name="latex.hyperparam">colorlinks,linkcolor=blue,pdfstartview=FitH</xsl:param>
|
|
Packit |
0f19cf |
|
|
Packit |
0f19cf |
|
|
Packit |
0f19cf |
<xsl:param name="doc.publisher.show">1</xsl:param>
|
|
Packit |
0f19cf |
|
|
Packit |
0f19cf |
|
|
Packit |
0f19cf |
<xsl:param name="doc.lot.show">figure,table,example</xsl:param>
|
|
Packit |
0f19cf |
|
|
Packit |
0f19cf |
|
|
Packit |
0f19cf |
<xsl:param name="term.breakline">1</xsl:param>
|
|
Packit |
0f19cf |
|
|
Packit |
0f19cf |
|
|
Packit |
0f19cf |
<xsl:param name="refentry.numbered">0</xsl:param>
|
|
Packit |
0f19cf |
|
|
Packit |
0f19cf |
<xsl:template match="parameter">
|
|
Packit |
0f19cf |
<xsl:variable name="name" select="."/>
|
|
Packit |
0f19cf |
<xsl:variable name="target" select="key('id',$name)[1]"/>
|
|
Packit |
0f19cf |
|
|
Packit |
0f19cf |
<xsl:choose>
|
|
Packit |
0f19cf |
<xsl:when test="count($target) > 0">
|
|
Packit |
0f19cf |
|
|
Packit |
0f19cf |
<xsl:call-template name="hyperlink.markup">
|
|
Packit |
0f19cf |
<xsl:with-param name="linkend" select="$name"/>
|
|
Packit |
0f19cf |
<xsl:with-param name="text">
|
|
Packit |
0f19cf |
<xsl:apply-imports/>
|
|
Packit |
0f19cf |
</xsl:with-param>
|
|
Packit |
0f19cf |
</xsl:call-template>
|
|
Packit |
0f19cf |
|
|
Packit |
0f19cf |
<xsl:text>\index{Parameters!</xsl:text>
|
|
Packit |
0f19cf |
<xsl:value-of select="$name"/>
|
|
Packit |
0f19cf |
<xsl:text>}</xsl:text>
|
|
Packit |
0f19cf |
</xsl:when>
|
|
Packit |
0f19cf |
<xsl:otherwise>
|
|
Packit |
0f19cf |
|
|
Packit |
0f19cf |
<xsl:message>No reference for parameter: '
|
|
Packit |
0f19cf |
select="$name"/>'</xsl:message>
|
|
Packit |
0f19cf |
-->
|
|
Packit |
0f19cf |
<xsl:apply-imports/>
|
|
Packit |
0f19cf |
</xsl:otherwise>
|
|
Packit |
0f19cf |
</xsl:choose>
|
|
Packit |
0f19cf |
</xsl:template>
|
|
Packit |
0f19cf |
|
|
Packit |
0f19cf |
<xsl:template match="sgmltag[@class='xmlpi']">
|
|
Packit |
0f19cf |
<xsl:variable name="name" select="normalize-space(.)"/>
|
|
Packit |
0f19cf |
<xsl:variable name="nameref" select="concat('pi-',translate($name,' ','_'))"/>
|
|
Packit |
0f19cf |
<xsl:variable name="target" select="key('id',$nameref)[1]"/>
|
|
Packit |
0f19cf |
|
|
Packit |
0f19cf |
<xsl:choose>
|
|
Packit |
0f19cf |
<xsl:when test="count($target) > 0">
|
|
Packit |
0f19cf |
|
|
Packit |
0f19cf |
<xsl:call-template name="hyperlink.markup">
|
|
Packit |
0f19cf |
<xsl:with-param name="linkend" select="$nameref"/>
|
|
Packit |
0f19cf |
<xsl:with-param name="text">
|
|
Packit |
0f19cf |
<xsl:apply-imports/>
|
|
Packit |
0f19cf |
</xsl:with-param>
|
|
Packit |
0f19cf |
</xsl:call-template>
|
|
Packit |
0f19cf |
|
|
Packit |
0f19cf |
<xsl:text>\index{Processing Instructions!</xsl:text>
|
|
Packit |
0f19cf |
<xsl:value-of select="$name"/>
|
|
Packit |
0f19cf |
<xsl:text>}</xsl:text>
|
|
Packit |
0f19cf |
</xsl:when>
|
|
Packit |
0f19cf |
<xsl:otherwise>
|
|
Packit |
0f19cf |
|
|
Packit |
0f19cf |
<xsl:message>No reference for parameter: '
|
|
Packit |
0f19cf |
select="$name"/>'</xsl:message>
|
|
Packit |
0f19cf |
-->
|
|
Packit |
0f19cf |
<xsl:apply-imports/>
|
|
Packit |
0f19cf |
</xsl:otherwise>
|
|
Packit |
0f19cf |
</xsl:choose>
|
|
Packit |
0f19cf |
</xsl:template>
|
|
Packit |
0f19cf |
|
|
Packit |
0f19cf |
</xsl:stylesheet>
|