[NTG-context] XML as source (was: E-books and XML)

Jan Tosovsky j.tosovsky at email.cz
Wed Aug 27 20:40:42 CEST 2014


On 2014-08-27 Procházka Lukáš Ing. - Pontex s. r. o. wrote:
>
> Which editor(s) (including commercial one(s)) do you usually use to
> create XML source for Ctx? (Under Windows?)

This is IMO the best you can currently get:
http://www.oxygenxml.com/xml_author.html

> - XML input vs. .tex (.cld) source:
> 
> IMHO, when one needs to program parts of Ctx source, it's better to use
> TeX source/language combined with Lua or CLD.
> 
> Or - is it possible to program anyhow in XML source (Lua)?

Most natural way for XML processing is XSLT transformation (kind of functional programming language). 

It is advisable to choose one of standardized vocabulary (DocBook, DITA, TEI) what give you a set of out-of-the-box XSLT stylesheets for common output formats. And in some tools, e.g. Oxygen, you can get additional level of comfort (various schema related functionality boosting your productivity) over using your own XML structure.

In case of DocBook you can get even Context output using this XSLT set:
http://dblatex.sourceforge.net/ (there is a dbcontext part in the download section)

Actually, this is my way of using ConTeXt, but with various MKIV compatibility tweaks. From the same DocBook XML source I am producing epub and also WebHelp (set of HTML pages).
http://docbook.sourceforge.net/release/xsl/current/webhelp/docs/ch01.html

HTH, Jan



More information about the ntg-context mailing list