source: stylesheets/lfs-xsl/docbook-xsl-snapshot/xhtml/chunkfast.xsl@ b48899b

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 6.3 6.3-rc1 6.3-rc2 6.3-rc3 7.10 7.4 7.5 7.6 7.6-blfs 7.6-systemd 7.7 7.8 7.9 8.0 8.1 8.2 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind gnome kde5-13430 kde5-14269 kde5-14686 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts krejzi/svn lazarus lxqt nosym perl-modules plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition systemd-11177 systemd-13485 trunk upgradedb xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since b48899b was 65b2904, checked in by Manuel Canales Esparcia <manuel@…>, 17 years ago

Added LFS-XSL Stylesheets files.

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@6840 af4574ff-66df-0310-9fd7-8a98e5e911e0

  • Property mode set to 100644
File size: 2.8 KB
Line 
1<?xml version="1.0" encoding="ASCII"?>
2<!--This file was created automatically by html2xhtml-->
3<!--from the HTML stylesheets.-->
4<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:exsl="http://exslt.org/common" xmlns:cf="http://docbook.sourceforge.net/xmlns/chunkfast/1.0" xmlns="http://www.w3.org/1999/xhtml" version="1.0" exclude-result-prefixes="cf exsl">
5
6<!-- ********************************************************************
7 $Id$
8 ********************************************************************
9
10 This file is part of the XSL DocBook Stylesheet distribution.
11 See ../README or http://docbook.sf.net/release/xsl/current/ for
12 copyright and other information.
13
14 ******************************************************************** -->
15
16<!-- ==================================================================== -->
17
18<xsl:import href="chunk.xsl"/>
19<xsl:param name="chunk.fast" select="1"/>
20
21<xsl:variable name="chunks" select="exsl:node-set($chunk.hierarchy)//cf:div"/>
22
23<!-- ==================================================================== -->
24
25<xsl:template name="process-chunk-element">
26 <xsl:choose>
27 <xsl:when test="$chunk.fast != 0 and function-available('exsl:node-set')">
28 <xsl:variable name="genid" select="generate-id()"/>
29
30 <xsl:variable name="div" select="$chunks[@id=$genid or @xml:id=$genid]"/>
31
32 <xsl:variable name="prevdiv" select="($div/preceding-sibling::cf:div|$div/preceding::cf:div|$div/parent::cf:div)[last()]"/>
33 <xsl:variable name="prev" select="key('genid', ($prevdiv/@id|$prevdiv/@xml:id)[1])"/>
34
35 <xsl:variable name="nextdiv" select="($div/following-sibling::cf:div|$div/following::cf:div|$div/cf:div)[1]"/>
36 <xsl:variable name="next" select="key('genid', ($nextdiv/@id|$nextdiv/@xml:id)[1])"/>
37
38 <xsl:choose>
39 <xsl:when test="$onechunk != 0 and parent::*">
40 <xsl:apply-imports/>
41 </xsl:when>
42 <xsl:otherwise>
43 <xsl:call-template name="process-chunk">
44 <xsl:with-param name="prev" select="$prev"/>
45 <xsl:with-param name="next" select="$next"/>
46 </xsl:call-template>
47 </xsl:otherwise>
48 </xsl:choose>
49 </xsl:when>
50 <xsl:otherwise>
51 <xsl:choose>
52 <xsl:when test="$onechunk != 0 and not(parent::*)">
53 <xsl:call-template name="chunk-all-sections"/>
54 </xsl:when>
55 <xsl:when test="$onechunk != 0">
56 <xsl:apply-imports/>
57 </xsl:when>
58 <xsl:when test="$chunk.first.sections = 0">
59 <xsl:call-template name="chunk-first-section-with-parent"/>
60 </xsl:when>
61 <xsl:otherwise>
62 <xsl:call-template name="chunk-all-sections"/>
63 </xsl:otherwise>
64 </xsl:choose>
65 </xsl:otherwise>
66 </xsl:choose>
67</xsl:template>
68
69</xsl:stylesheet>
Note: See TracBrowser for help on using the repository browser.