List Info

Thread: DocBook5: Issues in customization




DocBook5: Issues in customization
user name
2007-08-13 05:58:44
Just started using DocBook. I am using
"docbook-xsl-1.73.0" with "fop-0.93"
to convert convert a simple docbook that follows the
"docbook-5.0CR5" DTD.
(Wanted to start with latest DTD to avoid migrations).

The default conversion to PDF works quite well, but I am
having problems in
customizations.
I have tried the steps in
http://xml.coverpages.org/DocBook5-XSL-Stylesheets.html, but i may be
missing something very basic.

http://www.nabble.com/file/p12124271/params-test.xsl
params-test.xsl 
Here are my list of issues/problems:
1) Removing the prefix "Chapter" from the chapter
titles.
   (Have been able to customize style, not the content)

2) Adding a copyright label to footer text (center aligned)

3) Adding document revision number to footer text (left
aligned)

Are there any quick start examples that can get me going.

I have attached my customization xsl with changes for #1
above.

Thanks,
~spr

-- 
View this message in context: http://www.nabble.com/DocBook5
%3A-Issues-in-customization-tf4260524.html#a12124271
Sent from the docbook apps mailing list archive at
Nabble.com.


------------------------------------------------------------
---------
To unsubscribe, e-mail: docbook-apps-unsubscribelists.oasis-open.org
For additional commands, e-mail: docbook-apps-helplists.oasis-open.org


Re: DocBook5: Issues in customization
user name
2007-08-13 07:09:58
Hi !

I'm interested in the third point too but haven't still the answer, I only can help for the second point.
I have a customization layer with a footer for titlepage page only with copyright in center and two logos at left and right,
other pages have chapter title and page number. It's a bit long because I redefined the whole template to have my footers like I wanted but maybe it can help you. I think you only need the footer.content, but just in case, i give you my whole footer customization :

&nbsp; <!--###################################################
&nbsp; &nbsp; &nbsp; &nbsp;   ; &nbsp; &nbsp; &nbsp; &nbsp;   ; Custom Footers
  ;  ################################################### -->
&nbsp; <!-- FOOTER LAYOUT -->
&nbsp; <xsl:template name="footer.table"&gt;
   ; <xsl:param name="pageclass" select="''"/>
&nbsp; &nbsp; <xsl:param name="sequence" select="''"/>
&nbsp; &nbsp; <xsl:param name="gentext-key" select="''"/>

 &nbsp;  <!-- default is a single table style for all footers -->
&nbsp;   <!-- Customize it for different page classes or sequence location -->
&nbsp;   <xsl:choose>
  ; &nbsp;  <xsl:when test="$pageclass = 'index'"&gt;
   ; &nbsp; &nbsp; &nbsp; <xsl:attribute name="margin-left">0pt</xsl:attribute>;
 &nbsp;   ; </xsl:when>
&nbsp;   </xsl:choose>

 &nbsp;  <xsl:variable name="column1">
  ; &nbsp;  <xsl:choose>
  ; &nbsp; &nbsp;  <xsl:when test="$double.sided = 0">1<;/xsl:when&gt;
 ; &nbsp; &nbsp; &nbsp; <xsl:when test="$sequence = 'first' or $sequence = 'odd'"&gt;1</xsl:when>
 &nbsp; &nbsp; &nbsp;  <xsl:otherwise>3</xsl:otherwise>;
 &nbsp;   ; </xsl:choose>
 &nbsp;  </xsl:variable>

 ; &nbsp; <xsl:variable name="column3">
  ; &nbsp;  <xsl:choose>
  ; &nbsp; &nbsp;  <xsl:when test="$double.sided = 0">3<;/xsl:when&gt;
 ; &nbsp; &nbsp; &nbsp; <xsl:when test="$sequence = 'first' or $sequence = 'odd'"&gt;3</xsl:when>
 &nbsp; &nbsp; &nbsp;  <xsl:otherwise>1</xsl:otherwise>;
 &nbsp;   ; </xsl:choose>
 &nbsp;  </xsl:variable>

 ; &nbsp; <xsl:variable name="candidate">
 &nbsp; &nbsp;  <fo:table border-collapse="separate" table-layout="fixed" width="100%">
