<div dir="ltr">Thanks for the nudge. Declaring the default namespace (as <font face="monospace, monospace">db</font>) and prefixing all the selectors with <font face="monospace, monospace">db:</font> seems to be what I should have done. <div><br></div><div>OTOH, still get the error message, so now using <font face="monospace, monospace">xsltproc</font> and passing the FO it writes along to XEP to format. </div><div><br></div><div>Not, in fact, using the DocBook XSLs. I get Pandoc to convert Markdown to DocBook 5 XML to get some semantic markup, and then my own XSL for the FO. (Haven’t been doing enough typesetting in recent years to warrant keeping DocBook in my stack.) </div><div><br></div><div>If anyone’s interested, attached sample XML, XSL, FO and PDF.</div><div><br><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 3 May 2018 at 19:23,  <span dir="ltr"><<a href="mailto:xep-support-request@renderx.com" target="_blank">xep-support-request@renderx.com</a>></span> wrote:<br><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Date: Thu, 3 May 2018 11:23:44 -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>
Subject: [xep-support] Re: line 1: Incorrect top element - should be<br>
        'root'<br>
Message-ID: <01a201d3e30b$df378720$<wbr>9da69560$@<a href="http://renderx.com" rel="noreferrer" target="_blank">renderx.com</a>><br>
Content-Type: text/plain; charset="utf-8"<br>
<br>
After reading up a bit on Docbook, I have been away for a bit ? it leads me to the question:<br>
<br>
<br>
<br>
Which Docbook XSLs are you using to process the input? Are you using the v5 Docbook XSLs?<br>
<br>
<br>
<br>
In reading the Docbook 5 documentation, it appears that the input is now in a default namespace and that is xmlns=<a href="http://docbook.org/ns/docbook" rel="noreferrer" target="_blank">http://docbook.org/ns/<wbr>docbook</a>.<br>
<br>
So the v5 Docbook XSLs should account for this.<br>
<br>
Which XSLs are you using?<br>
<br>
<br>
<br>
Kevin<br></blockquote></div></div></div></div>