yann rouxel wrote:
> 
> I've recently dowloaded the version 2.5 Patch 1 of XmlEditor, being 
> interested by the XEP plugin.
> Using the trial version of XEP, I meet the requirements needed to use 
> this plugin. But, after having successfully installed it, I can't manage 
> to find an entry in the menus to use XEP when a FO file is loaded in 
> XmlEditor.
> Have i missed something ?

XMLmind XML Editor is not designed to do that.

You need to use the "DocBook" menu / "Convert" submenu in order to 
convert a DocBook document to PDF or PostScript.

The menu entries of the "Convert" submenu are bound to "process 
commands" which transparently (for the user) use XEP when available and 
FOP otherwise.

Of course, the XEP and/or FOP plug-ins need to have been installed.

Example of process command (<XXE_install_dir>/config/docbook/xslMenu.incl):

---
   <command name="docb.toPS">
     <process>
       <!-- Below, referenceAs=absolute_URL is used as a workaround for
            FOP ``really strange'' image managment.
            (This is harmless for XEP.) -->

       <mkdir dir="resources" />
       <copyDocument to="__doc.xml">
         <resources match="(https|http|ftp)://.*" />
         <resources match=".*/([^/]+)" copyTo="resources"
                    referenceAs="%w/resources/$1" />
         <resources match="(.+)" copyTo="resources"
                    referenceAs="%w/resources/$1" />
       </copyDocument>

       <mkdir dir="callouts" />
       <copyProcessResources
         resources="@xsl/images/callouts/gif_callouts.list"
         to="callouts" />

       <transform stylesheet="xsl/fo/docbook.xsl"
                  file="__doc.xml" to="__doc.fo" >
         <parameter name="paper.type">A4</parameter>

         <parameter name="generate.toc">%1</parameter>
         <parameter name="toc.section.depth">3</parameter>
         <parameter name="section.autolabel">%2</parameter>

         <parameter name="callout.graphics">1</parameter>
         <parameter name="callout.graphics.path">callouts/</parameter>
         <parameter name="callout.graphics.extension">.gif</parameter>

         <parameter name="shade.verbatim">1</parameter>

         <parameter name="ulink.show">1</parameter>
         <parameter name="ulink.footnotes">1</parameter>
       </transform>

       <processFO processor="XEP" file="__doc.fo" to="__doc.%0">
         <parameter name="OUTPUT_FORMAT">%0</parameter>
         <parameter name="H4PS.LANGUAGE_LEVEL">2</parameter>

        <!-- If XEP plug-in has not been installed, try FOP plug-in. -->
        <processFO processor="FOP" file="__doc.fo" to="__doc.%0">
          <parameter name="renderer">%0</parameter>
        </processFO>
       </processFO>

       <upload base="%3">
         <copyFile file="__doc.%0" to="%3" />
       </upload>
     </process>
   </command>
---

Now, if you want to use XEP with your custom DTD, you need to write your 
own process command. See 
http://www.xmlmind.com/xmleditor/_distrib/docs/poweruser/ar01s04s02.html#process


Reply via email to