~ubuntu-branches/ubuntu/saucy/yelp/saucy-proposed

« back to all changes in this revision

Viewing changes to stylesheets/db2html.xsl

  • Committer: Bazaar Package Importer
  • Author(s): Michael Terry
  • Date: 2011-06-28 04:56:30 UTC
  • mfrom: (1.1.48 upstream)
  • Revision ID: james.westby@ubuntu.com-20110628045630-55mwg7p3nhp4fmwb
Tags: 3.1.1-0ubuntu1
* New upstream release.
* Resync with Debian packaging, remaining Ubuntu changes:
  - Use source format 3
  - Add apport hook
  - Watch for unstable releases too
  - Suggest ttf-dejavu, instead of Recommend
  - Use autoreconf
  - debian/patches/00_no_am_gnu_gettext.patch
  - debian/patches/01_lpi.patch
  - debian/patches/05_menu_tooltip.patch

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
<?xml version='1.0' encoding='UTF-8'?><!-- -*- indent-tabs-mode: nil -*- -->
2
 
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
3
 
                xmlns:yelp="http://www.gnome.org/yelp/ns"
4
 
                xmlns="http://www.w3.org/1999/xhtml"
5
 
                extension-element-prefixes="yelp"
6
 
                version="1.0">
7
 
 
8
 
<xsl:import href="/opt/gnome/share/yelp-xsl/xslt/docbook/html/db2xhtml.xsl"/>
9
 
 
10
 
<xsl:include href="yelp-common.xsl"/>
11
 
 
12
 
<xsl:param name="db.chunk.info_basename"  select="'//about'"/>
13
 
 
14
 
<xsl:param name="db2html.navbar.top" select="false()"/>
15
 
<xsl:param name="db2html.sidenav" select="false()"/>
16
 
 
17
 
<!-- == db.xref.target == -->
18
 
<xsl:template name="db.xref.target">
19
 
  <xsl:param name="linkend"/>
20
 
  <xsl:param name="target" select="key('idkey', $linkend)"/>
21
 
  <xsl:param name="is_chunk" select="false()"/>
22
 
  <xsl:choose>
23
 
    <xsl:when test="$is_chunk">
24
 
      <xsl:value-of select="concat('xref:', $linkend)"/>
25
 
    </xsl:when>
26
 
    <xsl:otherwise>
27
 
      <xsl:variable name="target_chunk_id">
28
 
        <xsl:call-template name="db.chunk.chunk-id">
29
 
          <xsl:with-param name="node" select="$target"/>
30
 
        </xsl:call-template>
31
 
      </xsl:variable>
32
 
      <xsl:value-of select="concat('xref:', $target_chunk_id)"/>
33
 
      <xsl:if test="$target_chunk_id != $linkend">
34
 
        <xsl:value-of select="concat('#', $linkend)"/>
35
 
      </xsl:if>
36
 
    </xsl:otherwise>
37
 
  </xsl:choose>
38
 
</xsl:template>
39
 
 
40
 
</xsl:stylesheet>