Hi,
The basic problem seems to be mixing namespaced patterns with the
non-namespaced stylesheets. Your test-header.xsl has:
<xsl:import
href = "../docbook-xsl-1.73.2/fo/docbook.xsl" />
which imports the non-namespaced templates, while your pattern matches use
the namespace:
<xsl:value-of select="ancestor-or-self::d:book/d:info/d:title"/>
You should be importing docbook-xsl-ns-1.73.1. As it is, the root template
of the non-namespaced stylesheet strips off the namespaces in your
document, so they won't match the patterns you have specified.
Bob Stayton
Sagehill Enterprises
DocBook Consulting
[EMAIL PROTECTED]
----- Original Message -----
From: "spr" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Monday, October 01, 2007 8:22 AM
Subject: Re: [docbook-apps] Unable to get the document 'title' and
'releaseinfo'
Yes, they are xslt instructions in "test-header.xsl".
I might be missing something... to not understand your comments fully.
I did attach "test-header.xsl' in the original message.
see : http://www.nabble.com/file/p12976720/test-header.xsl
Can you tell mw what I should look for?
~spr
Dave Pawson wrote:
spr wrote:
I am using fop-0.94 with docbook-xsl-1.73.2 no additional xslt.
The command-line is:
fop-0.94\fop.bat -xml input\test\index.xml -xsl custom\test-header.xsl
-pdf
output\test\test.pdf
Even if name spaces are stripped, I believe either of these should be
successful:
<xsl:value-of select="ancestor-or-self::book/info/title"/>
<xsl:value-of select="/book/info/title"/>
But they are xslt instructions?
I'd assumed they were in test-header.xsl?
--
Dave Pawson
XSLT, XSL-FO and Docbook FAQ
http://www.dpawson.co.uk
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
View this message in context:
http://www.nabble.com/Unable-to-get-the-document-%27title%27-and-%27releaseinfo%27-tf4547463.html#a12981184
Sent from the docbook apps mailing list archive at Nabble.com.
---------------------------------------------------------------------
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]