[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: [docbook-apps] Running DocBook XSL's XInclude with Saxon and FOP throws error
Hi Bob, I get the error with xercesImpl-2.6.2. When I replace this version with the current version xercesImpl-2.8.1 I get another not-to-the-problem-related error. Should I use a version between 2.6.2 (Feb 2004) and 2.8.1 (today) or prior to 2.6.2 ? Oops, I think it must be prior to 2.6.2 because I tried xercesImpl-2.6.0 (Nov 2003) right now and do NOT have the recoverable error :) Regards, Darya --- Bob Stayton <bobs@sagehill.net> schrieb: > Hi Darya, > The recoverable error about the "old namespace" is > because you are using a > version of the Xerces parser that does not recognize > the correct namespace > (which is the old one). The XInclude standards > group started with 2001, > briefly changed to 2003, and then decided they > wanted to keep 2001. Some > versions of Xerces think 2003 is correct. Update > your Xerces and that > message will go away. It didn't stop the XInclude > process, you noticed. > > The <para> element as the direct child of the book > element is a mistake in > the example. That is what is generating the FOP > error. Sorry about that. > I'll fix it in the next release. > > Bob Stayton > Sagehill Enterprises > DocBook Consulting > bobs@sagehill.net > > > ----- Original Message ----- > From: "Darya Said-Akbari" <darya_akbari@yahoo.com> > To: <docbook-apps@lists.oasis-open.org> > Sent: Monday, September 18, 2006 6:37 AM > Subject: [docbook-apps] Running DocBook XSL's > XInclude with Saxon and FOP > throws error > > > > Hi, > > > > has anybody tried Bob Stayton's XInclude example > at > > > http://www.sagehill.net/docbookxsl/ModularDoc.html#UsingXinclude > > ? > > > > Chapter file intro.xml: > > <?xml version="1.0"?> > > <!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook > XML > > V4.4//EN" > > > > > "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd"> > > > > <chapter id="intro"> > > <title>Getting Started</title> > > <section id="Installing"> > > ... > > </chapter> > > > > Book file: > > <?xml version="1.0"?> > > <!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML > > V4.4//EN" > > > > > "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd"> > > > > <book> > > <title>User Guide</title> > > <para>This guide shows you how to use the > > software.</para> > > <xi:include > > xmlns:xi="http://www.w3.org/2001/XInclude" > > href="intro.xml" /> > > ... > > </book> > > > > When I try to run this example I get following > > exception from Saxon: > > > > Recoverable error > > org.xml.sax.SAXParseException: At least one > 'include' > > or 'fallback' element in the document is bound to > the > > old ''http://www.w3.org/2001/XInclude'' namespace. > > This namespace is no longer processed. The > namespace > > ''http://www.w3.org/2003/XInclude'' must be used > for > > XInclude processing. > > > > The process however runs through and looks fine. > But > > when I run the resulting FO file with FOP 0.20.5 I > get > > the following error: > > > > [ERROR] > file:/E:/projekte/docbookxsl/book.fo:1:20845 > > fo:flow must contain block-level children > > > > Are above XML snippets for intro.xml and book.xml > > missing anything? > > > > Regards, > > Darya > > > > > > > > > > > > > > > ___________________________________________________________ > > Der frühe Vogel fängt den Wurm. Hier gelangen Sie > zum neuen Yahoo! Mail: > > http://mail.yahoo.de > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: > docbook-apps-unsubscribe@lists.oasis-open.org > > For additional commands, e-mail: > docbook-apps-help@lists.oasis-open.org > > > > > > > > > ___________________________________________________________ Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]