[xep-support] Re: Xep-support Digest, Vol 86, Issue 1

From: Kevin Brown <kevin_at_ADDRESS_REMOVED>
Date: Tue May 01 2018 - 14:44:21 PDT

In other words:

 

<article xmlns=ā€http://docbook.org/ns/docbook%e2%80%9d>

 

Does not match:

<article>

 

Kevin

 

From: Xep-support [mailto:xep-support-bounces@renderx.com] On Behalf Of Stephen Taylor
Sent: Tuesday, May 01, 2018 2:14 PM
To: XEP Support <xep-support@renderx.com>
Subject: [xep-support] Re: Xep-support Digest, Vol 86, Issue 1

 

Sorry I did not make myself more clear.

 

x4u renders my XML and XSL as a PDF ā€“ 70 pages of beautiful typography ā€“ provided I remove the xmlns attribute from the XML root element, which is, as you note, article.

 

The xmlns attribute was written by Pandoc <http://pandoc.org> as DocBook 5 <http://docbook.org> 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 x4u would report the attribute as a validation error in the XML.

 

My question stands: is there a better solution to this than removing the attribute?

 

 

 

Stephen Taylor | Librarian | Kx | +44 7713 400852 | stephen@kx.com <mailto:stephen@kx.com>

 

On 1 May 2018 at 20:00, <xep-support-request@renderx.com <mailto:xep-support-request@renderx.com> > wrote:

Send Xep-support mailing list submissions to
        xep-support@renderx.com <mailto:xep-support@renderx.com>

To subscribe or unsubscribe via the World Wide Web, visit
        http://lists.renderx.com/mailman/listinfo/xep-support
or, via email, send a message with subject or body 'help' to
        xep-support-request@renderx.com <mailto:xep-support-request@renderx.com>

You can reach the person managing the list at
        xep-support-owner@renderx.com <mailto:xep-support-owner@renderx.com>

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Xep-support digest..."

Today's Topics:

   1. Re: line 1: Incorrect top element - should be 'root'
      (Stephen Taylor)
   2. Re: line 1: Incorrect top element - should be 'root' (Kevin Brown)

----------------------------------------------------------------------

Message: 1
Date: Mon, 30 Apr 2018 21:06:29 +0100
From: Stephen Taylor <stephen@kx.com <mailto:stephen@kx.com> >
To: Ron Catterall <ron@catterall.net <mailto:ron@catterall.net> >
Cc: XEP Support <xep-support@renderx.com <mailto:xep-support@renderx.com> >
Subject: [xep-support] Re: line 1: Incorrect top element - should be
        'root'
Message-ID:
        <CADnJHVgg_fFCTiKV5PPQYxTy+sWi3MBxoLajz2_Edx=4Sk14Hw@mail.gmail.com <mailto:4Sk14Hw@mail.gmail.com> >
Content-Type: text/plain; charset="utf-8"

Sadly, same result.

Stephen

Stephen Taylor | Librarian | *Kx* | +44 7713 400852 | stephen@kx.com <mailto:stephen@kx.com>

On 30 April 2018 at 19:40, Ron Catterall <ron@catterall.net <mailto: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 <mailto: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 <mailto:Catterallron@catterall.net>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.renderx.com/pipermail/xep-support/attachments/20180430/7639cbc0/attachment-0001.html>

------------------------------

Message: 2
Date: Mon, 30 Apr 2018 13:26:31 -0700
From: "Kevin Brown" <kevin@renderx.com <mailto:kevin@renderx.com> >
To: "'RenderX Community Support List'" <xep-support@renderx.com <mailto:xep-support@renderx.com> >,
        "'Ron Catterall'" <ron@catterall.net <mailto:ron@catterall.net> >
Subject: [xep-support] Re: line 1: Incorrect top element - should be
        'root'
Message-ID: <088b01d3e0c1$87692040$963b60c0$@renderx.com <http://renderx.com> >
Content-Type: text/plain; charset="utf-8"

RenderX does not format pure XML. Nothing does unless you just want to print out the tags.

You are sending to it an XML that starts with <article>.

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).

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.

Kevin Brown

(650) 327-1000 Direct

(650) 328-8008 Fax

(925) 395-1772 Mobile

skype:kbrown01

 <mailto:kevin@renderx.com <mailto:kevin@renderx.com> > kevin@renderx.com <mailto:kevin@renderx.com>

 <mailto:sales@renderx.com <mailto:sales@renderx.com> > sales@renderx.com <mailto:sales@renderx.com>

 <http://www.renderx.com/> http://www.renderx.com

From: Xep-support [mailto:xep-support-bounces@renderx.com <mailto:xep-support-bounces@renderx.com> ] On Behalf Of Stephen Taylor
Sent: Monday, April 30, 2018 1:06 PM
To: Ron Catterall <ron@catterall.net <mailto:ron@catterall.net> >
Cc: XEP Support <xep-support@renderx.com <mailto:xep-support@renderx.com> >
Subject: [xep-support] Re: line 1: Incorrect top element - should be 'root'

Sadly, same result.

Stephen

Stephen Taylor | Librarian | Kx | +44 7713 400852 | stephen@kx.com <mailto:stephen@kx.com> <mailto:stephen@kx.com <mailto:stephen@kx.com> >

On 30 April 2018 at 19:40, Ron Catterall <ron@catterall.net <mailto:ron@catterall.net> <mailto:ron@catterall.net <mailto: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 <mailto:stephen@kx.com> <mailto:stephen@kx.com <mailto: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://w
ww.renderx.com/terms-of-service.html <http://ww.renderx.com/terms-of-service.html> <http://ww.renderx.com/terms-of-service.html>

-- 
Ron Catterall
ron@catterall.net <mailto:ron@catterall.net>  <mailto:ron@catterall.net <mailto:ron@catterall.net> > 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.renderx.com/pipermail/xep-support/attachments/20180430/6ad5151d/attachment-0001.html>
------------------------------
Subject: Digest Footer
_______________________________________________
Xep-support mailing list
Xep-support@renderx.com <mailto:Xep-support@renderx.com> 
http://lists.renderx.com/mailman/listinfo/xep-support
------------------------------
End of Xep-support Digest, Vol 86, Issue 1
******************************************
 

_______________________________________________
(*) 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 Tue May 1 14:42:50 2018

This archive was generated by hypermail 2.1.8 : Tue May 01 2018 - 14:42:55 PDT