From mboxrd@z Thu Jan 1 00:00:00 1970 From: Baoqiu Cui Subject: Re: Custom docbook stylesheets. Date: Thu, 13 May 2010 12:06:22 -0700 Message-ID: References: <9C2D1FA8-9C92-4B8A-8349-A5B767658FC7@gmail.com> <013716F6-30B8-4755-B276-DF8CED591928@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from [140.186.70.92] (port=35882 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OCdjw-00053D-Q2 for emacs-orgmode@gnu.org; Thu, 13 May 2010 15:06:37 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OCdjv-0000lb-Oj for emacs-orgmode@gnu.org; Thu, 13 May 2010 15:06:36 -0400 Received: from lo.gmane.org ([80.91.229.12]:37716) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OCdjv-0000lN-BZ for emacs-orgmode@gnu.org; Thu, 13 May 2010 15:06:35 -0400 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1OCdjt-0006Wj-7O for emacs-orgmode@gnu.org; Thu, 13 May 2010 21:06:33 +0200 Received: from nat-dip6.cfw-a-gci.corp.yahoo.com ([209.131.62.115]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 13 May 2010 21:06:33 +0200 Received: from cbaoqiu by nat-dip6.cfw-a-gci.corp.yahoo.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 13 May 2010 21:06:33 +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: emacs-orgmode@gnu.org Sorry for the late reply, Dale and Carsten. Yes, I think this patch should be a applied, as it makes things more flexible. (Thanks, Dale!) The only thing missing in the patch is the docstrings of variables org-export-docbook-xslt-proc-command and org-export-docbook-xsl-fo-proc-command. I'll work on that and provide a patch soon. Thanks, Baoqiu Carsten Dominik writes: > Hi > > Somehow I do net seem to have a patch relating to this thread. Can you > please send it again? Baoqiu, you agree that this should be applied? > > - Carsten > > On May 3, 2010, at 9:25 PM, Dale P. Smith wrote: > >> Baoqiu Cui writes: >> >>> Hi Dale, >>> >>> Dale Smith writes: >>> >>>> Dale Smith writes: >>>> >>>>>>>> The current org-export-docbook-xslt-proc-command is a format >>>>>>>> string, >>>>>>>> with a fixed order of arguments (the fo filename and then the >>>>>>>> input >>>>>>>> docbook filname). Thats probably good enough for most (all?) >>>>>>>> xslt >>>>>>>> processors, but things may be more limited when it comes to also >>>>>>>> specifying the stylesheet. Do we need to have some kind of >>>>>>>> special >>>>>>>> markers in the format string for where the different options go? >>>>>>>> Something like $i $o and $s (for in, out, and stysheet)? >>>>>> >>>>>> I thought about doing something similar to make the commands >>>>>> easier to >>>>>> set, but stopped pursuing that after seeing the format string >>>>>> style >>>>>> worked fine. I am not sure if any other Emacs modes/packages have >>>>>> done >>>>>> something like this, i.e. using (semi)named arguments. >>>>> >>>>> Well, it took me a while, but it found it. It's the format-spec >>>>> function. (Actually, http://edward.oconnor.cx/2009/06/format-spec >>>>> clued me in.) >>>>> >>>>> I'll have a go at it today and see if I can send in a patch. >>>> >>>> Ok. This works for me. Docs are not updated. That would push me >>>> over the 10 line limit. ;^) >>> >>> Thanks for working on this patch, which looks very good to me! Yes, >>> I >>> think format-spec is the right way to go, and it does make the >>> command >>> format more flexible. >> >> This didn't seem to make it into org-mode. Any chance it could be >> added? >> >> Thanks, >> -Dale >> >> -- >> Dale P. Smith >> dales@vtiinstruments.com >> 216-447-4059 x2018 >> 216-447-8951 FAX >> >> >> _______________________________________________ >> Emacs-orgmode mailing list >> Please use `Reply All' to send replies to the list. >> Emacs-orgmode@gnu.org >> http://lists.gnu.org/mailman/listinfo/emacs-orgmode > > - Carsten > > > > > _______________________________________________ > Emacs-orgmode mailing list > Please use `Reply All' to send replies to the list. > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode > -- Baoqiu