Hi,
More details are needed to determine the problem.
What numbered version of DocBook XSL are you using?
Are you using DocBook 5 and the the docbook-ns stylesheets, or DocBook4 and
the non-namespaced stylesheets?
Are you processing a book or article?
Is the revhistory element located in an info element or in the body of the
document? (revhistory can appear in a para, for example)
Are you using the epub or epub3 stylesheet?
How are you importing it and customizing it
(sorry, I don't have time to reverse engineer your whole build setup).
Bob Stayton
Sagehill Enterprises
[email protected]
--------------------------------------------------
From: "Shlomi Fish" <[email protected]>
Sent: Monday, March 25, 2013 10:15 AM
To: <[email protected]>
Subject: [docbook-apps] [HELP] How can I get rid of the output of the
<revhistory /> tag in the EPUB output
Hi all,
I am trying to get rid of the <revhistory /> tag in the EPUB output here:
https://github.com/shlomif/Human-Hacking-Field-Guide/tree/master/HHFG/text
see below for more information - any help will be appreciated.
This seems to be misleading:
http://www.sagehill.net/docbookxsl/FormatRevhistory.html :
<<<<
Tip
A quick way to turn off revhistory from output is to define an empty
template
for it in a customization layer. The following example will turn it off
for all
elements that contain a revhistory:
<xsl:template match="revhistory" mode="titlepage.mode"/>
Please see below for the conversation log. Any help will be appreciated.
Regards,
Shlomi Fish
<rindolf> Hi all.
<rindolf> I cannot seem to know how to get rid of
<revhistory>...</revhistory>
on my page. <rindolf>
https://github.com/shlomif/Human-Hacking-Field-Guide/tree/master/HHFG/text
-
it's here. <rindolf> LotR: here? <rindolf> Vampire0: here?
<rindolf> Anyone?
* dcramer_ has quit (Ping timeout: 245 seconds)
* scotm ([email protected]) has joined
* pere ([email protected]) has joined
* dcramer_ ([email protected]) has joined
<rindolf> couture, dcramer_ , dtardon , joat , LotR , mhnoyes , pbor ,
pere ,
scotm , shaunm , stefan2 , sunny256 , ThomasWaldmann , Vampire0 , verm__ :
any
idea?
* pere did not notice the question.
<dcramer_> rindolf, That would be via the titlepage stuff...
<dcramer_> http://www.sagehill.net/docbookxsl/HTMLTitlePage.html
<rindolf> dcramer_: did you look at
https://github.com/shlomif/Human-Hacking-Field-Guide/blob/master/HHFG/text/docbook-epub-preproc.xslt
?
<dcramer_>
https://github.com/rackerlabs/clouddocs-maven-plugin/blob/master/src/main/resources/cloud/webhelp/titlepage/titlepage.templates.xml
<dcramer_> See how <revhistory> is commented out in the titlepage spec?
<dcramer_> What you do is edit the titlepagespec, then generate a new
titlepage.xsl from it:
http://www.sagehill.net/docbookxsl/TitlePageNewElems.html <dcramer_> Which
you
then import into your customization layer. <dcramer_> rindolf: Give that a
shot. If you're still having trouble, try the docbook-apps mailing list.
<rindolf> dcramer_: OK. <rindolf> dcramer_: isn't there an easier way?
<dcramer_> Well, that's the right way :-) <rindolf> dcramer_: why doesn't
<xsl:template match="revhistory" mode="titlepage.mode"/> <rindolf> work?
<dcramer_> I'd have to dig in to see what template is generated by the
titlepage mechanism. But on the list Bob could answer that off the top of
his
head I bet. <dcramer_> The template spec stuff isn't really that hard.
<dcramer_> 1. Edit the titlepage.xml provided with the dist to remove
<revhistory> <dcramer_> 2. Generate titlepage.xsl by just running a
provided
xslt over the edited spec. <dcramer_> 3. Import result into your
customization
layer. <dcramer_> Easier in a way.
--
-----------------------------------------------------------------
Shlomi Fish http://www.shlomifish.org/
Rethinking CPAN - http://shlom.in/rethinking-cpan
I started out as a BASIC programmer. Some people would say that I’m
permanently damaged. Some people are undoubtedly right.
— Larry Wall
Please reply to list if it's a mailing list post - http://shlom.in/reply .
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]