&nbsp; &nbsp;   ;  <xsl:call-template name="foot.sep.rule"&gt;
 ; &nbsp; &nbsp; &nbsp; &nbsp; <xsl:with-param name="pageclass" select="$pageclass"/&gt;
 ; &nbsp; &nbsp; &nbsp; &nbsp; <xsl:with-param name="sequence" select="$sequence"/&gt;
   ; &nbsp; &nbsp; &nbsp; <xsl:with-param name="gentext-key" select="$gentext-key"/&gt;
 ; &nbsp; &nbsp; &nbsp; </xsl:call-template>

  ; &nbsp; &nbsp;  <!-- sizing columns depending of footer type -->
&nbsp;   ; &nbsp;  <xsl:choose>
  ; &nbsp; &nbsp; &nbsp;  <xsl:when test="$pageclass='titlepage' and ($gentext-key='book' or $gentext-key='set')
 &nbsp; &nbsp; &nbsp; &nbsp;   ; &nbsp; &nbsp; &nbsp; &nbsp;   ; &nbsp;  and $sequence='first'">;
 &nbsp;   ; &nbsp; &nbsp; &nbsp; <fo:table-column column-number="1" column-width="35mm" />
&nbsp; &nbsp; &nbsp;   ; &nbsp;  <fo:table-column column-number="2" column-width="*" />
&nbsp; &nbsp;   ; &nbsp; &nbsp;  <fo:table-column column-number="3" column-width="35mm" />
&nbsp; &nbsp; &nbsp;   ;  </xsl:when>
&nbsp;   ; &nbsp; &nbsp;  <xsl:otherwise>
 &nbsp; &nbsp;   ; &nbsp; &nbsp; <fo:table-column column-number="1" column-width="80mm" />
&nbsp; &nbsp; &nbsp;   ; &nbsp;  <fo:table-column column-number="2" column-width="*" />
&nbsp; &nbsp;   ; &nbsp; &nbsp;  <fo:table-column column-number="3" column-width="80mm" />
&nbsp; &nbsp; &nbsp;   ;  </xsl:otherwise>;
 &nbsp;   ; &nbsp; </xsl:choose>

 &nbsp;   ; &nbsp; <fo:table-body>
 &nbsp; &nbsp;   ; &nbsp; <fo:table-row height="15mm">
&nbsp;   ; &nbsp; &nbsp; &nbsp;  <fo:table-cell text-align="left">
 &nbsp; &nbsp;   ; &nbsp; &nbsp; &nbsp; <xsl:choose>
  ; &nbsp; &nbsp; &nbsp; &nbsp;   ; &nbsp; <xsl:when test="$pageclass='titlepage' and ($gentext-key='book' or $gentext-key='set')
 &nbsp; &nbsp; &nbsp; &nbsp;   ; &nbsp; &nbsp; &nbsp; &nbsp;   ; &nbsp; &nbsp;  and $sequence='first'">;
 &nbsp;   ; &nbsp; &nbsp; &nbsp; &nbsp;   ;  <xsl:attribute name="display-align">center</xsl:attribute>
&nbsp; &nbsp;   ; &nbsp; &nbsp; &nbsp; &nbsp;  </xsl:when>
&nbsp;   ; &nbsp; &nbsp; &nbsp; &nbsp;   ; <xsl:otherwise>
 &nbsp; &nbsp;   ; &nbsp; &nbsp; &nbsp; &nbsp;   <xsl:attribute name="display-align">before</xsl:attribute>
&nbsp; &nbsp;   ; &nbsp; &nbsp; &nbsp; &nbsp;  </xsl:otherwise>;
 &nbsp;   ; &nbsp; &nbsp; &nbsp; &nbsp; </xsl:choose>
 &nbsp; &nbsp; &nbsp; &nbsp;   ; &nbsp; <fo:block>
&nbsp; &nbsp;   ; &nbsp; &nbsp; &nbsp; &nbsp;  <xsl:call-template name="footer.content">
&nbsp; &nbsp; &nbsp; &nbsp;   ; &nbsp; &nbsp; &nbsp;  <xsl:with-param name="pageclass" select="$pageclass"/>
 &nbsp; &nbsp; &nbsp;   ; &nbsp; &nbsp; &nbsp; &nbsp; <xsl:with-param name="sequence" select="$sequence"/>
  ; &nbsp; &nbsp; &nbsp; &nbsp;   ; &nbsp; &nbsp; <xsl:with-param name="position" select="'left'"/>
