On 12/17/2015 03:06 PM, Grundtvig Nielsen Niels wrote:
I have a directory T:\12_XPS\05_userGuideDITA that contains
·a set of .dita files
·a .ditamap file
·cover_titlepage.fo (in fact, a copy of the sample .fo file referenced
in the XMLmind DITA Converter Manual)
In the Document conversion parameters for creating a .pdf from the
.ditamap, I have included cover_titlepage.fo
Conversion fails with
Transforming XML file "__doc.ditac" to "__doc.fo" using "<property
name="dita.toPS.transform">"
Compiling stylesheet "file:/T:/structured/fo_custom.xsl"
Using the following stylesheet parameters:
pdf-outline=yes
outputFormat=pdf
title-page=cover_titlepage.fo
title-color=#0066a3
footer-left=xslfo test
body-font-family=Arial
show-draft-comments=yes
footer-right=two-sides first||odd:: {{page-number}};;
one-side:: {{page-number}}
number=all
title-after=fig
footer-center=version 1.1
ditacListsURI=file:/C:/Users/a548040/AppData/Local/Temp/xxe6446025367163177649_d/ditac_lists.ditac_lists
Processing XML file
"C:\Users\a548040\AppData\Local\Temp\xxe6446025367163177649_d\__doc.ditac"
Fatal error: Processing terminated by xsl:message at line 91 in
ditac_titlePage.xsl; SystemID:
file:/C:/Program%20Files%20(x86)/XmlMind_6.1.0/addon/config/dita/xsl/fo/ditac_titlePage.xsl;
Line#: 91; Column#: -1
Have I just done something wrong when specifying the URI for title-page?
or are there several things I have failed to understand?
Thanks in advance for any light you can shed here.
The doc says:
---
URI of a custom title page
Specifies the URI of a custom title page.
If the URI is relative, it is relative to
the current working directory of the user.
---
See
http://www.xmlmind.com/ditac/_distrib/doc/manual/xsltParams.html#xsltParams__title-page
You seem to have specified a relative URL:
title-page=cover_titlepage.fo
Therefore cover_titlepage.fo is expected to be found in the working
directory of XXE.
While the current working directory is an obvious concept when you run a
command-line utility like ditac, there is no easy way to determine it
when you are running XXE (especially on Windows).
Therefore, please do not type the value of a parameter when this value
is expected to be a filename. Instead, please use the "Browse" button
found in the dialog box displayed after clicking "Add" in the "Document
conversion parameters" panel.
See
http://www.xmlmind.com/xmleditor/_distrib/doc/help/conversion_parameters_editor.html
This "Browse" button (which has a "folder" icon) will let you pick a
file and will automatically specify the value of the parameter as an
*absolute* *URL*.
You'll end up with something like:
title-page=file:/T:/12_XPS/05_userGuideDITA/cover_titlepage.fo
and it should work fine. Well, I did that and it worked fine for me.
--
XMLmind XML Editor Support List
xmleditor-support@xmlmind.com
http://www.xmlmind.com/mailman/listinfo/xmleditor-support