This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
[docbook-apps] Re[2]: [docbook] Error processing FO output from docbook-xsl
- From: Alex Peshkov <peshkov at renderx dot com>
- To: "Robert Shields" <rshields at star dot net dot uk>
- Cc: "DOCBOOK-APPS" <docbook-apps at lists dot oasis-open dot org>
- Date: Wed, 8 Oct 2003 14:30:36 +0400
- Subject: [docbook-apps] Re[2]: [docbook] Error processing FO output from docbook-xsl
- Organization: RenderX
- References: <EE39DA3A61EF814685BCB97AD6DD0140305035@uks241.int.star.net.uk>
- Reply-to: Alex Peshkov <peshkov at renderx dot com>
Hello, Robert.
In your document you have put all the elements into a namespace which
prevents Docbook stylesheets form "seeing" them. After removing
namespace declaration I was able to produce valid XSL FO using standard
Docbook stylesheets.
Best regards,
Alexander Peshkov mailto:peshkov@renderx.com
RenderX
RS> Hi,
RS> Here is the docbook document I am using:
RS> <?xml version="1.0"?>
RS> <?xmlspysps C:\Program
RS> Files\Altova\AUTHENTIC2004\sps\Template\Publishing\DocBook.sps?>
RS> <article id="article" xmlns="http://www.star.net.uk/">
RS> <title>Article Title</title>
RS> <indexterm id="foo" class="startofrange">
RS> <primary>FOO</primary>
RS> </indexterm>
RS> <para>Some text.<footnote>
RS> <para>This is a footnote.</para>
RS> </footnote></para>
RS> <indexterm startref="foo" class="endofrange"/>
RS> </article>
RS> I am validating it using MSXML and docbook-xsd-1.0b1 - it appears to be
RS> valid.
RS> I am generating the FO document using MSXML and docbook-xsl-1.62.4
RS> fo/docbook.xsl
RS> The fo document is attached.
RS> Many thanks,
RS> Rob Shields
RS> -----Original Message-----
RS> From: Jens Stavnstrup [mailto:js@ddre.dk]
RS> Sent: 08 October 2003 10:56
RS> To: Robert Shields
RS> Cc: docbook@lists.oasis-open.org
RS> Subject: Re: [docbook] Error processing FO output from docbook-xsl
RS> Robert,
RS> It looks as if you don't have defined any page-sequence-masters, whih is
RS> quite strange. Try to provde us with the first 20-30 lines of you
RS> docbook
RS> document, and details on how you generate the fo document.
RS> DocBook/XSl generates standard complient XSL-FO code, which XEP and FOP
RS> normally accepts.
RS> Regards,
RS> Jens
RS> On Wed, 8 Oct 2003, Robert Shields wrote:
>> Hi,
>>
>> I have tried with 2 FO processors to process the ouput from
>> docbook-xsl.
>>
>> The errors I get from XEP are as follows:
>>
>> (document
>> (validate
>> {!file:/c%3A/work/hacks/documentation/xsl-fo/tempfo.xml: line 1:
>> [error] Element 'fo:block' cannot be a child of 'fo:root'.}
>>
>> {!file:/c%3A/work/hacks/documentation/xsl-fo/tempfo.xml: line 1:
>> [error] There should be at least one 'page-sequence' element as a
>> child of 'fo:root'.}
>>
>> {!file:/c%3A/work/hacks/documentation/xsl-fo/tempfo.xml: line 1:
>> [error] Attribute 'color' cannot occur at element 'fo:block'.}
>>
>> ...
>>
>> {!file:/c%3A/work/hacks/documentation/xsl-fo/tempfo.xml: line 1:
>> [error] Attribute 'color' cannot occur at element 'fo:block'.}
>> [validation total: 10 errors])
>> error: SAX parsing error: Invalid XSL FO source
>> 'file:/c%3A/work/hacks/documentation/xsl-fo/tempfo.xml': 10 error(s)
>> found
>>
>>
>>
>>
>>
>> The errors I get from XSL-formatter are as follows:
>>
>> Missing formatting object: fo:page-sequence
>> file:///C:/work/hacks/documentation/xsl-fo/tempfo.xml
>>
>>
>>
>>
>> Both processors imply that the output does not validate as FO. Does
>> docbook-xsl produce FO to a different schema than the FO processors I
>> am using? Both are current versions.
>>
>> Regards,
>>
>> Rob Shields
>>
>> This e-mail has been scanned for all viruses by Star Internet. The
>> service is powered by MessageLabs. For more information on a proactive
>> anti-virus service working around the clock, around the globe, visit:
>> http://www.star.net.uk
>> _____________________________________________________________________
>>
>> To unsubscribe from this list, send a post to
>> docbook-unsubscribe@lists.oasis-open.org, or visit
>> http://www.oasis-open.org/mlmanage/.
>>
>>
RS> This e-mail has been scanned for all viruses by Star Internet. The
RS> service is powered by MessageLabs. For more information on a proactive
RS> anti-virus service working around the clock, around the globe, visit:
RS> http://www.star.net.uk
RS> _____________________________________________________________________
RS> This e-mail has been scanned for all viruses by Star Internet. The
RS> service is powered by MessageLabs. For more information on a proactive
RS> anti-virus service working around the clock, around the globe, visit:
RS> http://www.star.net.uk
RS> _____________________________________________________________________
To unsubscribe from this list, send a post to docbook-apps-unsubscribe@lists.oasis-open.org, or visit http://www.oasis-open.org/mlmanage/.