&nbsp; &nbsp; &nbsp;   ; &nbsp; &nbsp; &nbsp; &nbsp;  <xsl:with-param name="gentext-key" select="$gentext-key"/&gt;
 ; &nbsp; &nbsp; &nbsp; &nbsp;   ; &nbsp;  </xsl:call-template>
&nbsp; &nbsp; &nbsp;   ; &nbsp; &nbsp;  </fo:block>
&nbsp;   ; &nbsp; &nbsp; &nbsp;  </fo:table-cell>;
 &nbsp;   ; &nbsp; &nbsp; &nbsp; <fo:table-cell text-align="center"&gt;
   ; &nbsp; &nbsp; &nbsp; &nbsp;   <xsl:choose>
  ; &nbsp; &nbsp; &nbsp; &nbsp;   ; &nbsp; <xsl:when test="$pageclass='titlepage' and ($gentext-key='book' or $gentext-key='set')
 &nbsp; &nbsp; &nbsp; &nbsp;   ; &nbsp; &nbsp; &nbsp; &nbsp;   ; &nbsp; &nbsp;  and $sequence='first'">;
 &nbsp;   ; &nbsp; &nbsp; &nbsp; &nbsp;   ;  <xsl:attribute name="display-align">center</xsl:attribute>
&nbsp; &nbsp;   ; &nbsp; &nbsp; &nbsp; &nbsp;  </xsl:when>
&nbsp;   ; &nbsp; &nbsp; &nbsp; &nbsp;   ; <xsl:otherwise>
 &nbsp; &nbsp;   ; &nbsp; &nbsp; &nbsp; &nbsp;   <xsl:attribute name="display-align">before</xsl:attribute>
&nbsp; &nbsp;   ; &nbsp; &nbsp; &nbsp; &nbsp;  </xsl:otherwise>;
 &nbsp;   ; &nbsp; &nbsp; &nbsp; &nbsp; </xsl:choose>
 &nbsp; &nbsp; &nbsp; &nbsp;   ; &nbsp; <fo:block>
&nbsp; &nbsp;   ; &nbsp; &nbsp; &nbsp; &nbsp;  <xsl:call-template name="footer.content">
&nbsp; &nbsp; &nbsp; &nbsp;   ; &nbsp; &nbsp; &nbsp;  <xsl:with-param name="pageclass" select="$pageclass"/>
 &nbsp; &nbsp; &nbsp;   ; &nbsp; &nbsp; &nbsp; &nbsp; <xsl:with-param name="sequence" select="$sequence"/>
  ; &nbsp; &nbsp; &nbsp; &nbsp;   ; &nbsp; &nbsp; <xsl:with-param name="position" select="'center'"/>
&nbsp;   ; &nbsp; &nbsp; &nbsp; &nbsp;   ; &nbsp; <xsl:with-param name="gentext-key" select="$gentext-key"/&gt;
 ; &nbsp; &nbsp; &nbsp; &nbsp;   ; &nbsp;  </xsl:call-template>
&nbsp; &nbsp; &nbsp;   ; &nbsp; &nbsp;  </fo:block>
&nbsp;   ; &nbsp; &nbsp; &nbsp;  </fo:table-cell>;
 &nbsp;   ; &nbsp; &nbsp; &nbsp; <fo:table-cell text-align="right">;
 &nbsp;   ; &nbsp; &nbsp; &nbsp; &nbsp; <xsl:choose>
  ; &nbsp; &nbsp; &nbsp; &nbsp;   ; &nbsp; <xsl:when test="$pageclass='titlepage' and $gentext-key='book'
 ; &nbsp; &nbsp; &nbsp; &nbsp;   ; &nbsp; &nbsp; &nbsp; &nbsp;   ; &nbsp; &nbsp; and $sequence='first'">;
 &nbsp;   ; &nbsp; &nbsp; &nbsp; &nbsp;   ;  <xsl:attribute name="display-align">center</xsl:attribute>
