Am 23.09.2010 um 17:12 schrieb Hans Hagen:
On 23-9-2010 5:01, Aditya Mahajan wrote:
On Thu, 23 Sep 2010, Hans Hagen wrote:
On 23-9-2010 3:55, Jelle Huisman wrote:
On 22/09/10 06:45, Hans Hagen wrote:
\setupbackeds[export=yes]
You will also get a file called <jobname>.export which represents the document in xml format. You can postprocess such an export to for instance html. It's still somewhat experimental but also fun.
Hi Hans,
Thanks! this is a useful step in the direction of ctx2odt support. Are you planning to provide (basic) (x)html export too? (I'm thinking about this workflow: write in ctx -> make pdf/make html -> open html in OpenOffice -> save as odt/doc.)
As xhtml is just xml converted to other tags, I suppose that at some day there will be additional converters. I would only come up with one in the perspective of a project as I have no need for it.
There cannot be a universal one-to-one mapping between context generate xml and xhtml. For example, in a book, I may want \chapter to map to <h1> while in an article, I may want \section to map to <h1>. Nonetheless, having a specialized xml to xhtml converter should not be too difficult (using the verbose XSLT transformations). Targetting html5 is another option.
indeed
On the otherhand, a ConTeXt module that can read context generated xml will be nice... then the context xml can be the target input form for an automated tool trying to generate context source.
it's on my list to make such a roundtrip style
=:o) st.