From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: Re: Custom docbook stylesheets. Date: Thu, 13 May 2010 20:19:30 +0200 Message-ID: <6FA9FAF1-AF5A-4FBF-B831-65567956B38D@gmail.com> References: <9C2D1FA8-9C92-4B8A-8349-A5B767658FC7@gmail.com> <013716F6-30B8-4755-B276-DF8CED591928@gmail.com> Mime-Version: 1.0 (Apple Message framework v936) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Return-path: Received: from [140.186.70.92] (port=44622 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OCd0W-0000P6-Ds for emacs-orgmode@gnu.org; Thu, 13 May 2010 14:19:41 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OCd0R-0002qV-Gk for emacs-orgmode@gnu.org; Thu, 13 May 2010 14:19:40 -0400 Received: from mail-ew0-f216.google.com ([209.85.219.216]:51607) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OCd0R-0002qJ-94 for emacs-orgmode@gnu.org; Thu, 13 May 2010 14:19:35 -0400 Received: by ewy8 with SMTP id 8so638238ewy.8 for ; Thu, 13 May 2010 11:19:34 -0700 (PDT) In-Reply-To: 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: "Dale P. Smith" Cc: "emacs-orgmode@gnu.org" , Baoqiu Cui Dale, do I still need to do something with #+XSLT? If yes, could you please spell it out for me? Thanks. - Carsten On May 13, 2010, at 4:11 PM, Dale P. Smith wrote: > Carsten Dominik writes: > >> 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? > > > Here is is. > > diff --git a/lisp/org-docbook.el b/lisp/org-docbook.el > index 8a89675..37851da 100644 > --- a/lisp/org-docbook.el > +++ b/lisp/org-docbook.el > @@ -77,6 +77,7 @@ > (require 'org) > (require 'org-exp) > (require 'org-html) > +(require 'format-spec) > > ;;; Variables: > > @@ -330,10 +331,10 @@ in a window. A non-interactive call will only > return the buffer." > "Export as DocBook XML file, and generate PDF file." > (interactive "P") > (if (or (not org-export-docbook-xslt-proc-command) > - (not (string-match "%s.+%s" org-export-docbook-xslt-proc- > command))) > + (not (string-match "%[io].+%[io]" org-export-docbook-xslt-proc- > command))) > (error "XSLT processor command is not set correctly")) > (if (or (not org-export-docbook-xsl-fo-proc-command) > - (not (string-match "%s.+%s" org-export-docbook-xsl-fo-proc- > command))) > + (not (string-match "%[io].+%[io]" org-export-docbook-xsl-fo-proc- > command))) > (error "XSL-FO processor command is not set correctly")) > (message "Exporting to PDF...") > (let* ((wconfig (current-window-configuration)) > @@ -345,10 +346,10 @@ in a window. A non-interactive call will only > return the buffer." > (pdffile (concat base ".pdf"))) > (and (file-exists-p pdffile) (delete-file pdffile)) > (message "Processing DocBook XML file...") > - (shell-command (format org-export-docbook-xslt-proc-command > - fofile (shell-quote-argument filename))) > - (shell-command (format org-export-docbook-xsl-fo-proc-command > - fofile pdffile)) > + (shell-command (format-spec org-export-docbook-xslt-proc-command > + (format-spec-make ?o fofile ?i (shell-quote-argument filename)))) > + (shell-command (format-spec org-export-docbook-xsl-fo-proc- > command > + (format-spec-make ?i fofile ?o pdffile))) > (message "Processing DocBook file...done") > (if (not (file-exists-p pdffile)) > (error "PDF file was not produced") > > -Dale > > -- > Dale P. Smith > dales@vtiinstruments.com > 216-447-4059 x2018 > 216-447-8951 FAX > > (Company mandated disclaimer follows...) > > The information in this e-mail and any attachments is intended solely > for use by the recipient(s) to whom this e-mail is addressed and may > contain confidential and/or privileged information which is exempt > from disclosure. If you are not an intended recipient, or an employee > or agent responsible for delivering this message to the intended > recipient, you are hereby notified that you have received this e-mail > and any attachments in error and that dissemination, distribution, > review or copying of this e-mail and its attachments is strictly > prohibited. If you have received this e-mail in error, please notify > the sender immediately and delete all electronic and paper copies of > this e-mail as well as any attachments. > Thank you. > > http://www.vtiinstruments.com/images/vtiemaillogo.gif - Carsten