&nbsp; &nbsp;   ; &nbsp; &nbsp; &nbsp; &nbsp;  </xsl:when>
&nbsp;   ; &nbsp; &nbsp; &nbsp; &nbsp;   ; <xsl:otherwise>
 &nbsp; &nbsp;   ; &nbsp; &nbsp; &nbsp; &nbsp;   <xsl:attribute name="display-align">before</xsl:attribute>
&nbsp; &nbsp;   ; &nbsp; &nbsp; &nbsp; &nbsp;  </xsl:otherwise>;
 &nbsp;   ; &nbsp; &nbsp; &nbsp; &nbsp; </xsl:choose>
 &nbsp; &nbsp; &nbsp; &nbsp;   ; &nbsp; <fo:block>
&nbsp; &nbsp;   ; &nbsp; &nbsp; &nbsp; &nbsp;  <xsl:call-template name="footer.content">
&nbsp; &nbsp; &nbsp; &nbsp;   ; &nbsp; &nbsp; &nbsp;  <xsl:with-param name="pageclass" select="$pageclass"/>
 &nbsp; &nbsp; &nbsp;   ; &nbsp; &nbsp; &nbsp; &nbsp; <xsl:with-param name="sequence" select="$sequence"/>
  ; &nbsp; &nbsp; &nbsp; &nbsp;   ; &nbsp; &nbsp; <xsl:with-param name="position" select="'right'"/>
&nbsp; &nbsp;   ; &nbsp; &nbsp; &nbsp; &nbsp;   ; <xsl:with-param name="gentext-key" select="$gentext-key"/&gt;
 ; &nbsp; &nbsp; &nbsp; &nbsp;   ; &nbsp;  </xsl:call-template>
&nbsp; &nbsp; &nbsp;   ; &nbsp; &nbsp;  </fo:block>
&nbsp;   ; &nbsp; &nbsp; &nbsp;  </fo:table-cell>;
 &nbsp;   ; &nbsp; &nbsp; </fo:table-row>
 &nbsp; &nbsp;   ; </fo:table-body>;
 &nbsp;   ; </fo:table>
&nbsp;   </xsl:variable>

 ; &nbsp; <xsl:choose>
  ; &nbsp;  <xsl:when test="$sequence = 'blank' and $footers.on.blank.pages = 0">
&nbsp;   ; &nbsp;  <!-- no output -->
&nbsp;   ;  </xsl:when>
&nbsp;   ;  <xsl:otherwise>
 &nbsp; &nbsp;   ; <xsl:copy-of select="$candidate"/&gt;
 ; &nbsp; &nbsp; </xsl:otherwise>;
 &nbsp;  </xsl:choose>
  </xsl:template>

 ; <!-- FOOTER CONTENT -->
&nbsp; <xsl:template name="footer.content">
&nbsp; &nbsp; <xsl:param name="pageclass" select="''" />
&nbsp; &nbsp; <xsl:param name="sequence" select="''" />
&nbsp; &nbsp; <xsl:param name="position" select="''" />
&nbsp; &nbsp; <xsl:param name="gentext-key" select="''" />

 &nbsp;  <xsl:choose>
  ; &nbsp;  <!-- footer for book and set title pages -->
&nbsp;   ;  <xsl:when test="$pageclass='titlepage' and ($gentext-key='book' or $gentext-key='set')
 &nbsp; &nbsp; &nbsp; &nbsp;   ; &nbsp; &nbsp; &nbsp; &nbsp;   and $sequence='first'">;
 &nbsp;   ; &nbsp; <xsl:choose>
  ; &nbsp; &nbsp; &nbsp;  <xsl:when test="$position='left'">
