|
Added: ofbiz/trunk/applications/content/template/docbook/epub3/chunkfast.xsl
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/content/template/docbook/epub3/chunkfast.xsl?rev=1395298&view=auto ============================================================================== --- ofbiz/trunk/applications/content/template/docbook/epub3/chunkfast.xsl (added) +++ ofbiz/trunk/applications/content/template/docbook/epub3/chunkfast.xsl Sun Oct 7 13:31:52 2012 @@ -0,0 +1,69 @@ +<?xml version="1.0" encoding="ASCII"?> +<!--This file was created automatically by html2xhtml--> +<!--from the HTML stylesheets.--> +<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"> + +<!-- ******************************************************************** + $Id$ + ******************************************************************** + + This file is part of the XSL DocBook Stylesheet distribution. + See ../README or http://docbook.sf.net/release/xsl/current/ for + copyright and other information. + + ******************************************************************** --> + +<!-- ==================================================================== --> + +<xsl:import href="chunk.xsl"/> +<xsl:param name="chunk.fast" select="1"/> + +<xsl:variable name="chunks" select="exsl:node-set($chunk.hierarchy)//cf:div"/> + +<!-- ==================================================================== --> + +<xsl:template name="process-chunk-element"> + <xsl:choose> + <xsl:when test="$chunk.fast != 0 and $exsl.node.set.available != 0"> + <xsl:variable name="genid" select="generate-id()"/> + + <xsl:variable name="div" select="$chunks[@id=$genid or @xml:id=$genid]"/> + + <xsl:variable name="prevdiv" select="($div/preceding-sibling::cf:div|$div/preceding::cf:div|$div/parent::cf:div)[last()]"/> + <xsl:variable name="prev" select="key('genid', ($prevdiv/@id|$prevdiv/@xml:id)[1])"/> + + <xsl:variable name="nextdiv" select="($div/following-sibling::cf:div|$div/following::cf:div|$div/cf:div)[1]"/> + <xsl:variable name="next" select="key('genid', ($nextdiv/@id|$nextdiv/@xml:id)[1])"/> + + <xsl:choose> + <xsl:when test="$onechunk != 0 and parent::*"> + <xsl:apply-imports/> + </xsl:when> + <xsl:otherwise> + <xsl:call-template name="process-chunk"> + <xsl:with-param name="prev" select="$prev"/> + <xsl:with-param name="next" select="$next"/> + </xsl:call-template> + </xsl:otherwise> + </xsl:choose> + </xsl:when> + <xsl:otherwise> + <xsl:choose> + <xsl:when test="$onechunk != 0 and not(parent::*)"> + <xsl:call-template name="chunk-all-sections"/> + </xsl:when> + <xsl:when test="$onechunk != 0"> + <xsl:apply-imports/> + </xsl:when> + <xsl:when test="$chunk.first.sections = 0"> + <xsl:call-template name="chunk-first-section-with-parent"/> + </xsl:when> + <xsl:otherwise> + <xsl:call-template name="chunk-all-sections"/> + </xsl:otherwise> + </xsl:choose> + </xsl:otherwise> + </xsl:choose> +</xsl:template> + +</xsl:stylesheet> Propchange: ofbiz/trunk/applications/content/template/docbook/epub3/chunkfast.xsl ------------------------------------------------------------------------------ svn:eol-style = native Propchange: ofbiz/trunk/applications/content/template/docbook/epub3/chunkfast.xsl ------------------------------------------------------------------------------ svn:keywords = Date Rev Author URL Id Propchange: ofbiz/trunk/applications/content/template/docbook/epub3/chunkfast.xsl ------------------------------------------------------------------------------ svn:mime-type = text/xsl Added: ofbiz/trunk/applications/content/template/docbook/epub3/docbook-epub.css.xml URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/content/template/docbook/epub3/docbook-epub.css.xml?rev=1395298&view=auto ============================================================================== --- ofbiz/trunk/applications/content/template/docbook/epub3/docbook-epub.css.xml (added) +++ ofbiz/trunk/applications/content/template/docbook/epub3/docbook-epub.css.xml Sun Oct 7 13:31:52 2012 @@ -0,0 +1,142 @@ +<?xml version="1.0"?> +<style> + +/********************************/ +/* start of styles in block.xsl */ + +.formalpara-title { + font-weight: bold; +} + +div.blockquote-title { + font-weight: bold; + margin-top: 1em; + margin-bottom: 1em; +} + +span.msgmain-title { + font-weight: bold; +} + +span.msgsub-title { + font-weight: bold; +} + +span.msgrel-title { + font-weight: bold; +} + +div.msglevel, div.msgorig, div.msgaud { + margin-top: 1em; + margin-bottom: 1em; +} + +span.msglevel-title, span.msgorig-title, span.msgaud-title { + font-weight: bold; +} + +div.msgexplan { + margin-top: 1em; + margin-bottom: 1em; +} + +span.msgexplan-title { + font-weight: bold; +} + +div.sidebar { + border: 0.5pt solid black; + margin-top: 1em; + margin-bottom: 1em; + padding: 8px; +} + +/* end of styles in block.xsl */ +/********************************/ + +/********************************/ +/* start of styles in autotoc.xsl */ + +/* top level entries */ +nav>ol>li>a { + margin-top: 1em; + margin-bottom: 1em; +} + + +/* end of styles in autotoc.xsl */ +/********************************/ + +/********************************/ +/* start of styles in formal.xsl */ + +div.figure-title { + font-weight: bold; +} + +div.example-title { + font-weight: bold; +} + +div.equation-title { + font-weight: bold; +} + +div.table-title { + font-weight: bold; +} + +div.sidebar-title { + font-weight: bold; +} + + +/* end of styles in formal.xsl */ +/********************************/ + +/********************************/ +/* start of styles in verbatim.xsl */ + +div.programlisting { + white-space: pre-wrap; + font-family: monospace; +} + +div.screen { + white-space: pre-wrap; + font-family: monospace; +} + +div.synopsis { + white-space: pre-wrap; + font-family: monospace; +} + +/* end of styles in verbatim.xsl */ +/********************************/ + +/********************************/ +/* NAVIGATION */ + +nav ol { +list-style-type: none; +margin: 0 0 0 2em; +padding: 0 0 0 0; +} + +nav ol li { +margin: 0 0 0 0; +padding: 0 0 0 0; +} + +nav ol li a { +text-decoration: none; +color: black; +font-family: sans-serif; +} + +#guide { +display: none; +} + +</style> Propchange: ofbiz/trunk/applications/content/template/docbook/epub3/docbook-epub.css.xml ------------------------------------------------------------------------------ svn:eol-style = native Propchange: ofbiz/trunk/applications/content/template/docbook/epub3/docbook-epub.css.xml ------------------------------------------------------------------------------ svn:keywords = Date Rev Author URL Id Propchange: ofbiz/trunk/applications/content/template/docbook/epub3/docbook-epub.css.xml ------------------------------------------------------------------------------ svn:mime-type = text/xml Added: ofbiz/trunk/applications/content/template/docbook/epub3/docbook.xsl URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/content/template/docbook/epub3/docbook.xsl?rev=1395298&view=auto ============================================================================== --- ofbiz/trunk/applications/content/template/docbook/epub3/docbook.xsl (added) +++ ofbiz/trunk/applications/content/template/docbook/epub3/docbook.xsl Sun Oct 7 13:31:52 2012 @@ -0,0 +1,19 @@ +<?xml version="1.0" encoding="utf-8"?> +<!DOCTYPE xsl:stylesheet [ +<!ENTITY uppercase "'ABCDEFGHIJKLMNOPQRSTUVWXYZ'"> +<!ENTITY lowercase "'abcdefghijklmnopqrstuvwxyz'"> +]> + +<xsl:stylesheet + xmlns:xsl="http://www.w3.org/1999/XSL/Transform" + xmlns="http://www.w3.org/1999/xhtml" + exclude-result-prefixes="#default" + version="1.0"> + +<!-- $Id$ --> + +<xsl:import href="../xhtml5/docbook.xsl"/> + +<xsl:include href="epub3-element-mods.xsl"/> + +</xsl:stylesheet> Propchange: ofbiz/trunk/applications/content/template/docbook/epub3/docbook.xsl ------------------------------------------------------------------------------ svn:eol-style = native Propchange: ofbiz/trunk/applications/content/template/docbook/epub3/docbook.xsl ------------------------------------------------------------------------------ svn:keywords = Date Rev Author URL Id Propchange: ofbiz/trunk/applications/content/template/docbook/epub3/docbook.xsl ------------------------------------------------------------------------------ svn:mime-type = text/xsl Added: ofbiz/trunk/applications/content/template/docbook/epub3/epub3-chunk-mods.xsl URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/content/template/docbook/epub3/epub3-chunk-mods.xsl?rev=1395298&view=auto ============================================================================== --- ofbiz/trunk/applications/content/template/docbook/epub3/epub3-chunk-mods.xsl (added) +++ ofbiz/trunk/applications/content/template/docbook/epub3/epub3-chunk-mods.xsl Sun Oct 7 13:31:52 2012 @@ -0,0 +1,38 @@ +<?xml version="1.0" encoding="utf-8"?> +<xsl:stylesheet + xmlns:xsl="http://www.w3.org/1999/XSL/Transform" + xmlns:exsl="http://exslt.org/common" + xmlns:epub="http://www.idpf.org/2007/ops" + xmlns:dc="http://purl.org/dc/elements/1.1/" + xmlns:ncx="http://www.daisy.org/z3986/2005/ncx/" + xmlns:db="http://docbook.org/ns/docbook" + xmlns:opf="http://www.idpf.org/2007/opf" + xmlns:stext="http://nwalsh.com/xslt/ext/com.nwalsh.saxon.TextFactory" + xmlns:str="http://exslt.org/strings" + xmlns:xtext="xalan://com.nwalsh.xalan.Text" + extension-element-prefixes="stext xtext" + exclude-result-prefixes="exsl dc ncx opf stext str xtext" + version="1.0"> + +<!-- $Id$ --> + +<xsl:include href="../xhtml5/html5-chunk-mods.xsl"/> + +<!--==============================================================--> +<!-- DocBook XSL Parameter settings --> +<!--==============================================================--> + +<!--==============================================================--> +<!-- Template customizations --> +<!--==============================================================--> + +<!-- EPUB3: customize to generate package files --> +<xsl:template match="*" mode="process.root" priority="2"> + <xsl:apply-templates select="."/> + <xsl:call-template name="generate.css.files"/> + + <xsl:call-template name="generate.epub.files"/> + +</xsl:template> + +</xsl:stylesheet> Propchange: ofbiz/trunk/applications/content/template/docbook/epub3/epub3-chunk-mods.xsl ------------------------------------------------------------------------------ svn:eol-style = native Propchange: ofbiz/trunk/applications/content/template/docbook/epub3/epub3-chunk-mods.xsl ------------------------------------------------------------------------------ svn:keywords = Date Rev Author URL Id Propchange: ofbiz/trunk/applications/content/template/docbook/epub3/epub3-chunk-mods.xsl ------------------------------------------------------------------------------ svn:mime-type = text/xsl |
| Free forum by Nabble | Edit this page |
