Ignore:
Timestamp:
12/10/2013 11:37:38 PM (11 years ago)
Author:
Krejzi <krejzi@…>
Branches:
7.5-systemd, 7.6-systemd, 7.7-systemd, 7.8-systemd, 7.9-systemd
Children:
112db9d
Parents:
f2a5108
Message:

Import new branch

git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/systemd/BOOK@10389 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

File:
1 moved

Legend:

Unmodified
Added
Removed
  • stylesheets/lfs-xsl/docbook-xsl-1.78.1/fo/index.xsl

    rf2a5108 rb1a51ac1  
    11<?xml version='1.0'?>
    22<!DOCTYPE xsl:stylesheet [
    3 <!ENTITY primary   'normalize-space(concat(primary/@sortas, primary[not(@sortas)]))'>
    4 <!ENTITY secondary 'normalize-space(concat(secondary/@sortas, secondary[not(@sortas)]))'>
    5 <!ENTITY tertiary  'normalize-space(concat(tertiary/@sortas, tertiary[not(@sortas)]))'>
     3<!ENTITY % common.entities SYSTEM "../common/entities.ent">
     4%common.entities;
    65]>
    76<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
     
    1110
    1211<!-- ********************************************************************
    13      $Id$
     12     $Id: index.xsl 9286 2012-04-19 10:10:58Z bobstayton $
    1413     ********************************************************************
    1514
     
    117116      </xsl:call-template>
    118117
    119       <fo:block id="{$id}">
     118      <fo:block id="{$id}"
     119                xsl:use-attribute-sets="component.titlepage.properties">
    120120        <xsl:call-template name="index.titlepage"/>
    121121      </fo:block>
     
    296296  <xsl:variable name="wrapper.name">
    297297    <xsl:choose>
    298       <xsl:when test="$axf.extensions != 0">
     298      <xsl:when test="$axf.extensions != 0 or $fop1.extensions != 0">
    299299        <xsl:call-template name="inline.or.block"/>
    300300      </xsl:when>
     
    447447    <xsl:attribute name="start-indent">
    448448      <xsl:choose>
    449         <xsl:when test="preceding-sibling::tertiaryie">3pc</xsl:when>
    450         <xsl:when test="preceding-sibling::secondaryie">2pc</xsl:when>
     449        <xsl:when test="(preceding-sibling::tertiaryie |
     450                         preceding-sibling::secondaryie)[last()]
     451                         [self::tertiaryie]">3pc</xsl:when>
     452        <xsl:when test="(preceding-sibling::tertiaryie |
     453                         preceding-sibling::secondaryie)[last()]
     454                         [self::secondaryie]">2pc</xsl:when>
    451455        <xsl:otherwise>1pc</xsl:otherwise>
    452456      </xsl:choose>
     
    467471  <xsl:param name="parentnode" select=".."/>
    468472
    469   <xsl:variable name="parent" select="local-name($parentnode)"/>
    470 
    471   <xsl:variable name="block.parents" select="'|answer|appendix|appendixinfo|article|articleinfo|bibliodiv|bibliography|bibliographyinfo|blockinfo|blockquote|bookinfo|callout|caution|chapter|chapterinfo|dedication|example|figure|formalpara|funcsynopsisinfo|glossary|glossaryinfo|glossdef|glossdiv|glossentry|highlights|important|index|indexinfo|info|informalexample|informalfigure|informaltable|itemizedlist|legalnotice|listitem|msgexplan|msgtext|note|objectinfo|orderedlist|partinfo|partintro|preface|prefaceinfo|procedure|qandadiv|qandaset|question|refentry|refentryinfo|referenceinfo|refmeta|refmiscinfo|refsect1|refsect1info|refsect2|refsect2info|refsect3|refsect3info|refsection|refsectioninfo|refsynopsisdiv|refsynopsisdivinfo|revdescription|screeninfo|sect1|sect1info|sect2|sect2info|sect3|sect3info|sect4|sect4info|sect5|sect5info|section|sectioninfo|setindex|setindexinfo|setinfo|sidebar|sidebarinfo|simplesect|step|table|task|taskprerequisites|taskrelated|tasksummary|tip|variablelist|warning|'"/>
     473  <xsl:variable name="parent" select="concat('|', local-name($parentnode), '|')"/>
     474
     475  <xsl:variable name="block.parents" select="'|answer|appendix|appendixinfo|article|articleinfo|bibliodiv|bibliography|bibliographyinfo|blockinfo|blockquote|bookinfo|callout|caution|chapter|chapterinfo|dedication|example|figure|formalpara|funcsynopsisinfo|glossary|glossaryinfo|glossdef|glossdiv|glossentry|highlights|important|index|indexinfo|info|informalexample|informalfigure|informaltable|itemizedlist|legalnotice|listitem|msgexplan|msgtext|note|objectinfo|orderedlist|partinfo|partintro|preface|prefaceinfo|procedure|qandadiv|qandaset|question|refentry|refentryinfo|referenceinfo|refmeta|refmiscinfo|refsect1|refsect1info|refsect2|refsect2info|refsect3|refsect3info|refsection|refsectioninfo|refsynopsisdiv|refsynopsisdivinfo|revdescription|screeninfo|sect1|sect1info|sect2|sect2info|sect3|sect3info|sect4|sect4info|sect5|sect5info|section|sectioninfo|setindex|setindexinfo|setinfo|sidebar|sidebarinfo|simplesect|step|table|task|taskprerequisites|taskrelated|tasksummary|tip|topic|variablelist|warning|'"/>
    472476
    473477  <xsl:choose>
    474     <xsl:when test="contains($parent, $block.parents)">fo:block</xsl:when>
     478    <xsl:when test="contains($block.parents, $parent)">fo:block</xsl:when>
     479    <xsl:when test="$fop1.extensions != 0">fo:wrapper</xsl:when>
    475480    <xsl:otherwise>fo:inline</xsl:otherwise>
    476481  </xsl:choose>
Note: See TracChangeset for help on using the changeset viewer.