&nbsp; &nbsp;   ; &nbsp; &nbsp; &nbsp;  <fo:block>
&nbsp; &nbsp;  &nbsp; &nbsp; &nbsp; &nbsp;   ; <fo:external-graphic src="../../resources/images/logo-cc.png" />
&nbsp; &nbsp;  &nbsp; &nbsp; &nbsp; &nbsp;  </fo:block>
&nbsp;   ; &nbsp; &nbsp;  </xsl:when>
&nbsp;   ; &nbsp; &nbsp;  <xsl:when test="$position='center'">
  ; &nbsp; &nbsp; &nbsp; &nbsp;   ; <fo:block font-family="Helvetica" font-size="8pt">
 &nbsp;   &nbsp; &nbsp; &nbsp; &nbsp;   ; <xsl:text>(CC) This work is licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License. To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-sa/3.0/</xsl:text&gt;
   ;  &nbsp; &nbsp; &nbsp; &nbsp;  </fo:block>
&nbsp;   ; &nbsp; &nbsp;  </xsl:when>
&nbsp;   ; &nbsp; &nbsp;  <xsl:when test="$position='right'">
&nbsp;   ; &nbsp; &nbsp; &nbsp; &nbsp;  <fo:block>
&nbsp; &nbsp;  &nbsp; &nbsp; &nbsp; &nbsp;   ; <fo:external-graphic src="../../resources/images/logo-license.png" />
&nbsp; &nbsp;  &nbsp; &nbsp; &nbsp; &nbsp;  </fo:block>
&nbsp;   ; &nbsp; &nbsp;  </xsl:when>
&nbsp;   ; &nbsp;  </xsl:choose>
 &nbsp; &nbsp;  </xsl:when>

 &nbsp; &nbsp;  <!-- footer for double-sided print -->
&nbsp;   ;  <!-- first pages (right) -->
&nbsp;   ;  <xsl:when test="$double.sided != 0 and $sequence = 'first' and $position='left'">
&nbsp; &nbsp; &nbsp;   <xsl:call-template name="division.title">
&nbsp; &nbsp; &nbsp; &nbsp;   <xsl:with-param name="node" select="ancestor-or-self::book[1]"/>
 &nbsp; &nbsp; &nbsp;  </xsl:call-template>
&nbsp; &nbsp; &nbsp; </xsl:when>
&nbsp;   ;  <!--xsl:when test="$double.sided != 0 and $sequence = 'first' and $position='center'"&gt;
   ; &nbsp; &nbsp; &nbsp; first
&nbsp; &nbsp;   </xsl:when-->
 &nbsp; &nbsp;  <xsl:when test="$double.sided != 0 and $sequence = 'first' and $position='right'">
&nbsp; &nbsp;   ;  <fo:page-number/&gt;
   ; &nbsp; </xsl:when>

 &nbsp; &nbsp;  <!-- even pages (left) -->
&nbsp;   ;  <xsl:when test="$double.sided != 0 and $sequence = 'even' and $position='left'">
&nbsp; &nbsp; &nbsp;   <fo:page-number/&gt;
   ; &nbsp; </xsl:when>
&nbsp;   ;  <!--xsl:when test="$double.sided != 0 and $sequence = 'even' and $position='center'"&gt;
   ; &nbsp; &nbsp; &nbsp; even
&nbsp; &nbsp; &nbsp; </xsl:when-->
 &nbsp; &nbsp;  <xsl:when test="$double.sided != 0 and $sequence = 'even' and $position='right'">
&nbsp; &nbsp;   ;  <xsl:call-template name="division.title">
&nbsp; &nbsp; &nbsp; &nbsp;   <xsl:with-param name="node" select="ancestor-or-self::book[1]"/>
 &nbsp; &nbsp; &nbsp;  </xsl:call-template>
&nbsp; &nbsp; &nbsp; </xsl:when>

 &nbsp; &nbsp;  <!-- odd pages (right) -->
&nbsp;   ;  <xsl:when test="$double.sided != 0 and $sequence = 'odd' and $position='left'">
&nbsp; &nbsp; &nbsp;   <xsl:call-template name="division.title">
&nbsp; &nbsp; &nbsp; &nbsp;   <xsl:with-param name="node" select="ancestor-or-self::book[1]"/>
 &nbsp; &nbsp; &nbsp;  </xsl:call-template>
&nbsp; &nbsp; &nbsp; </xsl:when>
&nbsp;   ;  <!--xsl:when test="$double.sided != 0 and $sequence = 'odd' and $position='center'"&gt;
   ; &nbsp; &nbsp; &nbsp; odd
