<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: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;}
span.EmailStyle17
{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'>In other words:<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'><article xmlns=”<a href="http://docbook.org/ns/docbook">http://docbook.org/ns/docbook</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'>Does not match:<br><br><article><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<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> Tuesday, May 01, 2018 2:14 PM<br><b>To:</b> XEP Support <xep-support@renderx.com><br><b>Subject:</b> [xep-support] Re: Xep-support Digest, Vol 86, Issue 1<o:p></o:p></span></p><p class=MsoNormal><o:p> </o:p></p><div><p class=MsoNormal>Sorry I did not make myself more clear. <o:p></o:p></p><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal><span style='font-family:"Courier New"'>x4u</span> renders my XML and XSL as a PDF – 70 pages of beautiful typography – <b>provided</b> I remove the <span style='font-family:"Courier New"'>xmlns</span><span style='font-family:"Arial",sans-serif'> attribute from the XML root element, which is, as you note, </span><span style='font-family:"Courier New"'>article</span><span style='font-family:"Arial",sans-serif'>. </span><o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal><span style='font-family:"Arial",sans-serif'>The </span><span style='font-family:"Courier New"'>xmlns</span><span style='font-family:"Arial",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 </span><span style='font-family:"Courier New"'>x4u</span><span style='font-family:"Arial",sans-serif'> would report the attribute as a validation error in the XML. </span><o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal><span style='font-family:"Arial",sans-serif'>My question stands: is there a better solution to this than removing the attribute? </span><o:p></o:p></p></div><div><p class=MsoNormal><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 1 May 2018 at 20:00, <<a href="mailto:xep-support-request@renderx.com" target="_blank">xep-support-request@renderx.com</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'><p class=MsoNormal>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" target="_blank">http://lists.renderx.com/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.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>----------------------------------------------------------------------<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+sWi3MBxoLajz2_Edx=<a href="mailto:4Sk14Hw@mail.gmail.com">4Sk14Hw@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" target="_blank">http://docbook.org/ns/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" target="_blank">http://docbook.org/ns/docbook</a>" version="5.0"<br>> xmlns:xlink="<a href="http://www.w3.org/1999/xlink" target="_blank">http://www.w3.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" target="_blank">http://docbook.org/ns/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>> _______________________________________________<br>> (*) 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><br>> (*) By using the Service, you expressly agree to these Terms of Service <a href="http://www.renderx.com/terms-of-service.html" target="_blank">http://www.renderx.com/terms-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" target="_blank">http://lists.renderx.com/pipermail/xep-support/attachments/20180430/7639cbc0/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$963b60c0$@<a href="http://renderx.com" 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/" target="_blank">http://www.renderx.com/</a>> <a href="http://www.renderx.com" 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@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" target="_blank">http://docbook.org/ns/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" target="_blank">http://docbook.org/ns/docbook</a>" version="5.0"<br><br> xmlns:xlink="<a href="http://www.w3.org/1999/xlink" target="_blank">http://www.w3.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" target="_blank">http://docbook.org/ns/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>_______________________________________________<br>(*) 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><br>(*) By using the Service, you expressly agree to these Terms of Service <a href="http://w" target="_blank">http://w</a><br><a href="http://ww.renderx.com/terms-of-service.html" target="_blank">ww.renderx.com/terms-of-service.html</a> <<a href="http://ww.renderx.com/terms-of-service.html" target="_blank">http://ww.renderx.com/terms-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" target="_blank">http://lists.renderx.com/pipermail/xep-support/attachments/20180430/6ad5151d/attachment-0001.html</a>><br><br>------------------------------<br><br>Subject: Digest Footer<br><br>_______________________________________________<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" target="_blank">http://lists.renderx.com/mailman/listinfo/xep-support</a><br><br><br>------------------------------<br><br>End of Xep-support Digest, Vol 86, Issue 1<br>******************************************<o:p></o:p></p></blockquote></div><p class=MsoNormal><o:p> </o:p></p></div></div></body></html>