Re: [NTG-context] Experience with DITA XML or XSL/FO
On 5/23/2014 7:39 PM, Jan Tosovsky wrote:
On 2014-05-22 Mica Semrick wrote:
I've been contemplating making a ConTeXt output or parser for DITA XML and was wondering if anyone has worked with DITA and ConTeXt before? If you have and could offer any advice and/code, that would be most helpful!
What is your real use case? A typical XML based workflow involves XSL-FO -> PDF route using FO processor (Antenna House, XEP, FOP etc).
Which makes all our workflows here non typical -) I never use an FO processor. The xml handler in mkiv is quite efficient and fast.
Anyway, there are several ways. If you are not locked to DITA yet, I would strongly recommend switching to DocBook instead :-) You get similar single source solution with the semantically rich vocabulary that allows you to produce all typical outputs. Moreover, there is a special project dedicated to DocBook to ConTeXt conversion 'dbcontext' http://dblatex.sourceforge.net/releases/download.html although I had to tweak it for my recent project to ensure compatibility with current ConTeXt version (MkIV).
This XSLT way is most natural for XML processing, but I understand that writing XSLT transformation is discouraging for many people.
it depends ... context mkiv can load an xml tree and you can use path expressions similar to what xslt does but saving the intermediate step 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 -----------------------------------------------------------------
participants (1)
-
Hans Hagen