&nbsp; &nbsp; &nbsp; </xsl:when-->
 &nbsp; &nbsp;  <xsl:when test="$double.sided != 0 and $sequence = 'odd' and $position='right'">
&nbsp; &nbsp;   ;  <fo:page-number/&gt;
   ; &nbsp; </xsl:when>

 &nbsp; &nbsp;  <!-- footer for single-sided print -->
&nbsp;   ;  <xsl:when test="$double.sided = 0 and $position='right'">;
 &nbsp;   ; &nbsp; <fo:page-number/&gt;
   ; &nbsp; </xsl:when>

 &nbsp; &nbsp; &nbsp; <xsl:when test="$double.sided = 0 and $position='left'">
 &nbsp; &nbsp;   ; <xsl:call-template name="division.title">
&nbsp; &nbsp; &nbsp; &nbsp;   <xsl:with-param name="node" select="ancestor-or-self::book[1]"/>
 &nbsp; &nbsp; &nbsp;  </xsl:call-template>
&nbsp; &nbsp; &nbsp; </xsl:when>

 &nbsp; &nbsp;  <xsl:when test="$sequence='blank'">
&nbsp;   ; &nbsp;  <!-- add a footer on blank pages when double.sided to prevent gap when printing -->
&nbsp;   ; &nbsp;  <xsl:choose>
  ; &nbsp; &nbsp; &nbsp;  <xsl:when test="$double.sided != 0">
&nbsp;   ; &nbsp; &nbsp; &nbsp;  <xsl:choose>
  ; &nbsp; &nbsp; &nbsp; &nbsp;   ; <!-- even pages (left) -->
&nbsp;   ; &nbsp; &nbsp; &nbsp; &nbsp;  <xsl:when test="$position='left'">
&nbsp; &nbsp;   ; &nbsp; &nbsp; &nbsp; &nbsp;  <fo:page-number/&gt;
   ; &nbsp; &nbsp; &nbsp; &nbsp;   </xsl:when>
&nbsp;   ; &nbsp; &nbsp; &nbsp; &nbsp;  <xsl:when test="$position='right'">
&nbsp;   ; &nbsp; &nbsp; &nbsp; &nbsp;   ; <xsl:call-template name="division.title">
&nbsp; &nbsp; &nbsp; &nbsp;   ; &nbsp; &nbsp; &nbsp;  <xsl:with-param name="node" select="ancestor-or-self::book[1]"/>
 &nbsp; &nbsp; &nbsp; &nbsp;   ; &nbsp; &nbsp; </xsl:call-template>
&nbsp; &nbsp; &nbsp;   ; &nbsp; &nbsp;  </xsl:when>
&nbsp;   ; &nbsp; &nbsp; &nbsp;  </xsl:choose>
 &nbsp; &nbsp; &nbsp; &nbsp;  </xsl:when>
&nbsp;   ; &nbsp; &nbsp;  <xsl:when test="$double.sided = 0 and $position='left'">
 &nbsp; &nbsp;   ; &nbsp; &nbsp; <xsl:call-template name="division.title">
&nbsp; &nbsp; &nbsp; &nbsp;   ; &nbsp;  <xsl:with-param name="node" select="ancestor-or-self::book[1]"/>
 &nbsp; &nbsp; &nbsp; &nbsp;   ; </xsl:call-template>
&nbsp; &nbsp; &nbsp;   ;  </xsl:when>
&nbsp;   ; &nbsp; &nbsp;  <xsl:when test="$double.sided = 0 and $position = 'right'">
&nbsp; &nbsp; &nbsp;   ; &nbsp;  <fo:page-number/&gt;
   ; &nbsp; &nbsp; &nbsp; </xsl:when>
&nbsp;   ; &nbsp; &nbsp;  <xsl:otherwise>
 &nbsp; &nbsp;   ; &nbsp; &nbsp; <!-- nop -->
&nbsp;   ; &nbsp; &nbsp;  </xsl:otherwise>;
 &nbsp;   ; &nbsp; </xsl:choose>
 &nbsp; &nbsp;  </xsl:when>

 &nbsp; &nbsp;  <xsl:otherwise>
 &nbsp; &nbsp;   ; <!-- no footer -->
