emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Carsten Dominik <carsten.dominik@gmail.com>
To: Baoqiu Cui <cbaoqiu@yahoo.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: Re: [PATCH] Re: Custom docbook stylesheets.
Date: Sat, 15 May 2010 08:13:09 +0200	[thread overview]
Message-ID: <0C0BCD9C-9EDC-416A-8AC3-C54A9E5E235E@gmail.com> (raw)
In-Reply-To: <bycwrv5stj0.fsf@muchbodyking-lm.corp.yahoo.com>

Hi,


I have applied this change.  Users of the docbook exporter should read  
the Changes.org entry Baoqiu has provided:

           Customizable variable changes for DocBook exporter
           ==================================================

To make it more flexible for users to provide DocBook exporter
related commands, we start to use format-spec to format the
commands in this release.  If you use DocBook exporter and use it
to export Org files to PDF and/or FO format, the settings of the
following two customizable variables need to be changed:

1. org-export-docbook-xslt-proc-command
2. org-export-docbook-xsl-fo-proc-command

Instead of using =%s= in the format control string for all
arguments, now we use /three/ different format spec characters:

1. %i : input file argument
2. %o : output file argument
3. %s : XSLT stylesheet argument

For example, if you set =org-export-docbook-xslt-proc-command= to

java com.icl.saxon.StyleSheet -o %s %s /path/to/docbook.xsl

in the past, now you need to change it to

java com.icl.saxon.StyleSheet -o %o %i %s

and set a new customizable variable called
=org-export-docbook-xslt-stylesheet= to =/path/to/docbook.xsl=.

Please check the documentation of these two variables for more
details and other examples.

Along with the introduction of variable
org-export-docbook-xslt-stylesheet, we also added a new
in-buffer setting called #+XSLT:.  You can use this setting to
specify the XSLT stylesheet that you want to use on a per-file
basis.  This setting overrides
org-export-docbook-xslt-stylesheet.

On May 15, 2010, at 6:01 AM, Baoqiu Cui wrote:

