1) Start XMLmind XSL Utility.
2) Select the conversion called "ditaToDocx".
3) Click "Conversion specification|Edit". Doing this displays a dialog box.
4) Click the "Transform" tab.
5) If you already have a customization file created by hand, then make
sure that it is valid and that it contains:
---
<xsl:import href="xslutil-config:dita/xsl/fo/fo.xsl"/>
---
(The above line imports the stock "dita/xsl/fo/fo.xsl", no matter where
you have installed XMLmind XSL Utility.)
6) Click the Browse files button (``folder icon'') which is found at the
right of the "XSLT stylesheet" text field.
7) Doing this displays a file chooser dialog box. Use it to select your
customization file.
8) Click OK to close the "Conversion specification|Edit" dialog box.
Well, now if it still does not work, then I'm sorry but I cannot see how
I can help you more that what I did.
I've of course tested everything explained in my emails and it works fine.
---
PS: This support request is more related to XMLmind XSL Utility than it
is to XMLmind DITA Converter. That's why it's better to post to
[email protected].
On 12/04/2013 08:02 PM, Julie McHam wrote:
Thank you for the instructions. I am having some problems.
1. I created a custom XSL file by hand a while back that works fine. I'm trying
to use that file with the Customize feature in XSL Utility, but I cannot figure
out how it works. I would prefer to update the file manually.
2. I added the following code to my custom XSL file, but it has no effect on my DOCX output. I
tried using both "after" and "before" attribute values.
<!-- HEADINGS -->
<!-- Align top of left and right sides of headings -->
<xsl:attribute-set name="header-center">
<xsl:attribute name="display-align">after</xsl:attribute>
</xsl:attribute-set>
<xsl:attribute-set name="header-left">
<xsl:attribute name="display-align">after</xsl:attribute>
</xsl:attribute-set>
<xsl:attribute-set name="header-right">
<xsl:attribute name="display-align">after</xsl:attribute>
</xsl:attribute-set>
Please advise.
Thank you,
Julie
-----Original Message-----
From: Hussein Shafie [mailto:[email protected]]
Sent: Wednesday, December 04, 2013 2:17 AM
To: Julie McHam
Cc: [email protected]; [email protected]
Subject: Re: [ditac] Changing cell alignment in DOCX output headers
My mistake: in my previous post I've typed "bottom" instead of "after".
The correct value for attribute "display-align" is "after", not "bottom".
On 12/04/2013 12:08 AM, Julie McHam wrote:
Currently, when I transform DITA source files to DOCX output using the
XMLmind XSL Utility, the text in the headers is aligned at the bottom
of the table cells in the header. (The left side is the document
title; the right side is the document chapter.) Some chapters have
long titles and wrap around to a second line. It would look better if
both the document title and chapter title were aligned at the top of
the table cells. What do I need to change to accomplish this?
Please customize the XSLT stylesheet which generates XSL-FO and then .docx as explained
in "Customizing a stock XSLT stylesheet". See
http://www.xmlmind.com/foconverter/_distrib/doc/help/com.xmlmind.xslutil.ConversionEditor.html#customizing_xslt
Using a recent version of XMLmind XSL Utility, this can be done from within the
application without having to hand-edit any file.
You'll have to modify the "header-left", "header-center" and "header-right"
attribute-sets by adding the following attribute:
display-align
to value:
after
See attached screenshot.
display-align reference is found here:
http://www.w3.org/TR/xsl/#display-align
---
PS: I've also attached to this email the XSLT stylesheet customization file
which has been generated for me by XMLmind XSL Customizer, the helper
application invoked by XMLmind XSL Utility.
--
XMLmind FO Converter Support List
[email protected]
http://www.xmlmind.com/mailman/listinfo/xfc-support