From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sebastian Rose Subject: Re: suggestion: "native" orgmode XML export (and import?) Date: Sun, 09 Aug 2009 19:00:55 +0200 Message-ID: <87tz0goraw.fsf@kassiopeya.MSHEIMNETZ> References: <4b11f87e0908060754o7601aeb1uf9b8cebf44c29a24@mail.gmail.com> <1f38ae890908061457m7350ecfdw566e7ce9adc6f06e@mail.gmail.com> <1f38ae890908061458kc3d71fci7f944ae03c2400e@mail.gmail.com> <4b11f87e0908062305ue685293m633213469c47d0e8@mail.gmail.com> <1f38ae890908070213x1fabc9e3o75db945d9f86b2fa@mail.gmail.com> <4b11f87e0908070246rc21ec59k99b0f6ddaac84be3@mail.gmail.com> <87fxc2g8kn.fsf@bzg.ath.cx> <4b11f87e0908081325h6d3ec469id91fcdb739f5a201@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MaBhI-0003an-Gj for emacs-orgmode@gnu.org; Sun, 09 Aug 2009 12:56:40 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MaBhD-0003Nx-Bk for emacs-orgmode@gnu.org; Sun, 09 Aug 2009 12:56:40 -0400 Received: from [199.232.76.173] (port=38950 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MaBhD-0003Ns-9K for emacs-orgmode@gnu.org; Sun, 09 Aug 2009 12:56:35 -0400 Received: from mail.gmx.net ([213.165.64.20]:59691) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1MaBhC-0002Bl-Jt for emacs-orgmode@gnu.org; Sun, 09 Aug 2009 12:56:35 -0400 In-Reply-To: <4b11f87e0908081325h6d3ec469id91fcdb739f5a201@mail.gmail.com> (Ilya Shlyakhter's message of "Sat, 8 Aug 2009 22:25:28 +0200") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Ilya Shlyakhter Cc: Bastien , emacs-orgmode 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 =3D> SAX-parser (e.g.) =3D> what ever you want ??? Sebastian Ilya Shlyakhter 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 > > > > Tasks > Here are the tasks I need to do > > > Buy bread > DONE > fooderrands > > Importance1 > > Deadline070809 > > > > > > > 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 wro= te: >> Ilya Shlyakhter writes: >> >>> That's great, thanks! =C2=A0I 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. =C2=A0But the b= asic >> 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, >> >> -- >> =C2=A0Bastien