[xep-support] Re: line 1: Incorrect top element - should be 'root'

From: Stephen Taylor <stephen_at_ADDRESS_REMOVED>
Date: Mon Apr 30 2018 - 13:06:29 PDT

Sadly, same result.

Stephen

Stephen Taylor | Librarian | *Kx* | +44 7713 400852 | stephen@kx.com

On 30 April 2018 at 19:40, Ron Catterall <ron@catterall.net> wrote:

> try:
> xmlns="http://docbook.org/ns/docbook" version="5.1" (not 5.0)
>
> is this a name space confusion ?
>
> docbook-xsl-1.79.2 gets the name space version.
>
> Ron
>
>
> On 04/30/2018 01:29 PM, Stephen Taylor wrote:
>
> I'm rendering a PDF from DocBook 5 XML generated by Pandoc from Markdown
> source.
>
> The Pandoc output begins:
>
> <?xml version="1.0" encoding="utf-8" ?>
> <!DOCTYPE article>
> <article
> xmlns="http://docbook.org/ns/docbook" version="5.0"
> xmlns:xlink="http://www.w3.org/1999/xlink" >
>
> XEP aborts with a validation error on the XML, complaining
>
> line 1: Incorrect top element - should be 'root'
>
> There is an easy workaround: remove the line:
>
> xmlns="http://docbook.org/ns/docbook" version="5.0"
>
> Looks to me like Pandoc has the right way to declare the namespace; seems
> strange XEP should choke on it. Is there a better way to correct the
> problem?
>
>
>
> Stephen Taylor | Librarian | *Kx* | +44 7713 400852 | stephen@kx.com
>
>
> _______________________________________________
> (*) To unsubscribe, please visit http://lists.renderx.com/mailman/options/xep-support
> (*) By using the Service, you expressly agree to these Terms of Service http://www.renderx.com/terms-of-service.html
>
>
> --
> Ron Catterallron@catterall.net
>
>

_______________________________________________
(*) To unsubscribe, please visit http://lists.renderx.com/mailman/options/xep-support
(*) By using the Service, you expressly agree to these Terms of Service http://w
ww.renderx.com/terms-of-service.html
Received on Mon Apr 30 13:05:14 2018

This archive was generated by hypermail 2.1.8 : Mon Apr 30 2018 - 13:05:19 PDT