root/docs/docbook-xsl/html/onechunk.xsl

Revision 23dea7e00df87480acb58bb3398283c2bb227949, 1.4 kB (checked in by Theo Schlossnagle <jesus@omniti.com>, 3 years ago)

pull docs into master

  • Property mode set to 100644
Line 
1 <?xml version="1.0"?>
2 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
3                 xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"
4                 version="1.0"
5                 exclude-result-prefixes="doc">
6
7 <!-- ********************************************************************
8      $Id: onechunk.xsl,v 1.9 2003/11/30 19:42:23 bobstayton Exp $
9      ********************************************************************
10
11      This file is part of the XSL DocBook Stylesheet distribution.
12      See ../README or http://nwalsh.com/docbook/xsl/ for copyright
13      and other information.
14
15      ******************************************************************** -->
16
17 <!-- ==================================================================== -->
18
19 <xsl:import href="chunk.xsl"/>
20
21 <!-- Ok, using the onechunk parameter makes this all work again. -->
22 <!-- It does have the disadvantage that it only works for documents that have -->
23 <!-- a root element that is considered a chunk by the chunk.xsl stylesheet. -->
24 <!-- Ideally, onechunk would let anything be a chunk. But not today. -->
25
26 <xsl:param name="onechunk" select="1"/>
27 <xsl:param name="suppress.navigation">1</xsl:param>
28
29 <xsl:template name="href.target.uri">
30   <xsl:param name="object" select="."/>
31   <xsl:text>#</xsl:text>
32   <xsl:call-template name="object.id">
33     <xsl:with-param name="object" select="$object"/>
34   </xsl:call-template>
35 </xsl:template>
36
37 </xsl:stylesheet>
Note: See TracBrowser for help on using the browser.