« Return to Thread: Unable to get the document 'title' and 'releaseinfo'

Re: Unable to get the document 'title' and 'releaseinfo'

by spr :: Rate this Message:

Reply to Author | View in Thread

Great!

It had to be as simple as this  :)

~spr

Bob Stayton wrote:
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
bobs@sagehill.net
~spr

 « Return to Thread: Unable to get the document 'title' and 'releaseinfo'