> Hi Carsten,
>
> Carsten Dominik <carsten.dominik@gmail.com> writes:
>
>> Dear Baoqiu,
>>
>> thanks for the patch, I applied it.  Can you please also make a patch
>> for the documentation - I think #+XSLT must be mentioned in the  
>> export
>> chapter....
>>
>> And an entry for the Changes.org file would indeed be nice, can you
>> write that as well?
>
> Thanks for applying the previous patch.  Attached below please find  
> the
> 2nd patch that mainly covers the documentation changes, which include
>
>  1. Some changes in org.texi to cover `#+XSLT'.
>  2. An entry in Changes.org about the incompatible change.
>  3. A small change in org-exp.el to include `#+XSLT' in
>     org-get-current-options().
>
> Hope I did not miss anything important.  Free feel to change the  
> wording
> or add anything that you'd like to add.
>
> diff --git a/ORGWEBPAGE/Changes.org b/ORGWEBPAGE/Changes.org
> index b7352b3..eab265b 100644
> --- a/ORGWEBPAGE/Changes.org
> +++ b/ORGWEBPAGE/Changes.org
> @@ -14,6 +14,47 @@
>  :CUSTOM_ID: v6.36
>  :END:
>
> +** Incompatible Changes
> +
> +*** Customizable variable changes for DocBook exporter
> +
> +To make it more flexible for users to provide DocBook exporter
> +related commands, we start to use format-spec to format the
> +commands in this release.  If you use DocBook exporter and use it
> +to export Org files to PDF and/or FO format, the settings of the
> +following two customizable variables need to be changed:
> +
> +1. =org-export-docbook-xslt-proc-command=
> +2. =org-export-docbook-xsl-fo-proc-command=
> +
> +Instead of using =%s= in the format control string for all
> +arguments, now we use /three/ different format spec characters:
> +
> +1. =%i=: input file argument
> +2. =%o=: output file argument
> +3. =%s=: XSLT stylesheet argument
> +
> +For example, if you set =org-export-docbook-xslt-proc-command= to
> +
> +: java com.icl.saxon.StyleSheet -o %s %s /path/to/docbook.xsl
> +
> +in the past, now you need to change it to
> +
> +: java com.icl.saxon.StyleSheet -o %o %i %s
> +
> +and set a new customizable variable called
> +=org-export-docbook-xslt-stylesheet= to =/path/to/docbook.xsl=.
> +
> +Please check the documentation of these two variables for more
> +details and other examples.
> +
> +Along with the introduction of variable
> +=org-export-docbook-xslt-stylesheet=, we also added a new
> +in-buffer setting called =#+XSLT:=.  You can use this setting to
> +specify the XSLT stylesheet that you want to use on a per-file
> +basis.  This setting overrides
> +=org-export-docbook-xslt-stylesheet=.
> +
> ** Details
> *** Inline display of linked images
>
> diff --git a/doc/org.texi b/doc/org.texi
> index d2b7904..7b6afd7 100644
> --- a/doc/org.texi
> +++ b/doc/org.texi
> @@ -9020,6 +9020,7 @@ Insert template with export options, see  
> example below.
> #+LATEX_HEADER: extra line(s) for the LaTeX header, like  
> \usepackage@{xyz@}
> #+EXPORT_SELECT_TAGS:   Tags that select a tree for export
> #+EXPORT_EXCLUDE_TAGS:  Tags that exclude a tree from export
> +#+XSLT:        the XSLT stylesheet used by DocBook exporter to  
> generate FO file
> @end example
>
> @noindent
> @@ -9860,7 +9861,7 @@ For more information, see the documentation on  
> Worg.
> @section DocBook export
> @cindex DocBook export
> @cindex PDF export
> -@cindex Cui, Baoqui
> +@cindex Cui, Baoqiu
>
> Org contains a DocBook exporter written by Baoqiu Cui.  Once an Org  
> file is
> exported to DocBook format, it can be further processed to produce  
> other
> @@ -9907,6 +9908,15 @@ need to have XSLT processor and XSL-FO  
> processor software installed on your
> system.  Check variables @code{org-export-docbook-xslt-proc-command}  
> and
> @code{org-export-docbook-xsl-fo-proc-command}.
>
> +@vindex org-export-docbook-xslt-stylesheet
> +The stylesheet argument (`%s') in variable
> +@code{org-export-docbook-xslt-proc-command} is in general replaced  
> by the
> +value of variable @code{org-export-docbook-xslt-stylesheet}, which is
> +expected to be set by the user.  You can also tell DocBook exporter  
> which
> +stylesheet to use on a per-file basis by adding an in-buffer setting
> +`#+XSLT:' to the Org file.  The setting of `#+XSLT:' overrides
> +@code{org-export-docbook-xslt-stylesheet}.
> +
> @kindex C-c C-e v D
> @item C-c C-e v D
> Export only the visible part of the document.
> @@ -11001,8 +11011,8 @@ keys.  The corresponding variable is  
> @code{org-tag-alist}.
> @item #+TBLFM:
> This line contains the formulas for the table directly above the line.
> @item #+TITLE:, #+AUTHOR:, #+EMAIL:, #+LANGUAGE:, #+TEXT:, #+DATE:,
> -@itemx #+OPTIONS:, #+BIND:
> -@itemx #+DESCRIPTION:, #+KEYWORDS:
> +@itemx #+OPTIONS:, #+BIND:, #+XSLT:,
> +@itemx #+DESCRIPTION:, #+KEYWORDS:,
> @itemx #+LATEX_HEADER:, #+STYLE:, #+LINK_UP:, #+LINK_HOME:,
> @itemx #+EXPORT_SELECT_TAGS:, #+EXPORT_EXCLUDE_TAGS:
> These lines provide settings for exporting files.  For more details  
> see
> diff --git a/lisp/org-exp.el b/lisp/org-exp.el
> index 068f9c5..a4f9ac3 100644
> --- a/lisp/org-exp.el
> +++ b/lisp/org-exp.el
> @@ -2574,6 +2574,7 @@ Does include HTML export options as well as  
> TODO and CATEGORY stuff."
> #+EXPORT_EXCLUDE_TAGS: %s
> #+LINK_UP:   %s
> #+LINK_HOME: %s
> +#+XSLT:
> #+CATEGORY:  %s
> #+SEQ_TODO:  %s
> #+TYP_TODO:  %s
>
> Thanks,
>
> -- 
> Baoqiu
> _______________________________________________
> 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

  reply	other threads:[~2010-05-15  6:13 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-05-27  0:13 Custom docbook stylesheets Dale Smith
2009-05-27  9:39 ` Carsten Dominik
2009-05-27 18:59   ` Baoqiu Cui
2009-05-28  5:31     ` Carsten Dominik
2009-05-28 14:17       ` Dale Smith
2009-06-23 15:29       ` Dale Smith
2009-06-22 15:25     ` Dale Smith
2009-06-22 19:05       ` Dale Smith
2009-06-23  6:13         ` Baoqiu Cui
2009-06-23 15:10           ` Dale Smith
2010-05-03 19:25           ` Dale P. Smith
2010-05-13  5:39             ` Carsten Dominik
2010-05-13 14:11               ` Dale P. Smith
2010-05-13 18:19                 ` Carsten Dominik
2010-05-13 18:51                   ` Dale P. Smith
2010-05-13 19:45                     ` Baoqiu Cui
2010-05-13 21:09                       ` Dale P. Smith
2010-05-13 23:15                         ` [PATCH] " Baoqiu Cui
2010-05-14 11:39                           ` Carsten Dominik
2010-05-15  4:01                             ` Baoqiu Cui
2010-05-15  6:13                               ` Carsten Dominik [this message]
2010-05-13 19:06               ` Baoqiu Cui

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=0C0BCD9C-9EDC-416A-8AC3-C54A9E5E235E@gmail.com \
    --to=carsten.dominik@gmail.com \
    --cc=cbaoqiu@yahoo.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).