<div dir="ltr">Sorry I did not make myself more clear. <div><br></div><div><font face="monospace, monospace">x4u</font> renders my XML and XSL as a PDF – 70 pages of beautiful typography – <b>provided</b> I remove the <font face="monospace, monospace">xmlns</font><font face="arial, helvetica, sans-serif"> attribute from the XML root element, which is, as you note, </font><font face="monospace, monospace">article</font><font face="arial, helvetica, sans-serif">. </font></div><div><font face="arial, helvetica, sans-serif"><br></font></div><div><font face="arial, helvetica, sans-serif">The </font><font face="monospace, monospace">xmlns</font><font face="arial, helvetica, sans-serif"> attribute was written by <a href="http://pandoc.org">Pandoc</a> as <a href="http://docbook.org">DocBook 5</a> XML output. It looks correct to me. DocBook is an XML application that will be familiar to many XEP users. So I‘m wondering why </font><font face="monospace, monospace">x4u</font><font face="arial, helvetica, sans-serif"> would report the attribute as a validation error in the XML. </font></div><div><font face="arial, helvetica, sans-serif"><br></font></div><div><font face="arial, helvetica, sans-serif">My question stands: is there a better solution to this than removing the attribute? </font></div><div><font face="arial, helvetica, sans-serif"><br></font></div></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><font face="verdana, sans-serif" size="1"><br></font><div><font face="verdana, sans-serif" size="1"><br></font></div><div><font face="verdana, sans-serif" size="1">Stephen Taylor | Librarian | <b><font color="#3d85c6">Kx</font></b> | +44 7713 400852 | <a href="mailto:stephen@kx.com" target="_blank">stephen@kx.com</a></font></div></div></div></div></div></div></div></div>
<br><div class="gmail_quote">On 1 May 2018 at 20:00, <span dir="ltr"><<a href="mailto:xep-support-request@renderx.com" target="_blank">xep-support-request@renderx.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Send Xep-support mailing list submissions to<br>
<a href="mailto:xep-support@renderx.com">xep-support@renderx.com</a><br>
<br>
To subscribe or unsubscribe via the World Wide Web, visit<br>
<a href="http://lists.renderx.com/mailman/listinfo/xep-support" rel="noreferrer" target="_blank">http://lists.renderx.com/<wbr>mailman/listinfo/xep-support</a><br>
or, via email, send a message with subject or body 'help' to<br>
<a href="mailto:xep-support-request@renderx.com">xep-support-request@renderx.<wbr>com</a><br>
<br>
You can reach the person managing the list at<br>
<a href="mailto:xep-support-owner@renderx.com">xep-support-owner@renderx.com</a><br>
<br>
When replying, please edit your Subject line so it is more specific<br>
than "Re: Contents of Xep-support digest..."<br>
<br>
<br>
Today's Topics:<br>
<br>
1. Re: line 1: Incorrect top element - should be 'root'<br>
(Stephen Taylor)<br>
2. Re: line 1: Incorrect top element - should be 'root' (Kevin Brown)<br>
<br>
<br>
------------------------------<wbr>------------------------------<wbr>----------<br>
<br>
Message: 1<br>
Date: Mon, 30 Apr 2018 21:06:29 +0100<br>
From: Stephen Taylor <<a href="mailto:stephen@kx.com">stephen@kx.com</a>><br>
To: Ron Catterall <<a href="mailto:ron@catterall.net">ron@catterall.net</a>><br>
Cc: XEP Support <<a href="mailto:xep-support@renderx.com">xep-support@renderx.com</a>><br>
Subject: [xep-support] Re: line 1: Incorrect top element - should be<br>
'root'<br>
Message-ID:<br>
<CADnJHVgg_fFCTiKV5PPQYxTy+<wbr>sWi3MBxoLajz2_Edx=<a href="mailto:4Sk14Hw@mail.gmail.com">4Sk14Hw@<wbr>mail.gmail.com</a>><br>
Content-Type: text/plain; charset="utf-8"<br>
<br>
Sadly, same result.<br>
<br>
Stephen<br>
<br>
<br>
<br>
Stephen Taylor | Librarian | *Kx* | +44 7713 400852 | <a href="mailto:stephen@kx.com">stephen@kx.com</a><br>
<br>
On 30 April 2018 at 19:40, Ron Catterall <<a href="mailto:ron@catterall.net">ron@catterall.net</a>> wrote:<br>
<br>
> try:<br>
> xmlns="<a href="http://docbook.org/ns/docbook" rel="noreferrer" target="_blank">http://docbook.org/ns/<wbr>docbook</a>" version="5.1" (not 5.0)<br>
><br>
> is this a name space confusion ?<br>
><br>
> docbook-xsl-1.79.2 gets the name space version.<br>
><br>
> Ron<br>
><br>
><br>
> On 04/30/2018 01:29 PM, Stephen Taylor wrote:<br>
><br>
> I'm rendering a PDF from DocBook 5 XML generated by Pandoc from Markdown<br>
> source.<br>
><br>
> The Pandoc output begins:<br>
><br>
> <?xml version="1.0" encoding="utf-8" ?><br>
> <!DOCTYPE article><br>
> <article<br>
> xmlns="<a href="http://docbook.org/ns/docbook" rel="noreferrer" target="_blank">http://docbook.org/ns/<wbr>docbook</a>" version="5.0"<br>
> xmlns:xlink="<a href="http://www.w3.org/1999/xlink" rel="noreferrer" target="_blank">http://www.w3.<wbr>org/1999/xlink</a>" ><br>
><br>
> XEP aborts with a validation error on the XML, complaining<br>
><br>
> line 1: Incorrect top element - should be 'root'<br>
><br>
> There is an easy workaround: remove the line:<br>
><br>
> xmlns="<a href="http://docbook.org/ns/docbook" rel="noreferrer" target="_blank">http://docbook.org/ns/<wbr>docbook</a>" version="5.0"<br>
><br>
> Looks to me like Pandoc has the right way to declare the namespace; seems<br>
> strange XEP should choke on it. Is there a better way to correct the<br>
> problem?<br>
><br>
><br>
><br>
> Stephen Taylor | Librarian | *Kx* | +44 7713 400852 | <a href="mailto:stephen@kx.com">stephen@kx.com</a><br>
><br>
><br>
> ______________________________<wbr>_________________<br>
> (*) To unsubscribe, please visit <a href="http://lists.renderx.com/mailman/options/xep-support" rel="noreferrer" target="_blank">http://lists.renderx.com/<wbr>mailman/options/xep-support</a><br>
> (*) By using the Service, you expressly agree to these Terms of Service <a href="http://www.renderx.com/terms-of-service.html" rel="noreferrer" target="_blank">http://www.renderx.com/terms-<wbr>of-service.html</a><br>
><br>
><br>
> --<br>
> Ron <a href="mailto:Catterallron@catterall.net">Catterallron@catterall.net</a><br>
><br>
><br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <<a href="http://lists.renderx.com/pipermail/xep-support/attachments/20180430/7639cbc0/attachment-0001.html" rel="noreferrer" target="_blank">http://lists.renderx.com/<wbr>pipermail/xep-support/<wbr>attachments/20180430/7639cbc0/<wbr>attachment-0001.html</a>><br>
<br>
------------------------------<br>
<br>
Message: 2<br>
Date: Mon, 30 Apr 2018 13:26:31 -0700<br>
From: "Kevin Brown" <<a href="mailto:kevin@renderx.com">kevin@renderx.com</a>><br>
To: "'RenderX Community Support List'" <<a href="mailto:xep-support@renderx.com">xep-support@renderx.com</a>>,<br>
"'Ron Catterall'" <<a href="mailto:ron@catterall.net">ron@catterall.net</a>><br>
Subject: [xep-support] Re: line 1: Incorrect top element - should be<br>
'root'<br>
Message-ID: <088b01d3e0c1$87692040$<wbr>963b60c0$@<a href="http://renderx.com" rel="noreferrer" target="_blank">renderx.com</a>><br>
Content-Type: text/plain; charset="utf-8"<br>
<br>
RenderX does not format pure XML. Nothing does unless you just want to print out the tags.<br>
<br>
You are sending to it an XML that starts with <article>.<br>
<br>
So the error message is correct, what you send to RenderX should start with <fo:root> or at the very least, it should have an XSL stylesheet reference that turns your <article> into an XSL FO document that starts with <fo:root> (like the Docbook XSL stylesheets would).<br>
<br>
<br>
<br>
You need to convert your XML to XSL FO or add an XSL stylesheet reference for RenderX to understand what XSL you are using to process your document.<br>
<br>
<br>
<br>
Kevin Brown<br>
<br>
(650) 327-1000 Direct<br>
<br>
(650) 328-8008 Fax<br>
<br>
(925) 395-1772 Mobile<br>
<br>
skype:kbrown01<br>
<br>
<mailto:<a href="mailto:kevin@renderx.com">kevin@renderx.com</a>> <a href="mailto:kevin@renderx.com">kevin@renderx.com</a><br>
<br>
<mailto:<a href="mailto:sales@renderx.com">sales@renderx.com</a>> <a href="mailto:sales@renderx.com">sales@renderx.com</a><br>
<br>
<<a href="http://www.renderx.com/" rel="noreferrer" target="_blank">http://www.renderx.com/</a>> <a href="http://www.renderx.com" rel="noreferrer" target="_blank">http://www.renderx.com</a> <br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
From: Xep-support [mailto:<a href="mailto:xep-support-bounces@renderx.com">xep-support-bounces@<wbr>renderx.com</a>] On Behalf Of Stephen Taylor<br>
Sent: Monday, April 30, 2018 1:06 PM<br>
To: Ron Catterall <<a href="mailto:ron@catterall.net">ron@catterall.net</a>><br>
Cc: XEP Support <<a href="mailto:xep-support@renderx.com">xep-support@renderx.com</a>><br>
Subject: [xep-support] Re: line 1: Incorrect top element - should be 'root'<br>
<br>
<br>
<br>
Sadly, same result. <br>
<br>
<br>
<br>
Stephen<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
Stephen Taylor | Librarian | Kx | +44 7713 400852 | <a href="mailto:stephen@kx.com">stephen@kx.com</a> <mailto:<a href="mailto:stephen@kx.com">stephen@kx.com</a>> <br>
<br>
<br>
<br>
On 30 April 2018 at 19:40, Ron Catterall <<a href="mailto:ron@catterall.net">ron@catterall.net</a> <mailto:<a href="mailto:ron@catterall.net">ron@catterall.net</a>> > wrote:<br>
<br>
try:<br>
<br>
xmlns="<a href="http://docbook.org/ns/docbook" rel="noreferrer" target="_blank">http://docbook.org/ns/<wbr>docbook</a>" version="5.1" (not 5.0)<br>
<br>
is this a name space confusion ?<br>
<br>
docbook-xsl-1.79.2 gets the name space version.<br>
<br>
Ron<br>
<br>
<br>
<br>
<br>
<br>
On 04/30/2018 01:29 PM, Stephen Taylor wrote:<br>
<br>
I'm rendering a PDF from DocBook 5 XML generated by Pandoc from Markdown source. <br>
<br>
<br>
<br>
The Pandoc output begins:<br>
<br>
<br>
<br>
<?xml version="1.0" encoding="utf-8" ?><br>
<br>
<!DOCTYPE article><br>
<br>
<article<br>
<br>
xmlns="<a href="http://docbook.org/ns/docbook" rel="noreferrer" target="_blank">http://docbook.org/ns/<wbr>docbook</a>" version="5.0"<br>
<br>
xmlns:xlink="<a href="http://www.w3.org/1999/xlink" rel="noreferrer" target="_blank">http://www.w3.<wbr>org/1999/xlink</a>" ><br>
<br>
<br>
<br>
XEP aborts with a validation error on the XML, complaining <br>
<br>
<br>
<br>
line 1: Incorrect top element - should be 'root'<br>
<br>
<br>
<br>
There is an easy workaround: remove the line:<br>
<br>
<br>
<br>
xmlns="<a href="http://docbook.org/ns/docbook" rel="noreferrer" target="_blank">http://docbook.org/ns/<wbr>docbook</a>" version="5.0"<br>
<br>
<br>
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?<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
Stephen Taylor | Librarian | Kx | +44 7713 400852 | <a href="mailto:stephen@kx.com">stephen@kx.com</a> <mailto:<a href="mailto:stephen@kx.com">stephen@kx.com</a>> <br>
<br>
<br>
<br>
______________________________<wbr>_________________<br>
(*) To unsubscribe, please visit <a href="http://lists.renderx.com/mailman/options/xep-support" rel="noreferrer" target="_blank">http://lists.renderx.com/<wbr>mailman/options/xep-support</a><br>
(*) By using the Service, you expressly agree to these Terms of Service <a href="http://w" rel="noreferrer" target="_blank">http://w</a><br>
<a href="http://ww.renderx.com/terms-of-service.html" rel="noreferrer" target="_blank">ww.renderx.com/terms-of-<wbr>service.html</a> <<a href="http://ww.renderx.com/terms-of-service.html" rel="noreferrer" target="_blank">http://ww.renderx.com/terms-<wbr>of-service.html</a>> <br>
<br>
<br>
<br>
<br>
<br>
-- <br>
Ron Catterall<br>
<a href="mailto:ron@catterall.net">ron@catterall.net</a> <mailto:<a href="mailto:ron@catterall.net">ron@catterall.net</a>> <br>
<br>
<br>
<br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <<a href="http://lists.renderx.com/pipermail/xep-support/attachments/20180430/6ad5151d/attachment-0001.html" rel="noreferrer" target="_blank">http://lists.renderx.com/<wbr>pipermail/xep-support/<wbr>attachments/20180430/6ad5151d/<wbr>attachment-0001.html</a>><br>
<br>
------------------------------<br>
<br>
Subject: Digest Footer<br>
<br>
______________________________<wbr>_________________<br>
Xep-support mailing list<br>
<a href="mailto:Xep-support@renderx.com">Xep-support@renderx.com</a><br>
<a href="http://lists.renderx.com/mailman/listinfo/xep-support" rel="noreferrer" target="_blank">http://lists.renderx.com/<wbr>mailman/listinfo/xep-support</a><br>
<br>
<br>
------------------------------<br>
<br>
End of Xep-support Digest, Vol 86, Issue 1<br>
******************************<wbr>************<br>
</blockquote></div><br></div>