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] Howto customize title for legalnotice

Did not work either even with Saxon :(

I have attached the generated PDF.
See the green color on "Important Notice".
Used the "green" to ensure that customization is being processed.


My input XML is:
<?xml version='1.0'?>
    "-//OASIS//DTD DocBook V5.0//EN"
    "file:///D:/wrk/BookTest/docbook-5.0CR5/dtd/docbook.dtd" [
<!ENTITY nbsp               " ">

  lang        = "en"
  xmlns       = "http://docbook.org/ns/docbook"; version="5.0"
http://www.nabble.com/file/p13087222/test.pdf test.pdf 
  xmlns:xi    = "http://www.w3.org/2001/XInclude";
  xmlns:xsl   = "http://www.w3.org/1999/XSL/Transform";
  xmlns:xlink = "http://www.w3.org/1999/xlink";> 

    <title>Book Title</title>
    <releaseinfo>Release Info</releaseinfo>

      <title>IMPORTANT NOTICE</title>
      This is a copyright text.

  <chapter id="test">
      <title>Test Chapter</title>
    simple test para

My minimal customization is:
<?xml version="1.0" encoding="utf-8"?>
    xmlns:xsl   = "http://www.w3.org/1999/XSL/Transform";
    xmlns:fo    = "http://www.w3.org/1999/XSL/Format";
    xmlns:d     = "http://docbook.org/ns/docbook";
    version     = "5.0"
    xmlns:l     = "http://docbook.sourceforge.net/xmlns/l10n/1.0";>

    href    = "../docbook-xsl-ns-1.73.2/fo/docbook.xsl" />

  <xsl:attribute-set name="formal.title.properties">
  <xsl:attribute name="color">
      <xsl:when test = "self::legalnotice">red</xsl:when>


My execution log is:
java com.icl.saxon.StyleSheet -o .\output\test\test.fo
.\input\test\index.xml .\custom\tst-pdf.xsl use.extensions=1
Making portrait pages on USletter paper (8.5inx11in)
.\fop-0.94\fop.bat -fo .\output\test\test.fo -pdf .\output\test\test.pdf
Oct 8, 2007 2:13:42 AM org.apache.fop.hyphenation.Hyphenator
SEVERE: Couldn't find hyphenation pattern en


The extract from generated .fo is:
<fo:block space-before.optimum="1em" space-before.minimum="0.8em"
space-before.maximum="1.2em" font-weight="bold" font-size="12pt"
hyphenate="false" space-after.minimum="0.4em" space-after.optimum="0.6em"
space-after.maximum="0.8em" color="green"
keep-with-next.within-column="always">IMPORTANT NOTICE</fo:block><fo:block
space-before.optimum="1em" space-before.minimum="0.8em"
      This is a copyright text.

spr wrote:
> I have only 20 lines of text in the test document.
> Still haven't setup my PC for using xsltproc/saxon will do it tomorrow and
> get back...
> ~spr
> Bob Stayton wrote:
>> Hmm, I cut and pasted your attribute-set into a simple customization
>> layer 
>> based on 1.73.2 fo/docbook.xsl, processed a short book with xsltproc and 
>> fop 0.94, and it worked.  I also processed it with the fop shell script, 
>> and that worked as well.  That is, the legalnotice title was rendered in 
>> red on the verso titlepage, while other formal titles appeared in black.
>> Have you tried it with a minimal customization layer to see if something 
>> else is affecting it?
>> Bob Stayton
>> Sagehill Enterprises
>> DocBook Consulting
>> bobs@sagehill.net

View this message in context: http://www.nabble.com/Howto-customize-title-for-legalnotice-tf4568304.html#a13087222
Sent from the docbook apps mailing list archive at Nabble.com.

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