From mboxrd@z Thu Jan 1 00:00:00 1970 From: Baoqiu Cui Subject: Re: Custom docbook stylesheets. Date: Thu, 13 May 2010 12:45:29 -0700 Message-ID: References: <9C2D1FA8-9C92-4B8A-8349-A5B767658FC7@gmail.com> <013716F6-30B8-4755-B276-DF8CED591928@gmail.com> <6FA9FAF1-AF5A-4FBF-B831-65567956B38D@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from [140.186.70.92] (port=44968 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OCePG-0001Tp-JB for emacs-orgmode@gnu.org; Thu, 13 May 2010 15:49:19 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OCeLl-000602-V1 for emacs-orgmode@gnu.org; Thu, 13 May 2010 15:45:43 -0400 Received: from lo.gmane.org ([80.91.229.12]:33663) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OCeLl-0005zq-LR for emacs-orgmode@gnu.org; Thu, 13 May 2010 15:45:41 -0400 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1OCeLj-0002qx-Em for emacs-orgmode@gnu.org; Thu, 13 May 2010 21:45:39 +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:45:39 +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:45:39 +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 dsmith@vtiinstruments.com (Dale P. Smith) writes: Hi Dale and Carsten, > Carsten Dominik writes: > >> do I still need to do something with #+XSLT? If yes, could you please >> spell it out for me? > > Ok! > > So now the command to process docbook to whatever is more flexible. > Previously, the the order of input file and output file were fixed, > and the stylesheet was hard-coded into the command. > > The goal of this is to allow for the name of a stylesheet file to be > directly in the org file itself, using #+XSLT (or soemthing else?). I > can see how individual documents could require differnt stylesheets. > > So either the command to process can be in the org file, or the > default command can be modified to use a stylesheet variable, and that > variable can be in the org file. Before I change the document for variable `org-export-docbook-xslt-proc-command', let's finalize the design of this first. :-) Currently `org-export-docbook-xslt-proc-command' contains two format-like specs: "%i" (for the input DocBook XML file) and "%o" (for the output FO file). Values of these two specs will be generated based on the Org file name to be exported. We should add a 3rd spec, "%s", to this variable for the XSLT stylesheet that users would like to use for exporting the Org file. As Dale pointed earlier, users would like to use different stylesheets for different Org files. By default, the value of the stylesheet is set based on a new customizable variable called `org-export-docbook-xslt-stylesheet'. However users can use #+XSLT in each individual Org file to override it. Are you OK with this? Thanks, -- Baoqiu