From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Abrahamsen Subject: Re: the "right way" to build OMPL export and import Date: Fri, 26 Apr 2013 21:51:37 -0700 Message-ID: <878v44podi.fsf@ericabrahamsen.net> References: <87y5c5ou7h.fsf@ericabrahamsen.net> <87obd155dk.fsf@gmail.com> <87haitorrk.fsf@ericabrahamsen.net> <87hais6hta.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:45633) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UVx0s-0006Hs-Nc for emacs-orgmode@gnu.org; Sat, 27 Apr 2013 00:45:31 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UVx0r-0006un-HQ for emacs-orgmode@gnu.org; Sat, 27 Apr 2013 00:45:30 -0400 Received: from plane.gmane.org ([80.91.229.3]:41958) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UVx0r-0006uf-B6 for emacs-orgmode@gnu.org; Sat, 27 Apr 2013 00:45:29 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1UVx0q-0001gS-4i for emacs-orgmode@gnu.org; Sat, 27 Apr 2013 06:45:28 +0200 Received: from 63.226.249.211 ([63.226.249.211]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 27 Apr 2013 06:45:28 +0200 Received: from eric by 63.226.249.211 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 27 Apr 2013 06:45:28 +0200 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Nicolas Goaziou writes: > Eric Abrahamsen writes: > >> Would you suggest an export backend that only handles headlines (other >> elements are a no-op)? I suppose you could just write org-opml-headline >> to read properties and return XML chunks, and then you wouldn't have to >> use `org-element-parse-buffer' at all. > > I don't know well OMPL format, but IIRC, it needs an inner-template > (which would handle , , etc.), a headline transcoder, and > a couple of objects transcoders (e.g., for entities) in order to > properly export text attribute. > > Anyway, you don't need to use `org-element-parse-buffer' at all. Great, thanks for the tips. Sorry if I hijacked the thread a bit, anyway should be useful to the OP...