|
List Info
Thread: Unable to get the document 'title' and 'releaseinfo'
|
|
| Unable to get the document 'title' and
'releaseinfo' |

|
2007-10-01 05:29:58 |
I have been able to customize the header and footer, but
unable to put right
information where I need.
Have tried to access them by these:
<xsl:value-of
select="ancestor-or-self::d:book/d:info/d:title"/&
gt;
<xsl:value-of
select="ancestor-or-self::book/info/title"/>
<xsl:value-of
select="/book/info/title"/>
But result is always "empty" string...
DocBook 5 XML
<?xml version='1.0'?>
<!DOCTYPE book PUBLIC
"-//OASIS//DTD DocBook V5.0//EN"
"file:///D:/wrk/BookTest/docbook-5.0CR5/dtd/docbook.dtd
" [
<!ENTITY nbsp " ">
]>
<book
lang = "en"
xmlns = "http://docbook.or
g/ns/docbook" version="5.0"
xmlns i
= "http://www.w3.o
rg/2001/XInclude"
xmlns sl
= "http://www
.w3.org/1999/XSL/Transform"
xmlns link
= "http://www.w3.
org/1999/xlink">
<info>
<title>Book Title</title>
<releaseinfo>Release Info</releaseinfo>
</info>
<chapter id="test">
<info>
<title>Test Chapter</title>
</info>
<para>
simple test para
</para>
</chapter>
</book>
Customization XSL : Attached file test-headers.xsl
Command Used
fop-0.94fop.bat -xml inputtestindex.xml -xsl
customtest-header.xsl -pdf
outputtesttest.pdf
Result : Attached file test.pdf
Attachments:
http://
www.nabble.com/file/p12976720/test.pdf test.pdf
http://www.nabble.com/file/p12976720/test-header.xsl
test-header.xsl
--
View this message in context: http:
//www.nabble.com/Unable-to-get-the-document-%27title%27-and-
%27releaseinfo%27-tf4547463.html#a12976720
Sent from the docbook apps mailing list archive at
Nabble.com.
------------------------------------------------------------
---------
To unsubscribe, e-mail: docbook-apps-unsubscribe lists.oasis-open.org
For additional commands, e-mail: docbook-apps-help lists.oasis-open.org
|
|
| Re: Unable to get the document 'title'
and 'releaseinfo' |

|
2007-10-01 06:44:20 |
spr wrote:
> I have been able to customize the header and footer,
but unable to put right
> information where I need.
>
> Have tried to access them by these:
> <xsl:value-of
select="ancestor-or-self::d:book/d:info/d:title"/&
gt;
> <xsl:value-of
select="ancestor-or-self::book/info/title"/>
> <xsl:value-of
select="/book/info/title"/>
Are you using the docbook xslt that strips out the
namespaces?
If so, //title[1] should find the title?
HTH
>
> But result is always "empty" string...
> DocBook 5 XML
> <?xml version='1.0'?>
> <!DOCTYPE book PUBLIC
> "-//OASIS//DTD DocBook V5.0//EN"
>
"file:///D:/wrk/BookTest/docbook-5.0CR5/dtd/docbook.dtd
" [
> <!ENTITY nbsp " ">
> ]>
>
> <book
> lang = "en"
> xmlns = "http://docbook.or
g/ns/docbook" version="5.0"
> xmlns i
= "http://www.w3.o
rg/2001/XInclude"
> xmlns sl
= "http://www
.w3.org/1999/XSL/Transform"
> xmlns link
= "http://www.w3.
org/1999/xlink">
>
> <info>
> <title>Book Title</title>
> <releaseinfo>Release
Info</releaseinfo>
> </info>
>
> <chapter id="test">
> <info>
> <title>Test Chapter</title>
> </info>
> <para>
> simple test para
> </para>
> </chapter>
> </book>
>
> Customization XSL : Attached file test-headers.xsl
>
> Command Used
> fop-0.94fop.bat -xml inputtestindex.xml -xsl
customtest-header.xsl -pdf
> outputtesttest.pdf
>
> Result : Attached file test.pdf
>
> Attachments:
> http://
www.nabble.com/file/p12976720/test.pdf test.pdf
>
http://www.nabble.com/file/p12976720/test-header.xsl
test-header.xsl
--
Dave Pawson
XSLT, XSL-FO and Docbook FAQ
http://www.dpawson.co.uk
------------------------------------------------------------
---------
To unsubscribe, e-mail: docbook-apps-unsubscribe lists.oasis-open.org
For additional commands, e-mail: docbook-apps-help lists.oasis-open.org
|
|
| Re: Unable to get the document 'title'
and 'releaseinfo' |

