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

Location:
stylesheets/lfs-xsl/docbook-xsl-1.78.1/epub3
Files:
9 added
2 moved

Legend:

Unmodified
Added
Removed
  • stylesheets/lfs-xsl/docbook-xsl-1.78.1/epub3/chunkfast.xsl

    rf2a5108 rb1a51ac1  
    55
    66<!-- ********************************************************************
    7      $Id$
     7     $Id: chunkfast.xsl,v 1.1 2011-09-16 21:43:45 bobs Exp $
    88     ********************************************************************
    99
     
    2525<xsl:template name="process-chunk-element">
    2626  <xsl:choose>
    27     <xsl:when test="$chunk.fast != 0 and function-available('exsl:node-set')">
     27    <xsl:when test="$chunk.fast != 0 and $exsl.node.set.available != 0">
    2828      <xsl:variable name="genid" select="generate-id()"/>
    2929
  • stylesheets/lfs-xsl/docbook-xsl-1.78.1/epub3/profile-docbook.xsl

    rf2a5108 rb1a51ac1  
    44<!--This file was created automatically by xsl2profile-->
    55<!--from the DocBook XSL stylesheets.-->
    6 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:ng="http://docbook.org/docbook-ng" xmlns:db="http://docbook.org/ns/docbook" xmlns:exsl="http://exslt.org/common" xmlns:exslt="http://exslt.org/common" xmlns="http://www.w3.org/1999/xhtml" exslt:dummy="dummy" ng:dummy="dummy" db:dummy="dummy" extension-element-prefixes="exslt" exclude-result-prefixes="db ng exsl exslt" version="1.0">
    7 
    8 <xsl:output method="xml" encoding="UTF-8" indent="no" doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN" doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"/>
     6<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:ng="http://docbook.org/docbook-ng" xmlns:db="http://docbook.org/ns/docbook" xmlns:exsl="http://exslt.org/common" xmlns:exslt="http://exslt.org/common" xmlns="http://www.w3.org/1999/xhtml" exslt:dummy="dummy" ng:dummy="dummy" db:dummy="dummy" extension-element-prefixes="exslt" exclude-result-prefixes="db ng exsl exslt exslt" version="1.0">
     7
     8<xsl:output method="xml" encoding="UTF-8" indent="no"/>
    99
    1010<!-- ********************************************************************
    11      $Id$
     11     $Id: profile-docbook.xsl,v 1.1 2011-09-16 21:43:45 bobs Exp $
    1212     ********************************************************************
    1313
     
    2020<!-- ==================================================================== -->
    2121
    22 <xsl:include href="../VERSION"/>
    23 <xsl:include href="param.xsl"/>
     22<xsl:include href="../VERSION.xsl"/>
     23<xsl:include href="../xhtml/param.xsl"/>
    2424<xsl:include href="../lib/lib.xsl"/>
    2525<xsl:include href="../common/l10n.xsl"/>
     
    3333<xsl:include href="../common/olink.xsl"/>
    3434<xsl:include href="../common/pi.xsl"/>
    35 <xsl:include href="autotoc.xsl"/>
    36 <xsl:include href="autoidx.xsl"/>
    37 <xsl:include href="lists.xsl"/>
    38 <xsl:include href="callout.xsl"/>
    39 <xsl:include href="verbatim.xsl"/>
    40 <xsl:include href="graphics.xsl"/>
    41 <xsl:include href="xref.xsl"/>
    42 <xsl:include href="formal.xsl"/>
    43 <xsl:include href="table.xsl"/>
    44 <xsl:include href="htmltbl.xsl"/>
    45 <xsl:include href="sections.xsl"/>
    46 <xsl:include href="inline.xsl"/>
    47 <xsl:include href="footnote.xsl"/>
    48 <xsl:include href="html.xsl"/>
    49 <xsl:include href="info.xsl"/>
    50 <xsl:include href="keywords.xsl"/>
    51 <xsl:include href="division.xsl"/>
    52 <xsl:include href="toc.xsl"/>
    53 <xsl:include href="index.xsl"/>
    54 <xsl:include href="refentry.xsl"/>
    55 <xsl:include href="math.xsl"/>
    56 <xsl:include href="admon.xsl"/>
    57 <xsl:include href="component.xsl"/>
    58 <xsl:include href="biblio.xsl"/>
    59 <xsl:include href="biblio-iso690.xsl"/>
    60 <xsl:include href="glossary.xsl"/>
    61 <xsl:include href="block.xsl"/>
    62 <xsl:include href="task.xsl"/>
    63 <xsl:include href="qandaset.xsl"/>
    64 <xsl:include href="synop.xsl"/>
    65 <xsl:include href="titlepage.xsl"/>
    66 <xsl:include href="titlepage.templates.xsl"/>
    67 <xsl:include href="pi.xsl"/>
    68 <xsl:include href="ebnf.xsl"/>
    69 <xsl:include href="chunker.xsl"/>
    70 <xsl:include href="html-rtf.xsl"/>
    71 <xsl:include href="annotations.xsl"/>
     35<xsl:include href="../xhtml/autotoc.xsl"/>
     36<xsl:include href="../xhtml/autoidx.xsl"/>
     37<xsl:include href="../xhtml/lists.xsl"/>
     38<xsl:include href="../xhtml/callout.xsl"/>
     39<xsl:include href="../xhtml/verbatim.xsl"/>
     40<xsl:include href="../xhtml/graphics.xsl"/>
     41<xsl:include href="../xhtml/xref.xsl"/>
     42<xsl:include href="../xhtml/formal.xsl"/>
     43<xsl:include href="../xhtml/table.xsl"/>
     44<xsl:include href="../xhtml/htmltbl.xsl"/>
     45<xsl:include href="../xhtml/sections.xsl"/>
     46<xsl:include href="../xhtml/inline.xsl"/>
     47<xsl:include href="../xhtml/footnote.xsl"/>
     48<xsl:include href="../xhtml/html.xsl"/>
     49<xsl:include href="../xhtml/info.xsl"/>
     50<xsl:include href="../xhtml/keywords.xsl"/>
     51<xsl:include href="../xhtml/division.xsl"/>
     52<xsl:include href="../xhtml/toc.xsl"/>
     53<xsl:include href="../xhtml/index.xsl"/>
     54<xsl:include href="../xhtml/refentry.xsl"/>
     55<xsl:include href="../xhtml/math.xsl"/>
     56<xsl:include href="../xhtml/admon.xsl"/>
     57<xsl:include href="../xhtml/component.xsl"/>
     58<xsl:include href="../xhtml/biblio.xsl"/>
     59<xsl:include href="../xhtml/biblio-iso690.xsl"/>
     60<xsl:include href="../xhtml/glossary.xsl"/>
     61<xsl:include href="../xhtml/block.xsl"/>
     62<xsl:include href="../xhtml/task.xsl"/>
     63<xsl:include href="../xhtml/qandaset.xsl"/>
     64<xsl:include href="../xhtml/synop.xsl"/>
     65<xsl:include href="../xhtml/titlepage.xsl"/>
     66<xsl:include href="../xhtml/titlepage.templates.xsl"/>
     67<xsl:include href="../xhtml/pi.xsl"/>
     68<xsl:include href="../xhtml/ebnf.xsl"/>
     69<xsl:include href="../xhtml/chunker.xsl"/>
     70<xsl:include href="../xhtml/html-rtf.xsl"/>
     71<xsl:include href="../xhtml/annotations.xsl"/>
    7272<xsl:include href="../common/stripns.xsl"/>
    7373
     
    111111</xsl:template>
    112112
    113 <xsl:template name="body.attributes">
    114 <!-- no apply-templates; make it empty -->
     113<xsl:template name="body.attributes"><xslo:if xmlns:xslo="http://www.w3.org/1999/XSL/Transform" test="starts-with($writing.mode, 'rl')"><xslo:attribute name="dir">rtl</xslo:attribute></xslo:if>
     114<!-- no apply-templates; make it empty except for dir for rtl-->
    115115</xsl:template>
    116116
     
    124124    <xsl:copy-of select="$title"/>
    125125  </title>
     126
     127  <xsl:if test="$html.base != ''">
     128    <base href="{$html.base}"/>
     129  </xsl:if>
     130
     131  <!-- Insert links to CSS files or insert literal style elements -->
     132  <xsl:call-template name="generate.css"/>
    126133
    127134  <xsl:if test="$html.stylesheet != ''">
     
    133140  <xsl:if test="$link.mailto.url != ''">
    134141    <link rev="made" href="{$link.mailto.url}"/>
    135   </xsl:if>
    136 
    137   <xsl:if test="$html.base != ''">
    138     <base href="{$html.base}"/>
    139142  </xsl:if>
    140143
     
    178181  <xsl:choose>
    179182    <xsl:when test="contains($stylesheets, ' ')">
    180       <link rel="stylesheet" href="{substring-before($stylesheets, ' ')}">
    181         <xsl:if test="$html.stylesheet.type != ''">
    182           <xsl:attribute name="type">
    183             <xsl:value-of select="$html.stylesheet.type"/>
    184           </xsl:attribute>
    185         </xsl:if>
    186       </link>
     183      <xsl:variable name="css.filename" select="substring-before($stylesheets, ' ')"/>
     184
     185      <xsl:call-template name="make.css.link">
     186        <xsl:with-param name="css.filename" select="$css.filename"/>
     187      </xsl:call-template>
     188
    187189      <xsl:call-template name="output.html.stylesheets">
    188190        <xsl:with-param name="stylesheets" select="substring-after($stylesheets, ' ')"/>
     
    190192    </xsl:when>
    191193    <xsl:when test="$stylesheets != ''">
    192       <link rel="stylesheet" href="{$stylesheets}">
    193         <xsl:if test="$html.stylesheet.type != ''">
    194           <xsl:attribute name="type">
    195             <xsl:value-of select="$html.stylesheet.type"/>
    196           </xsl:attribute>
    197         </xsl:if>
    198       </link>
     194      <xsl:call-template name="make.css.link">
     195        <xsl:with-param name="css.filename" select="$stylesheets"/>
     196      </xsl:call-template>
    199197    </xsl:when>
    200198  </xsl:choose>
     
    389387  </html>
    390388  <xsl:value-of select="$html.append"/>
     389 
     390  <!-- Generate any css files only once, not once per chunk -->
     391  <xsl:call-template name="generate.css.files"/>
    391392</xsl:template>
    392393
     
    405406</xsl:template>
    406407
    407 <!-- ==================================================================== -->
    408 
    409408</xsl:stylesheet>
Note: See TracChangeset for help on using the changeset viewer.