From mboxrd@z Thu Jan 1 00:00:00 1970 From: Baoqiu Cui Subject: Re: Custom docbook stylesheets. Date: Wed, 27 May 2009 11:59:23 -0700 Message-ID: References: <9C2D1FA8-9C92-4B8A-8349-A5B767658FC7@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1M9OLp-0004W5-GU for emacs-orgmode@gnu.org; Wed, 27 May 2009 14:59:45 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1M9OLl-0004TJ-2n for emacs-orgmode@gnu.org; Wed, 27 May 2009 14:59:45 -0400 Received: from [199.232.76.173] (port=49241 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M9OLk-0004TB-T4 for emacs-orgmode@gnu.org; Wed, 27 May 2009 14:59:40 -0400 Received: from main.gmane.org ([80.91.229.2]:57455 helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1M9OLk-0005uu-4j for emacs-orgmode@gnu.org; Wed, 27 May 2009 14:59:40 -0400 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1M9OLg-0008H0-W3 for emacs-orgmode@gnu.org; Wed, 27 May 2009 18:59:36 +0000 Received: from fa0-1-wlan-rtr.corp.yahoo.com ([216.145.49.5]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 27 May 2009 18:59:36 +0000 Received: from cbaoqiu by fa0-1-wlan-rtr.corp.yahoo.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 27 May 2009 18:59:36 +0000 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 Carsten Dominik writes: > On May 27, 2009, at 2:13 AM, Dale Smith wrote: > >> Greetings List, >> >> I was suprised an pleased to discover that the docbook exporter has >> the ability to apply the stylesheets to transform to fo and to also >> process that to pdf. Somehing I'd like to see is a document specific >> way to specify the stylesheet. I tried setting >> org-export-docbook-xslt-proc-command in a "Local Variables:" section, >> but it seems the variable is being used from a different buffer. >> >> So, what do you think about some kind of document property to >> overrride a global setting? Thanks for the suggestion, Dale. I think this is a very good idea, and I will try to make the changes to support local variables overriding the global settings. Maybe we can have a separate variable called org-export-docbook-stylesheet to make it easier to set in each file and flexible to use (in org-export-docbook-xslt-proc-command, etc.). What do you think? >> 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. > Maybe we could have something like #+XSLT: or so to configure buffer- > local setting for this variable...... Thanks for the suggestion, Carsten! It's a little hard for me to decide which way is better to specify the stylesheet: "#+XSLT" or "Local Variables:". Maybe "#+XSLT" is better? I don't see many local variables being used in Org mode... Please advise. > About the format, this is for Baoqiu to decide. I'll do some research on this. :-) Thanks, Baoqiu