emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Sebastian Rose <sebastian_rose@gmx.de>
To: Ilya Shlyakhter <ilya_shl@alum.mit.edu>
Cc: Bastien <bastienguerry@googlemail.com>,
	emacs-orgmode <emacs-orgmode@gnu.org>
Subject: Re: suggestion: "native" orgmode XML export (and import?)
Date: Sun, 09 Aug 2009 19:00:55 +0200	[thread overview]
Message-ID: <87tz0goraw.fsf@kassiopeya.MSHEIMNETZ> (raw)
In-Reply-To: <4b11f87e0908081325h6d3ec469id91fcdb739f5a201@mail.gmail.com> (Ilya Shlyakhter's message of "Sat, 8 Aug 2009 22:25:28 +0200")

Hi Ilya,


is XHTML not XML enough?

I use the XHTML to extract snippets and their language, tags, sections,
section IDs...

The XHTML export is able to export each and every information an
Org-file can possibly contain.  All textual content and links, IDs
... are converted to valid X(HT)ML.

As XHTML export is already used a lot, why not put more energy into
improving that existing one (specification), instead of another
exporter?

 XHTML => SAX-parser (e.g.) => what ever you want

???



   Sebastian



Ilya Shlyakhter <ilya_shl@alum.mit.edu> writes:
>> In the meantime, it would be useful to describe what kind of XML output
>> do you want, because "XML" does not really describe anything per se.
>
> I'm looking for XML output that would closely mirror the logical
> structure of the org file, and that would contain all the information
> in the orgfile (since it's easy to ignore the parts you don't need
> during XML processing).  So, something like
>
> <orgfile>
>    <entry>
>       <headline>Tasks</headline>
>       <body>Here are the tasks I need to do</body>
>       <children>
>           <entry>
>              <headline>Buy bread</headline>
>              <todo-status>DONE</todo-status>
>              <tags><tag>food</tag><tag>errands</tag></tags>
>              <properties>
>                  <property><name>Importance</name><value>1</value></property>
>
> <property><name>Deadline</name><value><date><day>07</day><month>08</month><year>09</year></date></value></property>
>              </properties>
>            </entry>
>         </children>
>       </entry>
>    </orgfile>
>
> The details of the XML schema can of course change.   But it should
> let you process org file data without having to parse any elements of
> the org file (ideally, even dates) -- it would all be parsed by
> orgmode's native parsing code and put into XML elements.
>
> If there are questions about how to represent specific org elements in
> XML I can try to write a more detailed spec.
>
> thanks,
>
> ilya
>
>
>
>
> On Sat, Aug 8, 2009 at 7:48 AM, Bastien<bastienguerry@googlemail.com> wrote:
>> Ilya Shlyakhter <ilya_shl@alum.mit.edu> writes:
>>
>>> That's great, thanks!  I should be able to take it from there.
>>> It would be great if at some point this became official, and also
>>> included an XML exporter and specification.
>>
>> FYI, I'll upload a slightly improved version of org-export.el next week,
>> together with documentation on how to write an exporter.  But the basic
>> structure of the parsed buffer is the same, you can use it safely.
>>
>> In the meantime, it would be useful to describe what kind of XML output
>> do you want, because "XML" does not really describe anything per se.
>>
>> Best,
>>
>> --
>>  Bastien

      parent reply	other threads:[~2009-08-09 16:56 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-08-06 14:54 suggestion: "native" orgmode XML export (and import?) Ilya Shlyakhter
     [not found] ` <1f38ae890908061457m7350ecfdw566e7ce9adc6f06e@mail.gmail.com>
2009-08-06 21:58   ` Andrew Stribblehill
     [not found]     ` <4b11f87e0908062305ue685293m633213469c47d0e8@mail.gmail.com>
2009-08-07  9:13       ` Andrew Stribblehill
2009-08-07  9:46         ` Ilya Shlyakhter
2009-08-07 11:44           ` David Bremner
2009-08-08  5:48           ` Bastien
2009-08-08 20:25             ` Ilya Shlyakhter
2009-08-09 13:19               ` B Smith-Mannschott
2009-08-09 14:14                 ` Ilya Shlyakhter
2009-08-09 17:00               ` Sebastian Rose [this message]

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

  List information: https://www.orgmode.org/

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

  git send-email \
    --in-reply-to=87tz0goraw.fsf@kassiopeya.MSHEIMNETZ \
    --to=sebastian_rose@gmx.de \
    --cc=bastienguerry@googlemail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=ilya_shl@alum.mit.edu \
    /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.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

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 read-only IMAP folder(s) and NNTP newsgroup(s).