[NTG-context] E-books and XML.

Hans Hagen pragma at wxs.nl
Wed Aug 27 11:05:58 CEST 2014


On 8/27/2014 9:02 AM, Henning Hraban Ramm wrote:
>
> Am 2014-08-26 um 23:29 schrieb Hans Hagen <pragma at wxs.nl>:
>
>> On 8/26/2014 7:08 PM, Henning Hraban Ramm wrote:
>>
>>> Creating ePub from ConTeXt is still tedious - you need to tag everything (even paragraphs) with \start/\stop, the resulting export.xml is still missing a root node if you use project structure (components), and you need to tinker a lot with the results, since even available information like title is not written to the relevant ePub files.
>>
>> rootnode .. in what sense?
>
> Sorry Hans, I complained about that several times already:
>
> If I have a project structure, i.e. a product with components, export.xml starts like
>
> “““
> <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
>
> <!-- input filename   : prd_hraban        -->
> <!-- processing date  : Tue Aug 26 12:55:41 2014 -->
> <!-- context version  : 2014.08.19 11:57  -->
> <!-- exporter version : 0.31              -->
>
> <division detail="frontpart">
>   <metadata>
> “““
>
> And since there are several <division>s or other top nodes, Saxon rejects the file because it’s missing a root node.
> <metadata> is always put into the first node of the file (that should be the root node).
>
> Only with a single TeX file, I get something like
>
> “““
> <?xml version='1.0' encoding='UTF-8' standalone='yes' ?>
>
> <!-- input filename   : solo              -->
> <!-- processing date  : Wed Mar 12 11:06:58 2014 -->
> <!-- context version  : 2014.03.07 11:42  -->
> <!-- exporter version : 0.30              -->
>
>   <document language="en" file="solo" date="Wed Mar 12 11:06:58 2014" context="2014.03.07 11:42" version="0.30" xmlns:m="http://www.w3.org/1998/Math/MathML">
>   <metadata>
> “““
>
> I.e. the root node <document> is missing.

hm, can you make a small example?

Hans

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
     tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
                                              | www.pragma-pod.nl
-----------------------------------------------------------------


More information about the ntg-context mailing list