&nbsp;   ;  </xsl:otherwise>;
 &nbsp;  </xsl:choose>
  </xsl:template>



spr a écrit :
talk.nabble.com" type="cite">
Just started using DocBook. I am using "docbook-xsl-1.73.0" with "fop-0.93"
to convert convert a simple docbook that follows the "docbook-5.0CR5" DTD.
(Wanted to start with latest DTD to avoid migrations).

The default conversion to PDF works quite well, but I am having problems in
customizations.
I have tried the steps in
http://xml.coverpages.org/DocBook5-XSL-Stylesheets.html, but i may be
missing something very basic.
http://www.nabble.com/file/p12124271/params-test.xsl params-test.xsl 
Here are my list of issues/problems:
1) Removing the prefix "Chapter" from the chapter titles.
   (Have been able to customize style, not the content)

2) Adding a copyright label to footer text (center aligned)

3) Adding document revision number to footer text (left aligned)

Are there any quick start examples that can get me going.

I have attached my customization xsl with changes for #1 above.

Thanks,
~spr

  
Re: DocBook5: Issues in customization
user name
2007-08-13 09:20:29
For item #1, check out the DocBook XSL Handbook, chapter 8,
"Generated
text":

http://www.sagehill.net/docbookxsl/TitleFont
Sizes.html#ChapterTitles

The gentext template you're looking to customize is the
"chapter"
template in the "title" context:

<xsl:param name="local.l10n.xml"
select="document('')"/>
<l:i18n xmlns:l="http://docbook.sourceforge.net/xmlns/l10n/1.0">
  <l:l10n language="en">
    <l:context name="title">
      <l:template name="chapter"
text="Chapter&#xA0;%n.&#xA0;%t"/>
    </l:context>
  </l:l10n>
</l:i18n>

- dfp

--- spr <spremiyahoo.com> wrote:

> 
> Just started using DocBook. I am using
"docbook-xsl-1.73.0" with
> "fop-0.93"
> to convert convert a simple docbook that follows the
"docbook-5.0CR5"
> DTD.
> (Wanted to start with latest DTD to avoid migrations).
> 
> The default conversion to PDF works quite well, but I
am having
> problems in
> customizations.
> I have tried the steps in
> http://xml.coverpages.org/DocBook5-XSL-Stylesheets.html, but i may be
> missing something very basic.
> 
http://www.nabble.com/file/p12124271/params-test.xsl
params-test.xsl 
> Here are my list of issues/problems:
> 1) Removing the prefix "Chapter" from the
chapter titles.
>    (Have been able to customize style, not the
content)
> 
> 2) Adding a copyright label to footer text (center
aligned)
> 
> 3) Adding document revision number to footer text (left
aligned)
> 
> Are there any quick start examples that can get me
going.
> 
> I have attached my customization xsl with changes for
#1 above.
> 
> Thanks,
> ~spr
> 
> -- 
> View this message in context:
>
http://www.nabble.com/DocBook5
%3A-Issues-in-customization-tf4260524.html#a12124271
> Sent from the docbook apps mailing list archive at
Nabble.com.
> 
> 
>
------------------------------------------------------------
---------
> To unsubscribe, e-mail: docbook-apps-unsubscribelists.oasis-open.org
> For additional commands, e-mail:
> docbook-apps-helplists.oasis-open.org
> 
> 



       
____________________________________________________________
________________________
Be a better Heartthrob. Get better relationship answers from
someone who knows. Yahoo! Answers - Check it out. 
http://answers.yahoo.com/dir/?link=list&sid=3965454
33

------------------------------------------------------------
---------
To unsubscribe, e-mail: docbook-apps-unsubscribelists.oasis-open.org
For additional commands, e-mail: docbook-apps-helplists.oasis-open.org


Re: DocBook5: Issues in customization
user name
2007-08-13 09:46:26
This is exactly what I used. But, didn't help...

See the attachment at 
http://www.nabble.com/file/p12124271/params-test.xsl
(not sure why it doesn;t show up properly in my earlier
post).


