On 06/08/2011 09:37 PM, Laurie J wrote:
> 
> XMLMind seems to insist on putting images in a resources directory.  Can 
> you tell me what to change to change the location?
> 

I assume that you are converting DocBook 4 or DocBook 5 documents to HTML.

There is no easy way to change this.

If you are converting DocBook 4 documents, the quick and dirty solution
is to edit:

XXE_install_dir/addon/config/docbook/xslMenu.incl

and to replace all occurrences of string "resources (notice the leading
quote) by "THE_NAME_YOU_WANT_HERE (notice the leading quote)

If you are converting DocBook 5 documents, please do the same but in

XXE_install_dir/addon/config/docbook5/xslMenu.incl



For example, please find attached to this email a copy of

XXE_install_dir/addon/config/docbook5/xslMenu.incl

where all occurences of "resources have been replaced by "pictures



References:

* XMLmind XML Editor - Configuration and Deployment - Configuration
elements - command

http://www.xmlmind.com/xmleditor/_distrib/doc/configure/command.html

* XMLmind XML Editor - Commands - Process commands

http://www.xmlmind.com/xmleditor/_distrib/doc/commands/process.html
<?xml version='1.0' encoding='ISO-8859-1'?>
<configuration
  xmlns="http://www.xmlmind.com/xmleditor/schema/configuration";
  xmlns:cfg="http://www.xmlmind.com/xmleditor/schema/configuration";>

  <!-- ====== First step used by most process commands defined here ====== -->

  <command name="db5.convertStep1">
    <process>
      <mkdir dir="pictures" />
      <mkdir dir="raw" />

      <copyDocument to="__doc.xml">

        <!-- =================================================================
             Support for DocBook 5 imagedata/svg:svg, imagedata/mml:math
             and *equation/mml:math.
        ================================================================= -->
        <cfg:extract xmlns=""
                     xmlns:db5="http://docbook.org/ns/docbook";
                     xmlns:svg="http://www.w3.org/2000/svg";
                     xpath="//db5:imagedata/svg:svg" toDir="raw" >
          <cfg:attribute name="fileref" 
                         value="pictures/{$url.rootName}.png" />
        </cfg:extract>
        <cfg:extract xmlns=""
                     xmlns:db5="http://docbook.org/ns/docbook";
                     xmlns:mml="http://www.w3.org/1998/Math/MathML";
                     xpath="//db5:imagedata/mml:math" toDir="raw" >
          <cfg:attribute name="fileref" 
                         value="pictures/{$url.rootName}.png" />
        </cfg:extract>
        <cfg:extract xmlns=""
                     xmlns:db5="http://docbook.org/ns/docbook";
                     xmlns:mml="http://www.w3.org/1998/Math/MathML";
                     xpath="//db5:equation/mml:math |
                            //db5:informalequation/mml:math |
                            //db5:inlineequation/mml:math" toDir="raw" >
          <db5:imagedata fileref="pictures/{$url.rootName}.png" />
        </cfg:extract>

        <resources match="(https|http|ftp)://.*" />

        <!-- Support for textdata/@fileref.
             add your favorite text file extensions here: -->
        <resources
          match=".+\.(txt|text|htm|html|xml|h|c|cpp|java|js|tcl|py|pl|rb)" 
          copyTo="." />

        <resources match=".+\.(png|jpg|jpeg|gif)" 
                   copyTo="pictures" />
        <resources match="(?:.+/)?(.+)\.(\w+)"
                   copyTo="raw" referenceAs="pictures/$1.png" />
        <resources match=".+" 
                   copyTo="pictures" />
      </copyDocument>

      <convertImage from="raw" to="pictures" format="png" />

      <mkdir dir="images/callouts" />
      <copyProcessResources resources="xsl/images/draft.png" to="images" />
      <copyProcessResources resources="@xsl/images/callouts/png_callouts.list" 
                            to="images/callouts" />
    </process>
  </command>

  <!-- =================================================================== -->

  <command name="db5.toHTML">
    <process>
      <subProcess name="db5.convertStep1" />

      <copyProcessResources resources="xsl/css/html.css" to="html.css" 
                            name="css" />

      <transform stylesheet="xsl/html/chunk.xsl" 
                 file="__doc.xml" to="__doc.html"
                 label="Convert to multi-page HTML"
                 documentation="http://docbook.sourceforge.net/release/xsl/current/doc/html/%{parameter.name|html.stylesheet}.html">
        <parameter name="use.extensions">1</parameter>
	<!-- Cannot work and generates a lot of error messages. -->
	<parameter name="graphicsize.extension">0</parameter>

        <parameter name="base.dir">%W%S</parameter>
        <parameter name="chunk.first.sections">1</parameter>
        <parameter name="chunk.section.depth">1</parameter>

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

        <parameter name="callout.graphics">1</parameter>

        <parameter name="html.stylesheet">html.css</parameter>

	<parameterGroup name="db5.toHTML.transformParameters" />
      </transform>
 
      <!-- The real HTML file is index.html -->
      <delete files="__doc.*" />

      <upload base="%0/">
        <copyFiles files="*.*" toDir="." />
        <copyFiles files="pictures/*" toDir="pictures" />
        <copyFiles files="images/*" toDir="images" />
      </upload>
    </process>
  </command>

  <command name="db5.convertToHTML">
    <macro>
      <sequence>
	<command name="selectConvertedFile" 
	         parameter="saveDirectoryURL" />
	<command name="db5.toHTML" parameter='"%_"' />
      </sequence>
    </macro>
  </command>

  <!-- =================================================================== -->

  <command name="db5.toHTML1">
    <process>
      <subProcess name="db5.convertStep1" />

      <copyProcessResources resources="xsl/css/html.css" to="html.css"
                            name="css" />

      <transform stylesheet="xsl/html/docbook.xsl" 
                 file="__doc.xml" to="__doc.html"
                 label="Convert to single-page HTML"
                 documentation="http://docbook.sourceforge.net/release/xsl/current/doc/html/%{parameter.name|html.stylesheet}.html">
        <parameter name="use.extensions">1</parameter>
	<!-- Cannot work and generates a lot of error messages. -->
	<parameter name="graphicsize.extension">0</parameter>

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

        <parameter name="callout.graphics">1</parameter>

        <parameter name="html.stylesheet">html.css</parameter>

	<parameterGroup name="db5.toHTML1.transformParameters" />
      </transform>
 
      <upload base="%2">
        <copyFile file="__doc.html" to="%2" />
        <copyFile file="html.css" to="html.css" />
        <copyFiles files="pictures/*" toDir="pictures" />
        <copyFiles files="images/*" toDir="images" />
      </upload>
    </process>
  </command>

  <command name="db5.convertToHTML1">
    <macro>
      <sequence>
	<command name="selectConvertedFile" 
	         parameter="saveFileURLWithExtension=html" />
	<command name="db5.toHTML1" parameter='"%0" "%1" "%_"' />
      </sequence>
    </macro>
  </command>

  <!-- =================================================================== -->

  <command name="db5.toHTMLHelp">
    <process>
      <subProcess name="db5.convertStep1" />

      <copyProcessResources resources="xsl/css/htmlhelp.css"
                            to="htmlhelp.css" name="css" />

      <transform stylesheet="xsl/htmlhelp/htmlhelp.xsl" 
                 file="__doc.xml" to="__doc.html"
                 label="Convert to HTML Help"
                 documentation="http://docbook.sourceforge.net/release/xsl/current/doc/html/%{parameter.name|html.stylesheet}.html">
        <parameter name="use.extensions">1</parameter>
	<!-- Cannot work and generates a lot of error messages. -->
	<parameter name="graphicsize.extension">0</parameter>

        <parameter name="base.dir">%W%S</parameter>
        <parameter name="manifest.in.base.dir">1</parameter>

        <parameter name="chunk.first.sections">1</parameter>
        <parameter name="chunk.section.depth">1</parameter>

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

        <parameter name="callout.graphics">1</parameter>

        <parameter name="html.stylesheet">htmlhelp.css</parameter>

	<parameterGroup name="db5.toHTMLHelp.transformParameters" />
      </transform>
 
      <!-- Not useful. -->
      <delete files="__doc.*" />

      <!-- "C:\Program Files\HTML Help Workshop\hhc.exe" is the 
           HTML Help compiler.
           hhc.exe exit code is 1 even when the compilation is successful.
           Its exit code should be 0. That's why, without "|| exit 0", 
           the process command thinks hhc.exe has failed. -->

      <shell command="helper(.hhp) htmlhelp.hhp || exit 0"
             platform="Windows" />

      <upload base="%0">
        <copyFile file="htmlhelp.chm" to="%0" />
      </upload>
    </process>
  </command>

  <command name="db5.convertToHTMLHelp">
    <macro>
      <sequence>
        <!-- path.separator==';' only on Windows. -->
        <test expression="system-property('path.separator') = ';'" />

	<command name="selectConvertedFile" 
	         parameter="saveFileURLWithExtension=chm" />
	<command name="db5.toHTMLHelp" parameter='"%_"' />
      </sequence>
    </macro>
  </command>

  <!-- =================================================================== -->

  <command name="db5.toJavaHelpStep1">
    <process>
      <subProcess name="db5.convertStep1" />

      <copyProcessResources resources="xsl/css/javahelp.css" 
                            to="javahelp.css" name="css" />

      <transform stylesheet="xsl/javahelp/javahelp.xsl"
                 file="__doc.xml" to="__doc.html"
                 label="Convert to Java Help"
                 documentation="http://docbook.sourceforge.net/release/xsl/current/doc/html/%{parameter.name|html.stylesheet}.html">
        <parameter name="use.extensions">1</parameter>
	<!-- Cannot work and generates a lot of error messages. -->
	<parameter name="graphicsize.extension">0</parameter>

        <parameter name="base.dir">%W%S</parameter>

        <parameter name="chunk.first.sections">1</parameter>
        <parameter name="chunk.section.depth">2</parameter>

        <parameter name="generate.toc"> </parameter>

        <parameter name="callout.graphics">1</parameter>

        <parameter name="html.stylesheet">javahelp.css</parameter>

	<parameterGroup name="db5.toJavaHelp.transformParameters" />
      </transform>
 
      <!-- The real file is not __doc.html -->
      <delete files="__doc.*" />

      <shell command="helper(application/x-java-help-index) ." />
    </process>
  </command>

  <command name="db5.toJavaHelp">
    <process>
      <subProcess name="db5.toJavaHelpStep1" />

      <jar archive="__help_jar__">
        <add files="*.*" />
        <add files="pictures/*" />
        <add files="images/*" />
        <add files="JavaHelpSearch/*" />
      </jar>

      <upload base="%0">
        <copyFile file="__help_jar__" to="%0" />
      </upload>
    </process>
  </command>

  <!-- Useful when the application merges several HelpSets -->
  <command name="db5.toJavaHelpWithPrefix">
    <process>
      <subProcess name="db5.toJavaHelpStep1" />

      <mkdir dir="%1" />
      <copy files="*.*" to="%1" />
      <copy recurse="true" files="pictures" to="%1" />
      <copy recurse="true" files="images" to="%1" />
      <copy recurse="true" files="JavaHelpSearch" to="%1" />

      <jar archive="__help_jar__">
        <add files="%1/*" />
      </jar>

      <upload base="%0">
        <copyFile file="__help_jar__" to="%0" />
      </upload>
    </process>
  </command>

  <command name="db5.convertToJavaHelp">
    <macro>
      <sequence>
	<command name="selectConvertedFile" 
	         parameter="saveFileURLWithExtension=jar" />
	<command name="db5.toJavaHelp" parameter='"%_"' />
      </sequence>
    </macro>
  </command>

  <!-- =================================================================== -->

  <command name="db5.toEclipseHelp">
    <process>
      <subProcess name="db5.convertStep1" />

      <copyProcessResources resources="xsl/css/eclipsehelp.css"
                            to="eclipsehelp.css" name="css" />

      <transform stylesheet="xsl/eclipse/eclipse.xsl" 
                 file="__doc.xml" to="__doc.html"
                 label="Convert to Eclipse Help"
                 documentation="http://docbook.sourceforge.net/release/xsl/current/doc/html/%{parameter.name|html.stylesheet}.html">
        <parameter name="use.extensions">1</parameter>
	<!-- Cannot work and generates a lot of error messages. -->
	<parameter name="graphicsize.extension">0</parameter>

        <parameter name="base.dir">%W%S</parameter>
        <parameter name="manifest.in.base.dir">1</parameter>

        <parameter name="chunk.first.sections">1</parameter>
        <parameter name="chunk.section.depth">3</parameter>

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

        <parameter name="callout.graphics">1</parameter>

        <parameter name="html.stylesheet">eclipsehelp.css</parameter>

        <parameter name="eclipse.plugin.name"
          >REDEFINE THIS: title of this help</parameter>
        <parameter name="eclipse.plugin.id"
          >REDEFINE THIS: unique id of this plugin</parameter>
        <parameter name="eclipse.plugin.provider"
          >REDEFINE THIS: author, company or organization</parameter>

	<parameterGroup name="db5.toEclipseHelp.transformParameters" />
      </transform>
 
      <!-- Not useful. -->
      <delete files="__doc.*" />

      <upload base="%0/">
        <copyFiles files="*.*" toDir="." />
        <copyFiles files="pictures/*" toDir="pictures" />
        <copyFiles files="images/*" toDir="images" />
      </upload>
    </process>
  </command>

  <command name="db5.convertToEclipseHelp">
    <macro>
      <sequence>
	<command name="selectConvertedFile" 
	         parameter="saveDirectoryURL" />
	<command name="db5.toEclipseHelp" parameter='"%_"' />
      </sequence>
    </macro>
  </command>

  <!-- =================================================================== -->

  <command name="db5.toEpub">
    <process>
      <mkdir dir="raw" />
      <mkdir dir="images" />
      <mkdir dir="META-INF" />

      <copyDocument to="__doc.xml">

        <!-- =================================================================
             Support for DocBook 5 imagedata/svg:svg, imagedata/mml:math
             and *equation/mml:math.
        ================================================================= -->
        <cfg:extract xmlns=""
                     xmlns:db5="http://docbook.org/ns/docbook";
                     xmlns:svg="http://www.w3.org/2000/svg";
                     xpath="//db5:imagedata/svg:svg" toDir="raw" >
          <cfg:attribute name="fileref" 
                         value="images/{$url.rootName}.png" />
        </cfg:extract>
        <cfg:extract xmlns=""
                     xmlns:db5="http://docbook.org/ns/docbook";
                     xmlns:mml="http://www.w3.org/1998/Math/MathML";
                     xpath="//db5:imagedata/mml:math" toDir="raw" >
          <cfg:attribute name="fileref" 
                         value="images/{$url.rootName}.png" />
        </cfg:extract>
        <cfg:extract xmlns=""
                     xmlns:db5="http://docbook.org/ns/docbook";
                     xmlns:mml="http://www.w3.org/1998/Math/MathML";
                     xpath="//db5:equation/mml:math |
                            //db5:informalequation/mml:math |
                            //db5:inlineequation/mml:math" toDir="raw" >
          <db5:imagedata fileref="images/{$url.rootName}.png" />
        </cfg:extract>

        <resources match="(https|http|ftp)://.*" />

        <!-- Support for textdata/@fileref.
             add your favorite text file extensions here: -->
        <resources
          match=".+\.(txt|text|htm|html|xml|h|c|cpp|java|js|tcl|py|pl|rb)" 
          copyTo="." />

        <resources match=".+\.(png|jpg|jpeg|gif)" 
                   copyTo="images" />
        <resources match="(?:.+/)?(.+)\.(\w+)"
                   copyTo="raw" referenceAs="images/$1.png" />
        <resources match=".+" 
                   copyTo="images" />
      </copyDocument>

      <convertImage from="raw" to="images" format="png" />

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

      <copyProcessResources resources="xsl/css/epub.css"
                            to="epub.css" name="css" />
      <copyProcessResources resources="xsl/epub/mimetype"
                            to="mimetype" />
      <copyProcessResources resources="xsl/epub/META-INF/container.xml"
                            to="META-INF/container.xml" />

      <transform stylesheet="xsl/epub/epub.xsl" 
                 file="__doc.xml" to="__doc.html"
                 label="Convert to Epub"
                 documentation="http://docbook.sourceforge.net/release/xsl/current/doc/html/%{parameter.name|html.stylesheet}.html">
        <parameter name="use.extensions">1</parameter>
	<!-- Cannot work and generates a lot of error messages. -->
	<parameter name="graphicsize.extension">0</parameter>

        <parameter name="base.dir">%W%S</parameter>

        <parameter name="chunk.first.sections">1</parameter>
        <parameter name="chunk.section.depth">3</parameter>

        <parameter name="generate.toc"> </parameter>

        <parameter name="callout.graphics">1</parameter>

        <parameter name="html.stylesheet">epub.css</parameter>

        <!-- Absolute or relative URI of the cover image of the EPUB file.
             A relative URI is relative to the current working directory.
             Must be a PNG or JPEG image at most 1000x1000px large. -->
        <parameter name="epub.cover.image"></parameter>

	<parameterGroup name="db5.toEpub.transformParameters" />
      </transform>
 
      <!-- Not useful. -->
      <delete files="__doc.*" />

      <zip archive="epub.zip">
        <add files="mimetype" store="true" />
        <add files="META-INF/*" />
        <add files="cover.*" />
        <add files="*.html" />
        <add files="*.css" />
        <add files="images/*" />
        <add files="content.opf" />
        <add files="toc.ncx" />
      </zip>

      <upload base="%0">
        <copyFile file="epub.zip" to="%0" />
      </upload>
    </process>
  </command>

  <command name="db5.convertToEpub">
    <macro>
      <sequence>
	<command name="selectConvertedFile" 
	         parameter="saveFileURLWithExtension=epub" />
	<command name="db5.toEpub" parameter='"%_"' />
      </sequence>
    </macro>
  </command>

  <!-- =================================================================== -->

  <command name="db5.toRTF">
    <process>
      <mkdir dir="pictures" />
      <mkdir dir="raw" />

      <copyDocument to="__doc.xml">
        <!-- =================================================================
          Workaround a bug in DocBook XSL style sheets 1.73.2
          that affects imagedata/svg:svg, imagedata/mml:math
          but not *equation/mml:math.
        ================================================================= -->
        <cfg:extract xmlns=""
                     xmlns:db5="http://docbook.org/ns/docbook";
                     xmlns:svg="http://www.w3.org/2000/svg";
                     xpath="//db5:imagedata/svg:svg" toDir="pictures" >
          <cfg:attribute name="fileref" value="{$url}" />
        </cfg:extract>
        <cfg:extract xmlns=""
                     xmlns:db5="http://docbook.org/ns/docbook";
                     xmlns:mml="http://www.w3.org/1998/Math/MathML";
                     xpath="//db5:imagedata/mml:math" toDir="pictures" >
          <cfg:attribute name="fileref" value="{$url}" />
        </cfg:extract>

        <resources match="(https|http|ftp)://.*" />

        <!-- Support for textdata/@fileref.
             add your favorite text file extensions here: -->
        <resources
          match=".+\.(txt|text|htm|html|xml|h|c|cpp|java|js|tcl|py|pl|rb)" 
          copyTo="." />

        <resources match=".+\.(png|jpg|jpeg|gif|bmp|wmf|emf|mml|svg)" 
                   copyTo="pictures" />
        <resources match="(?:.+/)?(.+)\.(\w+)"
                   copyTo="raw" referenceAs="pictures/$1.png" />
        <resources match=".+" 
                   copyTo="pictures" />
      </copyDocument>

      <convertImage from="raw" to="pictures" format="png" />

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

      <transform stylesheet="xsl/fo/docbook.xsl" 
                 file="__doc.xml" to="__doc.fo"
                 label="Convert to RTF, WordprocessingML, OOXML, OpenDocument"
                 documentation="http://docbook.sourceforge.net/release/xsl/current/doc/fo/%{parameter.name|paper.type}.html">
        <parameter name="use.extensions">1</parameter>
	<!-- Cannot work and generates a lot of error messages. -->
	<parameter name="graphicsize.extension">0</parameter>

        <parameter name="paper.type">A4</parameter>

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

        <parameter name="callout.graphics">1</parameter>

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

        <parameter name="ulink.show">0</parameter>

	<parameterGroup name="db5.toRTF.transformParameters" />
      </transform>

      <processFO processor="XFC" file="__doc.fo" to="__doc.%0">
        <parameter name="outputFormat">%0</parameter>
        <parameter name="outputEncoding">%1</parameter>
        <parameter name="imageResolution">120</parameter>
        <parameter name="prescaleImages">false</parameter>
	<parameterGroup name="db5.toRTF.XFCParameters" />
      </processFO>

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

  <command name="db5.convertToRTF">
    <macro>
      <sequence>
	<command name="selectConvertedFile" 
	         parameter="saveFileURLWithExtension=%4" />
	<command name="db5.toRTF" parameter='"%0" "%1" "%2" "%3" "%_"' />
      </sequence>
    </macro>
  </command>

  <!-- =================================================================== -->

  <command name="db5.toPS">
    <process>
      <mkdir dir="pictures" />
      <mkdir dir="raw" />

      <copyDocument to="__doc.xml">
        <!-- =================================================================
          Workaround a bug in DocBook XSL style sheets 1.73.2
          that affects imagedata/svg:svg, imagedata/mml:math
          but not *equation/mml:math.
        ================================================================= -->
        <cfg:extract xmlns=""
                     xmlns:db5="http://docbook.org/ns/docbook";
                     xmlns:svg="http://www.w3.org/2000/svg";
                     xpath="//db5:imagedata/svg:svg" toDir="pictures" >
          <cfg:attribute name="fileref" value="{$url}" />
        </cfg:extract>
        <cfg:extract xmlns=""
                     xmlns:db5="http://docbook.org/ns/docbook";
                     xmlns:mml="http://www.w3.org/1998/Math/MathML";
                     xpath="//db5:imagedata/mml:math" toDir="pictures" >
          <cfg:attribute name="fileref" value="{$url}" />
        </cfg:extract>

        <resources match="(https|http|ftp)://.*" />

        <!-- Support for textdata/@fileref.
             add your favorite text file extensions here: -->
        <resources
          match=".+\.(txt|text|htm|html|xml|h|c|cpp|java|js|tcl|py|pl|rb)" 
          copyTo="." />

        <resources match="(?:.+/)?(.+)\.(png|jpg|jpeg|gif|mml|svg|svgz%1)" 
                   copyTo="pictures" referenceAs="%w/resources/$1.$2" />
        <resources match="(?:.+/)?(.+)\.tex"
                   copyTo="raw" referenceAs="%w/resources/$1.%0" />
        <resources match="(?:.+/)?(.+)\.(\w+)"
                   copyTo="raw" referenceAs="%w/resources/$1.png" />
        <resources match="(?:.+/)?(.+)" 
	           copyTo="pictures" referenceAs="%w/resources/$1" />
      </copyDocument>

      <convertImage from="raw" to="pictures" format="%0 png" />

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

      <transform stylesheet="xsl/fo/docbook.xsl"
                 file="__doc.xml" to="__doc.fo"
                 label="Convert to PDF, PostScript"
                 documentation="http://docbook.sourceforge.net/release/xsl/current/doc/fo/%{parameter.name|paper.type}.html">
        <parameter name="use.extensions">1</parameter>
	<!-- Cannot work and generates a lot of error messages. -->
	<parameter name="graphicsize.extension">0</parameter>

        <parameter name="paper.type">A4</parameter>

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

        <parameter name="callout.graphics">1</parameter>

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

        <parameter name="ulink.show">0</parameter>

	<parameterGroup name="db5.toPS.transformParameters" />
      </transform>

      <processFO processor="XEP" file="__doc.fo" to="__doc.%0">
        <parameter name="OUTPUT_FORMAT">%0</parameter>
        <!-- Workaround XEP bug: renderx #22766 -->
        <parameter name="VALIDATE">false</parameter>
        <parameter name="PS.LANGUAGE_LEVEL">2</parameter>
	<parameterGroup name="db5.toPS.XEPParameters" />

	<!-- 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>
	  <parameter name="strict-validation">false</parameter>
	  <parameterGroup name="db5.toPS.FOPParameters" />
	</processFO>
      </processFO>
    </process>
  </command>

  <command name="db5.toPSFile">
    <process>
      <subProcess name="db5.toPS" parameter='"%0" "%1" "%2" "%3"' />

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

  <command name="db5.convertToPS">
    <macro>
      <sequence>
	<command name="selectConvertedFile"
	         parameter="saveFileURLWithExtension=%0" />
	<command name="db5.toPSFile" parameter='"%0" "%1" "%2" "%3" "%_"' />
      </sequence>
    </macro>
  </command>

  <!-- =================================================================== -->

  <command name="db5.toPSPrinter">
    <process>
      <subProcess name="db5.toPS" parameter='"%0" "%1" "%2" "%3"' />

      <print file="__doc.%0" printer="%4" />
    </process>
  </command>

  <command name="db5.printPS">
    <macro>
      <sequence>
	<command name="selectPrinter" parameter="%0" />
	<command name="db5.toPSPrinter" parameter='"%0" "%1" "%2" "%3" "%_"'/>
      </sequence>
    </macro>
  </command>

  <!-- =================================================================== -->

  <menu label="_DocBook"
        insert="ifDefined(XXE.Edition.Unrestricted)after ##last">
    <separator />
    <menu label="_Convert Document">
      <item label="Convert to _HTML..."
            command="db5.convertToHTML" />
      <item label="Convert to HTML [_one page]..." 
            command="db5.convertToHTML1" 	
	    parameter='
              "book toc,title,figure,table,example,equation /article toc" 1' />
      <item label="Convert to HTML [one page, _no TOC]..."
            command="db5.convertToHTML1" parameter='" " 0' />
      <separator />
      <item label="Convert to HTM_L Help..."
            command="db5.convertToHTMLHelp" />
      <separator />
      <item label="Convert to _Java Help..."
            command="db5.convertToJavaHelp" />
      <separator />
      <item label="Convert to _Eclipse Help..."
            command="db5.convertToEclipseHelp" />
      <separator />
      <item label="Convert to Epu_b..."
            command="db5.convertToEpub" />
      <separator />
      <item label="Convert to _RTF (Word 2000+)..."
            command="db5.convertToRTF" 
	    parameter='rtf Cp1252
              "book toc,title,figure,table,example,equation /article toc"
              1 rtf' />
      <item label="Convert to R_TF [no TOC]..."
            command="db5.convertToRTF" 
            parameter='rtf Cp1252 " " 0 rtf' />
      <separator />
      <item label="Convert to _WordprocessingML (Word 2003+)..."
            command="db5.convertToRTF" 
	    parameter='wml UTF-8 
              "book toc,title,figure,table,example,equation /article toc"
              1 wml' />
      <item label="Convert to Wordprocessing_ML [no TOC]..." 
            command="db5.convertToRTF" 
            parameter='wml UTF-8 " " 0 wml' />
      <separator />
      <item label="Convert to Office Open _XML (Word 2007+)..."
            command="db5.convertToRTF" 
	    parameter='docx UTF-8
              "book toc,title,figure,table,example,equation /article toc"
              1 docx' />
      <item label="Con_vert to Office Open XML [no TOC]..."
            command="db5.convertToRTF" 
            parameter='docx UTF-8 " " 0 docx' />
      <separator />
      <item label="Convert to Open_Document (OpenOffice.org 2+)..."
            command="db5.convertToRTF" 
	    parameter='odt UTF-8
              "book toc,title,figure,table,example,equation /article toc" 
              1 odt' />
      <item label="Convert to OpenDoc_ument [no TOC]..."
            command="db5.convertToRTF" 
            parameter='odt UTF-8 " " 0 odt' />
      <separator />
      <item label="Print Post_Script..."
            command="db5.printPS"
            parameter='ps |eps|ps
              "book toc,title,figure,table,example,equation /article toc" 1' />
      <item label="Print PostScr_ipt [no TOC]..."
            command="db5.printPS" 
	    parameter='ps |eps|ps " " 0' />
      <separator />
      <item label="Convert to _PDF..."
            command="db5.convertToPS" 
            parameter='pdf |pdf
              "book toc,title,figure,table,example,equation /article toc" 1' />
      <item label="Convert to PD_F [no TOC]..."
            command="db5.convertToPS" 
	    parameter='pdf |pdf " " 0' />
    </menu>
  </menu>

  <!-- =================================================================== -->

  <command name="db5.conversionPreferences">
    <class>com.xmlmind.xmleditext.docbook.ConversionPreferences</class>
  </command>

  <menu name="customizeConfig" label="_Customize Configuration">
    <item label="Document Conversion _Preferences..."
          command="db5.conversionPreferences" />
  </menu>

</configuration>
 
--
XMLmind XML Editor Support List
[email protected]
http://www.xmlmind.com/mailman/listinfo/xmleditor-support

Reply via email to