|
2007-10-01 09:00:56 |
I am using fop-0.94 with docbook-xsl-1.73.2 no additional
xslt.
The command-line is:
fop-0.94fop.bat -xml inputtestindex.xml -xsl
customtest-header.xsl -pdf
outputtesttest.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"/>
~spr
Dave Pawson wrote:
>
> spr wrote:
>> I have been able to customize the header and
footer, but unable to put
>> right
>> information where I need.
>>
>> Have tried to access them by these:
>> <xsl:value-of
select="ancestor-or-self::d:book/d:info/d:title"/&
gt;
>> <xsl:value-of
select="ancestor-or-self::book/info/title"/>
>> <xsl:value-of
select="/book/info/title"/>
>
> Are you using the docbook xslt that strips out the
namespaces?
>
> If so, //title[1] should find the title?
>
> HTH
>
>>
>> But result is always "empty" string...
>> DocBook 5 XML
>> <?xml version='1.0'?>
>> <!DOCTYPE book PUBLIC
>> "-//OASIS//DTD DocBook V5.0//EN"
>>
"file:///D:/wrk/BookTest/docbook-5.0CR5/dtd/docbook.dtd
" [
>> <!ENTITY nbsp " ">
>> ]>
>>
>> <book
>> lang = "en"
>> xmlns = "http://docbook.or
g/ns/docbook" version="5.0"
>> xmlns i
= "http://www.w3.o
rg/2001/XInclude"
>> xmlns sl
= "http://www
.w3.org/1999/XSL/Transform"
>> xmlns link
= "http://www.w3.
org/1999/xlink">
>>
>> <info>
>> <title>Book Title</title>
>> <releaseinfo>Release
Info</releaseinfo>
>> </info>
>>
>> <chapter id="test">
>> <info>
>> <title>Test Chapter</title>
>> </info>
>> <para>
>> simple test para
>> </para>
>> </chapter>
>> </book>
>>
>> Customization XSL : Attached file test-headers.xsl
>>
>> Command Used
>> fop-0.94fop.bat -xml inputtestindex.xml -xsl
customtest-header.xsl
>> -pdf
>> outputtesttest.pdf
>>
>> Result : Attached file test.pdf
>>
>> Attachments:
>> http://
www.nabble.com/file/p12976720/test.pdf test.pdf
>>
http://www.nabble.com/file/p12976720/test-header.xsl
test-header.xsl
>
>
> --
> Dave Pawson
> XSLT, XSL-FO and Docbook FAQ
> http://www.dpawson.co.uk
>
>
>
------------------------------------------------------------
---------
> To unsubscribe, e-mail: docbook-apps-unsubscribe lists.oasis-open.org
> For additional commands, e-mail: docbook-apps-help lists.oasis-open.org
>
>
>
--
View this message in context: http:
//www.nabble.com/Unable-to-get-the-document-%27title%27-and-
%27releaseinfo%27-tf4547463.html#a12979768
Sent from the docbook apps mailing list archive at
Nabble.com.
------------------------------------------------------------
---------
To unsubscribe, e-mail: docbook-apps-unsubscribe lists.oasis-open.org
For additional commands, e-mail: docbook-apps-help lists.oasis-open.org
|
|
| Re: Unable to get the document 'title'
and 'releaseinfo' |

