ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Aditya Mahajan <adityam@umich.edu>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: export
Date: Thu, 23 Sep 2010 11:01:34 -0400 (EDT)	[thread overview]
Message-ID: <alpine.LNX.2.01.1009231055200.26185@ybpnyubfg.ybpnyqbznva> (raw)
In-Reply-To: <4C9B66C7.1060305@wxs.nl>

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.

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.

Aditya

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


  reply	other threads:[~2010-09-23 15:01 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-09-22 10:45 export Hans Hagen
2010-09-22 11:56 ` export Otared Kavian
2010-09-22 12:06   ` export Yury G. Kudryashov
2010-09-22 12:18     ` export Otared Kavian
2010-09-22 12:22       ` export Hans Hagen
2010-09-22 12:25       ` export Alan BRASLAU
2010-09-22 12:29         ` export Andreas Harder
2010-09-22 12:36           ` export Alan BRASLAU
2010-09-22 21:47           ` export Henning Hraban Ramm
2010-09-23 13:55 ` export Jelle Huisman
2010-09-23 14:40   ` export Hans Hagen
2010-09-23 15:01     ` Aditya Mahajan [this message]
2010-09-23 15:12       ` export Hans Hagen
2010-09-23 15:41         ` export Jelle Huisman
2010-09-23 19:30         ` export Steffen Wolfrum
     [not found] <mailman.240.1285157191.4222.ntg-context@ntg.nl>
2010-09-22 23:26 ` export Vyatcheslav Yatskovsky
2010-09-23  6:05   ` export Henning Hraban Ramm
     [not found] <mailman.263.1285229118.4222.ntg-context@ntg.nl>
2010-09-23 13:00 ` export Vyatcheslav Yatskovsky
2010-09-23 13:15   ` export Cedric Mauclair
2010-09-23 17:17     ` export Peter Münster
     [not found] <mailman.269.1285249774.4222.ntg-context@ntg.nl>
2010-09-25 15:45 ` export Vyatcheslav Yatskovsky

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=alpine.LNX.2.01.1009231055200.26185@ybpnyubfg.ybpnyqbznva \
    --to=adityam@umich.edu \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).