From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: the "right way" to build OMPL export and import Date: Sat, 27 Apr 2013 00:36:01 +0200 Message-ID: <87hais6hta.fsf@gmail.com> References: <87y5c5ou7h.fsf@ericabrahamsen.net> <87obd155dk.fsf@gmail.com> <87haitorrk.fsf@ericabrahamsen.net> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:56788) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UVrFN-0003x6-HY for emacs-orgmode@gnu.org; Fri, 26 Apr 2013 18:36:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UVrFM-0001kr-Jx for emacs-orgmode@gnu.org; Fri, 26 Apr 2013 18:36:05 -0400 Received: from mail-wg0-x22b.google.com ([2a00:1450:400c:c00::22b]:38690) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UVrFM-0001ju-E5 for emacs-orgmode@gnu.org; Fri, 26 Apr 2013 18:36:04 -0400 Received: by mail-wg0-f43.google.com with SMTP id c11so2410164wgh.34 for ; Fri, 26 Apr 2013 15:36:03 -0700 (PDT) In-Reply-To: <87haitorrk.fsf@ericabrahamsen.net> (Eric Abrahamsen's message of "Fri, 26 Apr 2013 15:23:43 -0700") 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: Eric Abrahamsen Cc: emacs-orgmode@gnu.org 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. Regards, -- Nicolas Goaziou