|
2007-10-01 10:05:30 |
spr wrote:
> I am using fop-0.94 with docbook-xsl-1.73.2 no
additional xslt.
>
> The command-line is:
> fop-0.94fop.bat -xml inputtestindex.xml -xsl
customtest-header.xsl -pdf
> outputtesttest.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: docbook-apps-unsubscribe lists.oasis-open.org
For additional commands, e-mail: docbook-apps-help lists.oasis-open.org
|
|
| Re: Unable to get the document 'title'
and 'releaseinfo' |

|
2007-10-01 10:22:45 |
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.94fop.bat -xml inputtestindex.xml -xsl
customtest-header.xsl
>> -pdf
>> outputtesttest.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: docbook-apps-unsubscribe lists.oasis-open.org
> For additional commands, e-mail: docbook-apps-help lists.oasis-open.org
>
>
>
--
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: docbook-apps-unsubscribe lists.oasis-open.org
For additional commands, e-mail: docbook-apps-help lists.oasis-open.org
|
|
| Re: Unable to get the document 'title'
and 'releaseinfo' |

|
2007-10-01 12:04:50 |
Hi,
On Montag, 1. Oktober 2007, spr wrote:
> 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?
Your stylesheet contains an error:
<xsl:stylesheet
xmlns:d = "http://docbook.or
g/ns/docbook"
xmlns sl
= "http://www
.w3.org/1999/XSL/Transform"
xmlns:fo = "http://www.w3
.org/1999/XSL/Format"
version = "5.0"
^^^^^^^^^^^^^^^^^^
That does not indicate the version of DocBook, it's the
version of XSLT.
The correct line is: version="1.0"
Bye,
Tom
--
Thomas Schraitle
------------------------------------------------------------
---------
To unsubscribe, e-mail: docbook-apps-unsubscribe lists.oasis-open.org
For additional commands, e-mail: docbook-apps-help lists.oasis-open.org
|
|
| Re: Unable to get the document 'title'
and 'releaseinfo' |

|
2007-10-01 12:05:30 |
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"/&
gt;
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
----- Original Message -----
From: "spr" <spremi yahoo.com>
To: <docbook-apps lists.oasis-open.org>
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.94fop.bat -xml inputtestindex.xml -xsl
customtest-header.xsl
>>> -pdf
>>> outputtesttest.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:
docbook-apps-unsubscribe lists.oasis-open.org
>> For additional commands, e-mail:
docbook-apps-help lists.oasis-open.org
>>
>>
>>
>
> --
> 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: docbook-apps-unsubscribe lists.oasis-open.org
> For additional commands, e-mail: docbook-apps-help lists.oasis-open.org
>
>
>
------------------------------------------------------------
---------
To unsubscribe, e-mail: docbook-apps-unsubscribe lists.oasis-open.org
For additional commands, e-mail: docbook-apps-help lists.oasis-open.org
|
|
| Re: Unable to get the document 'title'
and 'releaseinfo' |

|
2007-10-01 12:22:55 |
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"/&
gt;
>
> 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
>
>
--
View this message in context: http:
//www.nabble.com/Unable-to-get-the-document-%27title%27-and-
%27releaseinfo%27-tf4547463.html#a12983476
Sent from the docbook apps mailing list archive at
Nabble.com.
------------------------------------------------------------
---------
To unsubscribe, e-mail: docbook-apps-unsubscribe lists.oasis-open.org
For additional commands, e-mail: docbook-apps-help lists.oasis-open.org
|
|
| RE: Unable to get the document 'title'
and 'releaseinfo' |

|
2007-10-01 12:43:13 |
> -----Original Message-----
> From: Bob Stayton
> 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.
Another thing that happens during the namespace-stripping
process is that
<info> elements are converted into <bookinfo>,
<articleinfo>, etc. I think
this is why a pattern such as
"/book/info/releaseinfo" did not work in the
OP's customization. The conversion was once needed when the
stylesheets did
not support <info>, but now it is probably
unnecessary, and a source of
confusion.
/MJ
------------------------------------------------------------
---------
To unsubscribe, e-mail: docbook-apps-unsubscribe lists.oasis-open.org
For additional commands, e-mail: docbook-apps-help lists.oasis-open.org
|
|
[1-9]
|
|