![](https://secure.gravatar.com/avatar/49e63acb01f2ca80efce7eed08310ce8.jpg?s=120&d=mm&r=g)
Paul Tremblay wrote:
I've been looking over some articles published on context and XML, nameely http://www.pragma-ade.com/show-mag-9.htm.
According to this article, there is a Relax schema for an XML version of context. The namespace is 'http://www.pragma-ade.com/rlg/foxet.rng'.
This implies that the Relax schema can only be used if using FO, or? I was wondering if could directly convert to the XML at the namespace above and then process the resulting document with context.
This would be easier than using the mapping method.
there are several ways to process xml with context and the magazine mentioned just explores a few of them; - here i mostly map xml onto context commands using commands like: \defineXMLenvironment[orderedlist] {\startitemize[n,packed]} {\startitemize} \defineXMLenvironment[unorderedlist] {\startitemize[packed]} {\startitemize} \defineXMLenvironment[item] {\item} {\endgraf} - often we get messy xml, so some clean up is needed on forehand, which we do with either xslt or with scripting - another option is to use foxet and xsl-fo formatted input (texexec --pdf --foxet somefile.fo) but (1) foxet is not yet perfect and (2) fo-based typesetting is suboptimal) The mapping variant discussed in the magazine can be seen as a future xml based layer around the context tex core; a kind xml based typesetting engine so that one can do without tex programming and stick to xml tools (which some prefer) Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------