~ubuntu-branches/ubuntu/maverick/libvirt/maverick

« back to all changes in this revision

Viewing changes to docs/page.xsl

Tags: upstream-0.6.4
Import upstream version 0.6.4

Show diffs side-by-side

added added

removed removed

Lines of Context:
8
8
  <!-- The sitemap.html.in page contains the master navigation structure -->
9
9
  <xsl:variable name="sitemap" select="document('sitemap.html.in')/html/body/div[@id='sitemap']"/>
10
10
 
 
11
  <xsl:template match="code[@class='docref']" mode="content">
 
12
    <xsl:variable name="name"><xsl:value-of select="."/></xsl:variable>
 
13
    <a href="html/libvirt-libvirt.html#{$name}"><code><xsl:value-of select="$name"/></code></a>
 
14
  </xsl:template>
 
15
 
 
16
  <xsl:template match="node() | @*" mode="content">
 
17
    <xsl:copy>
 
18
      <xsl:apply-templates select="node() | @*" mode="content"/>
 
19
    </xsl:copy>
 
20
  </xsl:template>
 
21
 
 
22
 
 
23
  <xsl:template match="ul[@id='toc']" mode="content">
 
24
    <xsl:call-template name="toc"/>
 
25
  </xsl:template>
 
26
 
11
27
  <!-- This processes the sitemap to form a context sensitive
12
28
       navigation menu for the current page -->
13
29
  <xsl:template match="ul" mode="menu">
143
159
            </xsl:apply-templates>
144
160
          </div>
145
161
          <div id="content">
146
 
            <xsl:for-each select="html/body/*">
147
 
              <xsl:choose>
148
 
                <xsl:when test="name() = 'ul' and @id = 'toc'">
149
 
                  <xsl:call-template name="toc"/>
150
 
                </xsl:when>
151
 
                <xsl:otherwise>
152
 
                  <xsl:copy-of select="."/>
153
 
                </xsl:otherwise>
154
 
              </xsl:choose>
155
 
            </xsl:for-each>
 
162
            <xsl:apply-templates select="/html/body/*" mode="content"/>
156
163
          </div>
157
164
        </div>
158
165
        <div id="footer">