<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=utf-8"><meta name=Generator content="Microsoft Word 15 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Consolas;
panose-1:2 11 6 9 2 2 4 3 2 4;}
@font-face
{font-family:Verdana;
panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman",serif;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
p
{mso-style-priority:99;
mso-margin-top-alt:auto;
margin-right:0in;
mso-margin-bottom-alt:auto;
margin-left:0in;
font-size:12.0pt;
font-family:"Times New Roman",serif;}
pre
{mso-style-priority:99;
mso-style-link:"HTML Preformatted Char";
margin:0in;
margin-bottom:.0001pt;
font-size:10.0pt;
font-family:"Courier New";}
span.HTMLPreformattedChar
{mso-style-name:"HTML Preformatted Char";
mso-style-priority:99;
mso-style-link:"HTML Preformatted";
font-family:Consolas;}
span.hoenzb
{mso-style-name:hoenzb;}
span.EmailStyle21
{mso-style-type:personal-reply;
font-family:"Calibri",sans-serif;
color:#1F497D;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri",sans-serif;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-US link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'>RenderX does not format pure XML. Nothing does unless you just want to print out the tags.<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'>You are sending to it an XML that starts with <article>.<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'>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).<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'>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.<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'>Kevin Brown<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'>(650) 327-1000 Direct<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'>(650) 328-8008 Fax<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'>(925) 395-1772 Mobile<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'>skype:kbrown01<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'><a href="mailto:kevin@renderx.com"><span style='color:#0563C1'>kevin@renderx.com</span></a><o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'><a href="mailto:sales@renderx.com"><span style='color:#0563C1'>sales@renderx.com</span></a><o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'><a href="http://www.renderx.com/"><span style='color:#0563C1'>http://www.renderx.com</span></a> <o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><b><span style='font-size:11.0pt;font-family:"Calibri",sans-serif'>From:</span></b><span style='font-size:11.0pt;font-family:"Calibri",sans-serif'> Xep-support [mailto:xep-support-bounces@renderx.com] <b>On Behalf Of </b>Stephen Taylor<br><b>Sent:</b> Monday, April 30, 2018 1:06 PM<br><b>To:</b> Ron Catterall <ron@catterall.net><br><b>Cc:</b> XEP Support <xep-support@renderx.com><br><b>Subject:</b> [xep-support] Re: line 1: Incorrect top element - should be 'root'<o:p></o:p></span></p><p class=MsoNormal><o:p> </o:p></p><div><p class=MsoNormal>Sadly, same result. <o:p></o:p></p><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal>Stephen<o:p></o:p></p></div></div><div><p class=MsoNormal><br clear=all><o:p></o:p></p><div><div><div><div><div><div><div><p class=MsoNormal><o:p> </o:p></p><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal><span style='font-size:7.5pt;font-family:"Verdana",sans-serif'>Stephen Taylor | Librarian | <b><span style='color:#3D85C6'>Kx</span></b> | +44 7713 400852 | <a href="mailto:stephen@kx.com" target="_blank">stephen@kx.com</a></span><o:p></o:p></p></div></div></div></div></div></div></div></div><p class=MsoNormal><o:p> </o:p></p><div><p class=MsoNormal>On 30 April 2018 at 19:40, Ron Catterall <<a href="mailto:ron@catterall.net" target="_blank">ron@catterall.net</a>> wrote:<o:p></o:p></p><blockquote style='border:none;border-left:solid #CCCCCC 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-right:0in'><div><p>try:<o:p></o:p></p><div><p class=MsoNormal><span style='font-family:"Courier New"'> xmlns="<a href="http://docbook.org/ns/docbook" target="_blank">http://docbook.org/ns/docbook</a>" version="5.1" (not 5.0)<br><br>is this a name space confusion ?</span><o:p></o:p></p><p> docbook-xsl-1.79.2 gets the name space version.<o:p></o:p></p><p>Ron<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p></div><div><div><p class=MsoNormal><o:p> </o:p></p><div><p class=MsoNormal>On 04/30/2018 01:29 PM, Stephen Taylor wrote:<o:p></o:p></p></div></div></div><blockquote style='margin-top:5.0pt;margin-bottom:5.0pt'><div><div><div><p class=MsoNormal>I'm rendering a PDF from DocBook 5 XML generated by Pandoc from Markdown source. <o:p></o:p></p><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal>The Pandoc output begins:<o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><div><div><p class=MsoNormal><span style='font-family:"Courier New"'><?xml version="1.0" encoding="utf-8" ?></span><o:p></o:p></p></div><div><p class=MsoNormal><span style='font-family:"Courier New"'><!DOCTYPE article></span><o:p></o:p></p></div><div><p class=MsoNormal><span style='font-family:"Courier New"'><article</span><o:p></o:p></p></div><div><p class=MsoNormal><span style='font-family:"Courier New"'> xmlns="<a href="http://docbook.org/ns/docbook" target="_blank">http://docbook.org/ns/docbook</a>" version="5.0"</span><o:p></o:p></p></div><div><p class=MsoNormal><span style='font-family:"Courier New"'> xmlns:xlink="<a href="http://www.w3.org/1999/xlink" target="_blank">http://www.w3.org/1999/xlink</a>" ></span><o:p></o:p></p></div></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal>XEP aborts with a validation error on the XML, complaining <o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal><span style='font-family:"Courier New"'>line 1: Incorrect top element - should be 'root'</span><o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal>There is an easy workaround: remove the line:<o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><div><p class=MsoNormal style='background:white'><span style='font-family:"Courier New";color:#222222'> xmlns="<a href="http://docbook.org/ns/docbook" target="_blank">http://docbook.org/ns/docbook</a>" version="5.0"</span><span style='font-family:"Arial",sans-serif;color:#222222'><o:p></o:p></span></p></div><p class=MsoNormal><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?<o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><div><div><div><div><div><div><p class=MsoNormal><o:p> </o:p></p><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal><span style='font-size:7.5pt;font-family:"Verdana",sans-serif'>Stephen Taylor | Librarian | <b><span style='color:#3D85C6'>Kx</span></b> | +44 7713 400852 | <a href="mailto:stephen@kx.com" target="_blank">stephen@kx.com</a></span><o:p></o:p></p></div></div></div></div></div></div></div></div></div></div><p class=MsoNormal style='margin-bottom:12.0pt'><o:p> </o:p></p></div></div><pre>_______________________________________________<o:p></o:p></pre><pre>(*) To unsubscribe, please visit <a href="http://lists.renderx.com/mailman/options/xep-support" target="_blank">http://lists.renderx.com/mailman/options/xep-support</a><o:p></o:p></pre><pre>(*) By using the Service, you expressly agree to these Terms of Service <a href="http://w" target="_blank">http://w</a><o:p></o:p></pre><pre><a href="http://ww.renderx.com/terms-of-service.html" target="_blank">ww.renderx.com/terms-of-service.html</a><o:p></o:p></pre></blockquote><p class=MsoNormal><span style='color:#888888'><br><br><span class=hoenzb><o:p></o:p></span></span></p><pre><span style='color:#888888'>-- <o:p></o:p></span></pre><pre><span style='color:#888888'>Ron Catterall<o:p></o:p></span></pre><pre><span style='color:#888888'><a href="mailto:ron@catterall.net" target="_blank">ron@catterall.net</a></span><o:p></o:p></pre></div></blockquote></div><p class=MsoNormal><o:p> </o:p></p></div></div></body></html>