[NTG-context] E-books and XML.

Henning Hraban Ramm texml at fiee.net
Thu Aug 28 12:54:22 CEST 2014

Am 2014-08-28 um 14:22 schrieb Hans Hagen <pragma at wxs.nl>:
>> <div class="document xmlns:m-http://www.w3.org/1998/Math/MathML date-Thu Aug 28 14:00:55 2014 author-Henning Hraban Ramm, fiëé visuëlle version-0.31 title-Gestammelte Werke context-2014.08.27 11:51 file-prd_hraban language-de xmlns:xhtml-http://www.w3.org/1999/xhtml">
> that one is already fixed


>>  <div class="division detail-frontpart">
>>   <div class="metadata">
>>    <div class="metavariable name-author">Henning Hraban Ramm, fiëé visuëlle</div>
> those are is okay as a class can have multiple names and the attribute-name prefix can be used for further css detailing ... so we export both xthml old style (using tags, something that browsers understand) and xhtml new style (something that epub devices might be able to handle)

Ok, I don’t care, will continue to use the XML.

Next issue:

I just recognized there’s a problem with references, esp. register:

    <section detail="Titel" location="aut:2">
     <sectiontitle>Erinnerung </sectiontitle>
       <registerpages>         <break/>
<registerpage><link destination="internal(3)" location="aut:3">4</link></registerpage></registerpages>
       <registerentry>Vor meinem inn’ren Auge schweben Namen</registerentry>
       <registerpages>         <break/>
<registerpage><link destination="internal(4)" location="aut:4">4</link></registerpage></registerpages>

(These are title and start of lyrics of a song.)

Beside the inconvenience that there is no node wrapping registerentry and registerpages, the locations don’t match. 
If there are several index entries pointing to the same point (page), as here, they’re continuously numbered, so that it’s no solution to just subtract 1, as I do at the moment to create my ToC.

Maybe the internal location numbers mean something, but I need a working reference; export.xml doesn’t know anything about pages, therefore the destination makes no sense. Doesn’t ConTeXt have some unique internal reference name?

Greetlings, Hraban
https://www.cacert.org (I'm an assurer)

More information about the ntg-context mailing list