Johnson Earls wrote:
> 
> For item #1, check out the DocBook XSL Handbook,
chapter 8, "Generated
> text":
> 
> http://www.sagehill.net/docbookxsl/TitleFont
Sizes.html#ChapterTitles
> 
> The gentext template you're looking to customize is the
"chapter"
> template in the "title" context:
> 
> <xsl:param name="local.l10n.xml"
select="document('')"/>
> <l:i18n xmlns:l="http://docbook.sourceforge.net/xmlns/l10n/1.0">
>   <l:l10n language="en">
>     <l:context name="title">
>       <l:template name="chapter"
text="Chapter&#xA0;%n.&#xA0;%t"/>
>     </l:context>
>   </l:l10n>
> </l:i18n>
> 
> - dfp
> 
> --- spr <spremiyahoo.com> wrote:
> 
>> 
>> Just started using DocBook. I am using
"docbook-xsl-1.73.0" with
>> "fop-0.93"
>> to convert convert a simple docbook that follows
the "docbook-5.0CR5"
>> DTD.
>> (Wanted to start with latest DTD to avoid
migrations).
>> 
>> The default conversion to PDF works quite well, but
I am having
>> problems in
>> customizations.
>> I have tried the steps in
>> http://xml.coverpages.org/DocBook5-XSL-Stylesheets.html, but i may be
>> missing something very basic.
>> 
http://www.nabble.com/file/p12124271/params-test.xsl
params-test.xsl 
>> Here are my list of issues/problems:
>> 1) Removing the prefix "Chapter" from the
chapter titles.
>>    (Have been able to customize style, not the
content)
>> 
>> 2) Adding a copyright label to footer text (center
aligned)
>> 
>> 3) Adding document revision number to footer text
(left aligned)
>> 
>> Are there any quick start examples that can get me
going.
>> 
>> I have attached my customization xsl with changes
for #1 above.
>> 
>> Thanks,
>> ~spr
>> 
>> -- 
>> View this message in context:
>>
> http://www.nabble.com/DocBook5
%3A-Issues-in-customization-tf4260524.html#a12124271
>> Sent from the docbook apps mailing list archive at
Nabble.com.
>> 
>> 
>>
------------------------------------------------------------
---------
>> To unsubscribe, e-mail:
docbook-apps-unsubscribelists.oasis-open.org
>> For additional commands, e-mail:
>> docbook-apps-helplists.oasis-open.org
>> 
>> 
> 
> 
> 
>        
>
____________________________________________________________
________________________
> Be a better Heartthrob. Get better relationship answers
from someone who
> knows. Yahoo! Answers - Check it out. 
> http://answers.yahoo.com/dir/?link=list&sid=3965454
33
> 
>
------------------------------------------------------------
---------
> To unsubscribe, e-mail: docbook-apps-unsubscribelists.oasis-open.org
> For additional commands, e-mail: docbook-apps-helplists.oasis-open.org
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/DocBook5
%3A-Issues-in-customization-tf4260524.html#a12127593
Sent from the docbook apps mailing list archive at
Nabble.com.


------------------------------------------------------------
---------
To unsubscribe, e-mail: docbook-apps-unsubscribelists.oasis-open.org
For additional commands, e-mail: docbook-apps-helplists.oasis-open.org


Re: DocBook5: Issues in customization
user name
2007-08-13 09:48:12
Thanks. Will try it tonight...
~spr


Marie Sauvage - EBM WebSourcing wrote:
> 
> 
> Hi ! 
> 
> I'm interested in the third point too but haven't still
the answer, I
> only can help for the second point. 
> I have a customization layer with a footer for
titlepage page only with
> copyright in center and two logos at left and right,
other pages have
> chapter title and
> page number. It's
> a bit long because I redefined the whole template to
have my footers
> like I wanted but maybe it can help you. I think you
only need the
> footer.content, but just in case, i give you my whole
footer
> customization : 
> 
> 

-- 
View this message in context: http://www.nabble.com/DocBook5
%3A-Issues-in-customization-tf4260524.html#a12127656
Sent from the docbook apps mailing list archive at
Nabble.com.


------------------------------------------------------------
---------
To unsubscribe, e-mail: docbook-apps-unsubscribelists.oasis-open.org
For additional commands, e-mail: docbook-apps-helplists.oasis-open.org


[1-5]

about | contact  Other archives ( Real Estate discussion Medical topics )