OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]

Subject: Re: [docbook-apps] [HELP] How can I get rid of the output of the <revhistory /> tag in the EPUB output

I would have written those custom templates to match on revhistory, not on the descendants of revhistory:

<!-- Get rid of the revhistory element -->
<xsl:template match="d:revhistory" mode="titlepage.mode" />
<xsl:template match="d:revhistory" />

Did you try that?

Bob Stayton
Sagehill Enterprises

From: "Shlomi Fish" <shlomif@shlomifish.org>
Sent: Friday, March 29, 2013 12:31 PM
To: "Shlomi Fish" <shlomif@shlomifish.org>
Cc: <docbook-apps@lists.oasis-open.org>
Subject: Re: [docbook-apps] [HELP] How can I get rid of the output of the <revhistory /> tag in the EPUB output

Hi all,

On Mon, 25 Mar 2013 19:15:50 +0200
Shlomi Fish <shlomif@shlomifish.org> wrote:

Hi all,

I am trying to get rid of the <revhistory /> tag in the EPUB output here:


see below for more information - any help will be appreciated.

Thanks for all your help.

OK, now my XSLT file reads:

<xsl:stylesheet version = '1.0'

   <xsl:import href="epub/docbook.xsl" />

<xsl:output method="xml" version="1.0" encoding="UTF-8" indent="no"

<xsl:template match="*">
       <xsl:when test="local-name() = 'legalnotice'">
               <xsl:copy-of select="@*"/>
               <xsl:call-template name="nc_legal_notice" />
           <xsl:element name="{local-name()}">
               <xsl:copy-of select="@*" />
               <xsl:apply-templates />

<xsl:template name="nc_legal_notice">
       This document is copyrighted by Shlomi Fish
       under the
xlink:href="http://creativecommons.org/licenses/by-nc-sa/3.0/";>Creative Commons Attribution Noncommercial Share-Alike (Unported) License (CC-by-nc-sa) version
       (or at your option, any greater version).
       Note that the original text of the story and its DocBook source is
       under "CC-by-sa", but the author relicensed the final EPUB to
       "CC-by-nc-sa" upon publishing.

<!-- Get rid of the revhistory element -->
<xsl:template match="d:revhistory//*" mode="titlepage.mode" />
<xsl:template match="d:revhistory//*" />



I am still getting the <revhistory /> elements in the EPUB right at the
beginning. I invoke the command like this:

-s /home/shlomif/Download/unpack/file/docbook/docbook-xsl-ns-snapshot/epub/bin/dbtoepub
-s docbook-epub-preproc.xslt -o human-hacking-field-guide--english.epub


Shlomi Fish

Shlomi Fish       http://www.shlomifish.org/
Freecell Solver - http://fc-solve.shlomifish.org/

Chuck Norris is the greatest man in history. He killed all the great men who
could ever pose a competition.
   — http://www.shlomifish.org/humour/bits/facts/Chuck-Norris/

Please reply to list if it's a mailing list post - http://shlom.in/reply .

To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org
For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]