Hi Hussein,
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 DITA Converter Support List
[email protected]
http://www.xmlmind.com/mailman/listinfo/ditac-support