Hi Hussein,
thanks for a wonderfull explanation. I am much futher ahead now.
There is one more thing i would like to do now. Instead of changing the
value of field "XSL stylesheet" in XMLmind XSL Utility in order to
make it point to my custom XSL file like you explained below, is there a way
to do this from the command line?
Best regards and very Happy New Year,
Alberto
----- Original Message -----
From: "Hussein Shafie" <[email protected]>
To: "Alberto Perri" <[email protected]>
Cc: <[email protected]>; <[email protected]>
Sent: Thursday, December 23, 2010 7:33 PM
Subject: Re: [XFC] how to have tables take up the width of the page in
*.docx and *.odt files
> On 12/23/2010 05:01 PM, Alberto Perri wrote:
>> Hi Hussein ,
>>
>> thank you very much for the information. That was a great help.
>>
>> Now i have more questions and i am starting to feel quite guilty trying
>> to get answers from you like that last two time because they normally
>> would be support issues. Perhaps we can work out a private deal. I do
>> not need full support but just some advice and a nudge in the right
>> direction. Even with my income, hovering around zero after expenses, i
>> am willing to compensate you for your efforts.
>
> It's true that this level of support is in principle reserved to the
> customers of XMLmind products.
>
>
>
>
>>
>> * Question 1
>> o Which xsl file is associated with chapter headings or
>> topics. I would like to override that template to provide
>> chapter headings or topics with different font, color,
>> underlining, etc.
>> * Quesion 2
>> o Which xsl file is associated with spacing between chapter
>> headings or topics. I would like to reduce the spacing
>> between them.
>> * Question 3
>> o Where would i find the template that deals with paragraphs.
>> I would like to reduce the space between the title and the
>> contents of the paragraph. I would also like to indent the
>> first line of a paragraph.
>
>
> You need to redefine one or more xsl:attribute-sets as explained here:
> "Customizing the look of the PDF files generated by ditac" --
> http://www.xmlmind.com/ditac/_distrib/doc/manual/manual-6.html#customAttributeSet
>
> ("ditac" -- short name for "XMLmind DITA Converter" -- is the DITA
> processor integrated in XMLmind XSL Utility, XMLmind XSL Server and
> XMLmind XML Editor.)
>
> For example, a "p" (DITA paragraph element) being a ``body element''
> according to the DITA spec, its xsl:attribute-set is defined in
> XMLmind_XSL_Utility_install_dir/addon/config/dita/xsl/fo/body.xsl.
>
> Excerpts from body.xsl:
> ---
> <xsl:attribute-set name="p" use-attribute-sets="block-style">
> </xsl:attribute-set>
>
> <xsl:template match="*[contains(@class,' topic/p ')]">
> <fo:block xsl:use-attribute-sets="p">
> ...
> ---
>
> Therefore you need to redefine the xsl:attribute-set called "p" in order
> to change anything related to the look of paragraphs.
>
> Headings are "title" elements. Their xsl:attribute-sets are found in
> XMLmind_XSL_Utility_install_dir/addon/config/dita/xsl/fo/topic.xsl
>
> Excerpts from topic.xsl:
> ---
> <xsl:attribute-set name="title" use-attribute-sets="block-style">
> <xsl:attribute name="hyphenate">false</xsl:attribute>
> <xsl:attribute name="font-family">sans-serif</xsl:attribute>
> <xsl:attribute name="font-weight">bold</xsl:attribute>
> <xsl:attribute name="text-align">left</xsl:attribute>
> <xsl:attribute name="keep-with-next.within-column">always</xsl:attribute>
> </xsl:attribute-set>
>
> <xsl:attribute-set name="topic-title" use-attribute-sets="title">
> <xsl:attribute name="font-size">160%</xsl:attribute>
> <xsl:attribute name="padding-bottom">0.05em</xsl:attribute>
> <xsl:attribute name="border-bottom">0.5pt solid black</xsl:attribute>
> <xsl:attribute name="space-before.optimum">1.5em</xsl:attribute>
> <xsl:attribute name="space-before.minimum">1.2em</xsl:attribute>
> <xsl:attribute name="space-before.maximum">1.8em</xsl:attribute>
> </xsl:attribute-set>
>
> <xsl:attribute-set name="part-title" use-attribute-sets="topic-title">
> <xsl:attribute name="font-size">180%</xsl:attribute>
> </xsl:attribute-set>
>
> <xsl:attribute-set name="chapter-title"
> use-attribute-sets="topic-title">
> <xsl:attribute name="font-size">180%</xsl:attribute>
> </xsl:attribute-set>
>
> <xsl:attribute-set name="appendix-title"
> use-attribute-sets="topic-title">
> <xsl:attribute name="font-size">180%</xsl:attribute>
> </xsl:attribute-set>
>
> <xsl:attribute-set name="section1-title"
> use-attribute-sets="topic-title">
> </xsl:attribute-set>
>
> ...
> ---
>
> Therefore implementing 1), 2), 3) is really straightforward and does not
> require any programming.
>
>
>
>
>> * Question 4
>> o Is there already a template that will allow prepending table
>> row entries with index values. Stated another way, is
>> there a template that prepends a column to a table to
>> hold the number of the row for the current table? The row
>> number should increment integrally for each row passed
>> the column header of the table. I can create tables like
>> this manually but i just wanted to know if there already is
>> a template that does this already.
>
> No. There is no such facility because to our knowledge, this requirement
> is quite uncommon.
>
> The XSL template used to process (CALS, complex) tables is found in:
>
> XMLmind_XSL_Utility_install_dir/addon/config/dita/xsl/fo/table.xsl
>
> and in:
>
> XMLmind_XSL_Utility_install_dir/addon/config/dita/xsl/fo/simpleTable.xsltable.xsl
>
> for simpletables.
>
>
>
>
>>
>> And finally where would i place the customized templates so that they
>> will override the original parts of the original template.
>
> Anywhere you want. However, you must tell XMLmind XSL Utility that you
> are using a custom XSL stylesheet to convert DITA documents to XSL-FO.
>
> This is done by changing the value of field "XSL stylesheet" in order to
> make it point to your custom XSL file. The attached screenshot shows you
> the default field value in my installation of XMLmind XSL Utility.
>
> More information in:
> http://www.xmlmind.com/foconverter/_distrib/doc/help/com.xmlmind.xslutil.ConversionEditor.html
>
> Look for "4. Specify the transform step, if any.".
>
>
>
>>
>> If all of these issues are described in some help document or
>> manual could you send me a link to it.
>>
>> Thanks and best regards. Your tool is great!
>> Alberto
>>
>
> Your questions seems to more related to "XMLmind DITA Converter" than to
> "XMLmind XSL Utility", so may be you should send them to:
>
> [email protected]
>
>
>
>
--
XMLmind FO Converter Support List
[email protected]
http://www.xmlmind.com/mailman/listinfo/xfc-support