Nikolay Rastegaev wrote:
>
> I try
> 1) edit only XXE_install_dir/addon/config/dita/xslMenu.inc
> Don't work
> 2) edit only dita.toPS
> Don't work
> 3) edit both
> Don't work
> 4) change foProcessor property from FOP to XFC
> Don't work
>
> Also try with and without chunk properties of <bookmap> or <topicref>
> with values "select-topic", "select-document"
>
> Don't work :-(
>
Please replace XXE_install_dir/addon/config/dita/xslMenu.incl by the
modified version attached to this email (compatible with XXE v4.6). Then
please restart XXE.
I've *tested* attached xslMenu.incl and it indeed allows me to order
the topics in the generated PDF or ODT differently from what is found in
the multi-topic .dita file.
Example: while the order in map_reference.dita is map_menu then
map_toolbar then map_bindings, in my test map, I specified just the
inverse order:
---
<topichead chunk="to-content" navtitle="DITA map reference">
<topicref href="map_reference.dita#map_bindings"/>
<topicref href="map_reference.dita#map_toolbar"/>
<topicref href="map_reference.dita#map_menu"/>
</topichead>
---
and it worked fine.
If your map really works as you want it when converted to HTML, after
replacing the stock xslMenu.incl by the attached one, the same map will
also work as you want it when converted to PDF or ODT.
If this is not the case, you are either not using XXE v4.6 to perform
the conversion OR you copied attached xslMenu.incl to the wrong place OR
your map didn't really work as you want it when converted to 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">
<!-- =================================================================== -->
<command name="dita.toXHTML">
<process>
<invoke method="com.xmlmind.xmleditext.dita.PreProcess.process">
<argument>-v</argument>
<argument>info</argument>
<argument>-toc</argument>
<argument>-images</argument>
<argument>images/*.{png,jpg,jpeg,gif}</argument>
<argument>-out</argument>
<argument>_.html</argument>
<argument>-options</argument>
<argument>dita.toXHTML.options</argument>
</invoke>
<mkdir dir="resources" />
<copyProcessResources resources="@xsl/xhtml/resources.list"
to="resources" />
<copyProcessResources resources="xsl/xhtml/resources/basic.css"
to="resources/xhtml.css" name="css" />
<transform stylesheet="xsl/xhtml/xhtml.xsl"
version="2.0;com.xmlmind.ditac.xslt.ExtensionFunctions.registerAll"
file="*.ditac" to="_.html" pattern="true"
documentation="http://www.xmlmind.com/ditac/_distrib/doc/manual/xsltParams.html#xsltParams__%{parameter.name|use-note-icon}"
label="Convert to multi-page XHTML">
<parameter name="ditacListsURI">%w/ditac_lists.ditac_lists</parameter>
<parameter name="xsl-resources-directory">resources</parameter>
<parameter name="number">all</parameter>
<parameter name="chain-pages">both</parameter>
<parameter name="chain-topics">yes</parameter>
<parameter name="default-table-width">100%</parameter>
<parameter name="css">resources/xhtml.css</parameter>
<parameterGroup name="dita.toXHTML.transformParameters" />
</transform>
<upload base="%0/">
<copyFiles files="*.html" toDir="." />
<copyFiles files="resources/*" toDir="resources" />
<copyFiles files="images/*" toDir="images" />
</upload>
</process>
</command>
<command name="dita.convertToXHTML">
<macro>
<sequence>
<command name="XXE.save" parameter="[checkIsSaved]" />
<command name="selectConvertedFile"
parameter="saveDirectoryURL" />
<command name="dita.toXHTML" parameter='"%_"' />
</sequence>
</macro>
</command>
<!-- =================================================================== -->
<command name="dita.toXHTML1">
<process>
<invoke method="com.xmlmind.xmleditext.dita.PreProcess.process">
<argument>-v</argument>
<argument>info</argument>
<argument>-chunk</argument>
<argument>single</argument>
<argument>-toc</argument>
<argument>-images</argument>
<argument>images/*.{png,jpg,jpeg,gif}</argument>
<argument>-out</argument>
<argument>__doc.xhtml</argument>
<argument>-options</argument>
<argument>dita.toXHTML1.options</argument>
</invoke>
<mkdir dir="resources" />
<copyProcessResources resources="@xsl/xhtml/resources.list"
to="resources" />
<copyProcessResources resources="xsl/xhtml/resources/basic.css"
to="resources/xhtml.css" name="css" />
<transform stylesheet="xsl/xhtml/xhtml.xsl"
version="2.0;com.xmlmind.ditac.xslt.ExtensionFunctions.registerAll"
file="__doc.ditac" to="__doc.xhtml"
documentation="http://www.xmlmind.com/ditac/_distrib/doc/manual/xsltParams.html#xsltParams__%{parameter.name|use-note-icon}"
label="Convert to single-page XHTML">
<parameter name="ditacListsURI">%w/ditac_lists.ditac_lists</parameter>
<parameter name="xsl-resources-directory">resources</parameter>
<parameter name="number">all</parameter>
<parameter name="chain-topics">yes</parameter>
<parameter name="default-table-width">100%</parameter>
<parameter name="css">resources/xhtml.css</parameter>
<parameterGroup name="dita.toXHTML1.transformParameters" />
</transform>
<upload base="%0">
<copyFile file="__doc.xhtml" to="%0" />
<copyFiles files="resources/*" toDir="resources" />
<copyFiles files="images/*" toDir="images" />
</upload>
</process>
</command>
<command name="dita.convertToXHTML1">
<macro>
<sequence>
<command name="XXE.save" parameter="[checkIsSaved]" />
<command name="selectConvertedFile"
parameter="saveFileURLWithExtension=html" />
<command name="dita.toXHTML1" parameter='"%_"' />
</sequence>
</macro>
</command>
<!-- =================================================================== -->
<command name="dita.toHTMLHelp">
<process>
<invoke method="com.xmlmind.xmleditext.dita.PreProcess.process">
<argument>-v</argument>
<argument>info</argument>
<argument>-images</argument>
<argument>images/*.{png,jpg,jpeg,gif}</argument>
<argument>-out</argument>
<argument>_.html</argument>
<argument>-options</argument>
<argument>dita.toHTMLHelp.options</argument>
</invoke>
<mkdir dir="resources" />
<copyProcessResources resources="@xsl/htmlhelp/resources.list"
to="resources" />
<copyProcessResources resources="xsl/htmlhelp/resources/basic.css"
to="resources/htmlhelp.css" name="css" />
<transform stylesheet="xsl/htmlhelp/htmlhelp.xsl"
version="2.0;com.xmlmind.ditac.xslt.ExtensionFunctions.registerAll"
file="*.ditac" to="_.html" pattern="true"
documentation="http://www.xmlmind.com/ditac/_distrib/doc/manual/xsltParams.html#xsltParams__%{parameter.name|number-toc-entries}"
label="Convert to HTML Help">
<parameter name="ditacListsURI">%w/ditac_lists.ditac_lists</parameter>
<parameter name="hhpBasename">htmlhelp.hhp</parameter>
<parameter name="chmBasename">htmlhelp.chm</parameter>
<parameter name="xsl-resources-directory">resources</parameter>
<parameter name="default-table-width">100%</parameter>
<parameter name="css">resources/htmlhelp.css</parameter>
<parameterGroup name="dita.toHTMLHelp.transformParameters" />
</transform>
<!-- No longer needed. -->
<delete files="*.ditac" />
<delete files="ditac_lists.ditac_lists" />
<!-- "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="dita.convertToHTMLHelp">
<macro>
<sequence>
<pass>
<!-- path.separator==';' only on Windows. -->
<test expression="system-property('path.separator') = ';'" />
<command name="XXE.save" parameter="[checkIsSaved]" />
</pass>
<command name="selectConvertedFile"
parameter="saveFileURLWithExtension=chm" />
<command name="dita.toHTMLHelp" parameter='"%_"' />
</sequence>
</macro>
</command>
<!-- =================================================================== -->
<command name="dita.toJavaHelpStep1">
<process>
<invoke method="com.xmlmind.xmleditext.dita.PreProcess.process">
<argument>-v</argument>
<argument>info</argument>
<argument>-images</argument>
<argument>images/*.{png,jpg,jpeg,gif}</argument>
<argument>-out</argument>
<argument>_.html</argument>
<argument>-options</argument>
<argument>dita.toJavaHelp.options</argument>
</invoke>
<mkdir dir="resources" />
<copyProcessResources resources="@xsl/javahelp/resources.list"
to="resources" />
<copyProcessResources resources="xsl/javahelp/resources/javahelp.css"
to="resources/jhelp.css" name="css" />
<transform stylesheet="xsl/javahelp/javahelp.xsl"
version="2.0;com.xmlmind.ditac.xslt.ExtensionFunctions.registerAll"
file="*.ditac" to="_.html" pattern="true"
documentation="http://www.xmlmind.com/ditac/_distrib/doc/manual/xsltParams.html#xsltParams__%{parameter.name|number-toc-entries}"
label="Convert to Java Help">
<parameter name="ditacListsURI">%w/ditac_lists.ditac_lists</parameter>
<parameter name="xsl-resources-directory">resources</parameter>
<parameter name="default-table-width">100%</parameter>
<parameter name="css">resources/jhelp.css</parameter>
<parameterGroup name="dita.toJavaHelp.transformParameters" />
</transform>
<!-- No longer needed. -->
<delete files="*.ditac" />
<delete files="ditac_lists.ditac_lists" />
<shell command="helper(application/x-java-help-index) ." />
</process>
</command>
<command name="dita.toJavaHelp">
<process>
<subProcess name="dita.toJavaHelpStep1" />
<jar archive="__help_jar__">
<add files="*.*" />
<add files="resources/*" />
<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="dita.toJavaHelpWithPrefix">
<process>
<subProcess name="dita.toJavaHelpStep1" />
<mkdir dir="%1" />
<copy files="*.*" to="%1" />
<copy recurse="true" files="resources" 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="dita.convertToJavaHelp">
<macro>
<sequence>
<command name="XXE.save" parameter="[checkIsSaved]" />
<command name="selectConvertedFile"
parameter="saveFileURLWithExtension=jar" />
<command name="dita.toJavaHelp" parameter='"%_"' />
</sequence>
</macro>
</command>
<!-- =================================================================== -->
<command name="dita.toEclipseHelp">
<process>
<invoke method="com.xmlmind.xmleditext.dita.PreProcess.process">
<argument>-v</argument>
<argument>info</argument>
<argument>-images</argument>
<argument>images/*.{png,jpg,jpeg,gif}</argument>
<argument>-out</argument>
<argument>_.html</argument>
<argument>-options</argument>
<argument>dita.toEclipseHelp.options</argument>
</invoke>
<mkdir dir="resources" />
<copyProcessResources resources="@xsl/eclipsehelp/resources.list"
to="resources" />
<copyProcessResources resources="xsl/eclipsehelp/resources/basic.css"
to="resources/eclipsehelp.css" name="css" />
<transform stylesheet="xsl/eclipsehelp/eclipsehelp.xsl"
version="2.0;com.xmlmind.ditac.xslt.ExtensionFunctions.registerAll"
file="*.ditac" to="_.html" pattern="true"
documentation="http://www.xmlmind.com/ditac/_distrib/doc/manual/xsltParams.html#xsltParams__%{parameter.name|plugin-name}"
label="Convert to Eclipse Help">
<parameter name="ditacListsURI">%w/ditac_lists.ditac_lists</parameter>
<parameter name="xsl-resources-directory">resources</parameter>
<parameter name="default-table-width">100%</parameter>
<parameter name="css">resources/eclipsehelp.css</parameter>
<parameter name="plugin-name"
>REDEFINE THIS: title of this help</parameter>
<parameter name="plugin-id"
>REDEFINE THIS: unique.id.of.this.plugin</parameter>
<parameter name="plugin-provider"
>REDEFINE THIS: author, company or organization</parameter>
<parameter name="plugin-version">1.0.0</parameter>
<parameterGroup name="dita.toEclipseHelp.transformParameters" />
</transform>
<upload base="%0/">
<copyFiles files="*.xml" toDir="." />
<copyFiles files="*.html" toDir="." />
<copyFiles files="resources/*" toDir="resources" />
<copyFiles files="images/*" toDir="images" />
</upload>
</process>
</command>
<command name="dita.convertToEclipseHelp">
<macro>
<sequence>
<command name="XXE.save" parameter="[checkIsSaved]" />
<command name="selectConvertedFile"
parameter="saveDirectoryURL" />
<command name="dita.toEclipseHelp" parameter='"%_"' />
</sequence>
</macro>
</command>
<!-- =================================================================== -->
<command name="dita.toEPUB">
<process>
<invoke method="com.xmlmind.xmleditext.dita.PreProcess.process">
<argument>-v</argument>
<argument>info</argument>
<argument>-images</argument>
<argument>images/*.{svg,png,jpg,jpeg,gif}</argument>
<argument>-out</argument>
<argument>_.html</argument>
<argument>-options</argument>
<argument>dita.toEPUB.options</argument>
</invoke>
<mkdir dir="resources" />
<copyProcessResources resources="@xsl/epub/resources.list"
to="resources" />
<copyProcessResources resources="xsl/epub/resources/basic.css"
to="resources/epub.css" name="css" />
<copyProcessResources resources="xsl/epub/mimetype"
to="mimetype" />
<mkdir dir="META-INF" />
<copyProcessResources resources="xsl/epub/META-INF/container.xml"
to="META-INF/container.xml" />
<transform stylesheet="xsl/epub/epub.xsl"
version="2.0;com.xmlmind.ditac.xslt.ExtensionFunctions.registerAll"
file="*.ditac" to="_.html" pattern="true"
documentation="http://www.xmlmind.com/ditac/_distrib/doc/manual/xsltParams.html#xsltParams__%{parameter.name|epub-identifier}"
label="Convert to EPUB">
<parameter name="ditacListsURI">%w/ditac_lists.ditac_lists</parameter>
<parameter name="xsl-resources-directory">resources</parameter>
<parameter name="number">all</parameter>
<parameter name="number-toc-entries">yes</parameter>
<parameter name="default-table-width">100%</parameter>
<parameter name="css">resources/epub.css</parameter>
<parameterGroup name="dita.toEPUB.transformParameters" />
</transform>
<!-- No longer needed. -->
<delete files="*.ditac" />
<delete files="ditac_lists.ditac_lists" />
<zip archive="epub.zip">
<add files="mimetype" store="true" />
<add files="META-INF/*" />
<add files="*.html" />
<add files="resources/*" />
<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="dita.convertToEPUB">
<macro>
<sequence>
<command name="XXE.save" parameter="[checkIsSaved]" />
<command name="selectConvertedFile"
parameter="saveFileURLWithExtension=epub" />
<command name="dita.toEPUB" parameter='"%_"' />
</sequence>
</macro>
</command>
<!-- =================================================================== -->
<command name="dita.toRTF">
<process>
<invoke method="com.xmlmind.xmleditext.dita.PreProcess.process">
<argument>-v</argument>
<argument>info</argument>
<argument>-toc</argument>
<argument>-images</argument>
<argument>images/*.{png,jpg,jpeg,gif,bmp,wmf,emf,mml,svg}</argument>
<argument>-out</argument>
<argument>__doc.%0</argument>
<argument>-media</argument>
<argument>print</argument>
<argument>-chunk</argument>
<argument>single</argument>
<argument>-options</argument>
<argument>dita.toRTF.options</argument>
</invoke>
<transform stylesheet="xsl/fo/fo.xsl"
version="2.0;com.xmlmind.ditac.xslt.ExtensionFunctions.registerAll"
file="__doc.ditac" to="__doc.fo"
documentation="http://www.xmlmind.com/ditac/_distrib/doc/manual/xsltParams.html#xsltParams__%{parameter.name|paper-type}"
label="Convert to RTF, WordprocessingML, OOXML, OpenDocument">
<parameter name="ditacListsURI">%w/ditac_lists.ditac_lists</parameter>
<parameter name="foProcessor">XFC</parameter>
<parameter name="number">all</parameter>
<parameterGroup name="dita.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="dita.toRTF.XFCParameters" />
</processFO>
<upload base="%2">
<copyFile file="__doc.%0" to="%2" />
</upload>
</process>
</command>
<command name="dita.convertToRTF">
<macro>
<sequence>
<command name="XXE.save" parameter="[checkIsSaved]" />
<command name="selectConvertedFile"
parameter="saveFileURLWithExtension=%0" />
<command name="dita.toRTF" parameter='"%0" "%1" "%_"' />
</sequence>
</macro>
</command>
<!-- =================================================================== -->
<command name="dita.toPS">
<process>
<invoke method="com.xmlmind.xmleditext.dita.PreProcess.process">
<argument>-v</argument>
<argument>info</argument>
<argument>-toc</argument>
<argument>-images</argument>
<argument>images/*.{%1,mml,svg,png,jpg,jpeg,gif}</argument>
<argument>-out</argument>
<argument>__doc.%0</argument>
<argument>-media</argument>
<argument>print</argument>
<argument>-chunk</argument>
<argument>single</argument>
<argument>-options</argument>
<argument>dita.toPS.options</argument>
</invoke>
<transform stylesheet="xsl/fo/fo.xsl"
version="2.0;com.xmlmind.ditac.xslt.ExtensionFunctions.registerAll"
file="__doc.ditac" to="__doc.fo"
documentation="http://www.xmlmind.com/ditac/_distrib/doc/manual/xsltParams.html#xsltParams__%{parameter.name|paper-type}"
label="Convert to PDF, PostScript">
<parameter name="ditacListsURI">%w/ditac_lists.ditac_lists</parameter>
<parameter name="outputFormat">%0</parameter>
<parameter name="number">all</parameter>
<parameterGroup name="dita.toPS.transformParameters" />
</transform>
<processFO processor="XEP" file="__doc.fo" to="__doc.%0">
<parameter name="OUTPUT_FORMAT">%0</parameter>
<parameter name="PS.LANGUAGE_LEVEL">2</parameter>
<parameterGroup name="dita.toPS.XEPParameters" />
<processFO processor="FOP" file="__doc.fo" to="__doc.%0">
<parameter name="renderer">%0</parameter>
<parameter name="strict-validation">false</parameter>
<parameterGroup name="dita.toPS.FOPParameters" />
</processFO>
</processFO>
</process>
</command>
<command name="dita.toPSFile">
<process>
<subProcess name="dita.toPS" parameter='"%0" "%1"' />
<upload base="%2">
<copyFile file="__doc.%0" to="%2" />
</upload>
</process>
</command>
<command name="dita.convertToPS">
<macro>
<sequence>
<command name="XXE.save" parameter="[checkIsSaved]" />
<command name="selectConvertedFile"
parameter="saveFileURLWithExtension=%0" />
<command name="dita.toPSFile" parameter='"%0" "%1" "%_"' />
</sequence>
</macro>
</command>
<!-- =================================================================== -->
<command name="dita.toPSPrinter">
<process>
<subProcess name="dita.toPS" parameter='"%0" "%1"' />
<print file="__doc.%0" printer="%2" />
</process>
</command>
<command name="dita.printPS">
<macro>
<sequence>
<command name="XXE.save" parameter="[checkIsSaved]" />
<command name="selectPrinter" parameter="%0" />
<command name="dita.toPSPrinter" parameter='"%0" "%1" "%_"'/>
</sequence>
</macro>
</command>
<!-- =================================================================== -->
<menu label="-" insert="ifDefined(XXE.Edition.Unrestricted)after ##last">
<separator />
<menu label="_Convert Document">
<item label="Convert to X_HTML..."
command="dita.convertToXHTML" />
<item label="Convert to XHTML [_one page]..."
command="dita.convertToXHTML1" />
<separator />
<item label="Convert to HTM_L Help..."
command="dita.convertToHTMLHelp" />
<separator />
<item label="Convert to _Java Help..."
command="dita.convertToJavaHelp" />
<separator />
<item label="Convert to _Eclipse Help..."
command="dita.convertToEclipseHelp" />
<separator />
<item label="Convert to EPU_B..."
command="dita.convertToEPUB" />
<separator />
<item label="Convert to _RTF (Word 2000+)..."
command="dita.convertToRTF"
parameter='rtf Cp1252' />
<separator />
<item label="Convert to _WordprocessingML (Word 2003+)..."
command="dita.convertToRTF"
parameter='wml UTF-8' />
<separator />
<item label="Convert to Office Open _XML (Word 2007+)..."
command="dita.convertToRTF"
parameter='docx UTF-8' />
<separator />
<item label="Convert to Open_Document (OpenOffice.org 2+)..."
command="dita.convertToRTF"
parameter='odt UTF-8' />
<separator />
<item label="Print Post_Script..."
command="dita.printPS"
parameter='ps eps,ps' />
<separator />
<item label="Convert to _PDF..."
command="dita.convertToPS"
parameter='pdf pdf' />
</menu>
</menu>
<!-- =================================================================== -->
<command name="dita.preprocessingOptions">
<class>com.xmlmind.xmleditext.dita.PreprocessingOptions</class>
</command>
<menu name="customizeConfig" label="_Customize Configuration">
<item label="_Preprocessing Options..."
command="dita.preprocessingOptions" />
</menu>
</configuration>
--
XMLmind XML Editor Support List
[email protected]
http://www.xmlmind.com/mailman/listinfo/xmleditor-support