Hi Filippo,
This is the mistake:
/usr/share/xml/docbook/stylesheet/docbook-xsl/fo/titlepage.xsl \
That should be:
/usr/share/xml/docbook/stylesheet/docbook-xsl/template/titlepage.xsl \
These two files named 'titlepage.xsl' have two completely different
purposes and should probably not have the same name.
Bob Stayton
Sagehill Enterprises
b...@sagehill.net
On 10/24/2018 9:44 AM, Filippo Rusconi wrote:
Greetings, Bob,
On Wed, Oct 24, 2018 at 08:42:17AM -0700, Bob Stayton wrote:
I'm not sure what the problem is here, as your process looks correct.
Can you compare your generated titlepage.xsl to the original
fo/titlepage.templates.xsl that is included with the distribution?
They should be equivalent, modulo whitespace variations.
Thank your for your reply.
Please, be patient, I have reproduced the experiment, but since I do
not modify
any file, I am using the distribution files directly, like this:
xsltproc --output titlepage.xsl \
/usr/share/xml/docbook/stylesheet/docbook-xsl/fo/titlepage.xsl \
/usr/share/xml/docbook/stylesheet/docbook-xsl/fo/titlepage.templates.xml
The command above created the new titlepage.xsl file in the local
directory.
Now I can compare the sizes of both xsl files:
799 lines for the original one
(/usr/share/xml/docbook/stylesheet/docbook-xsl/fo/titlepage.xsl)
1266 lines for the newly created one
If I open the newly created file in an editor, I see *existing* lines
that are
empty. The file contains only the following non-empty line
line 1: <?xml version="1.0"?>
All the remaining lines are empty (only '\n' characters).
For the record, the xml file contains this amount of lines:
1682
/usr/share/xml/docbook/stylesheet/docbook-xsl/fo/titlepage.templates.xml
So something is wrong, but also I must have made a mistake the first
time I
tried, since the build of the pdf file went to the end (the validation
succeeded) while now the build fails with the following error:
/home/rusconi/devel/docbook/msxpertsuite/minexpert/xslt/fo/titlepage.xsl:1267:
parser error : Start tag expected, '<' not found
^
compilation error: file
/home/rusconi/devel/docbook/msxpertsuite/minexpert/xslt/fo/docbook.xsl
line 6 element import
xsl:import : unable to load
/home/rusconi/devel/docbook/msxpertsuite/minexpert/xslt/fo/titlepage.xsl
The error is related to the fact that apart from the first line, there
is not a
single XML tag in the imported xls file.
So, this is where I am at the moment.
Thank for your attention,
Cheers,
Filippo