OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: Re: [docbook-apps] Body Font Size


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi Giuseppe,
I just did the following command on my system:

exec java -classpath /usr/share/java/saxon.jar
com.icl.saxon.StyleSheet -o foo.fo article.xml
http://www.agamura.com/docbook/xsl/current/fo/docbook.xsl

And got the following result:

<?xml version="1.0" encoding="UTF-8"?><fo:root
xmlns:fo="http://www.w3.org/1999/XSL/Format";
font-family="serif,Symbol,ZapfDingbats" font-size="12pt"
                                                   ^^^^
text-align="justify" line-height="normal"
font-selection-strategy="character-by-character"
line-height-shift-adjustment="disregard-shifts" writing-mode="lr-tb"
language="en">
...

Perhaps you're not actually invoking the customization layer you think
you're invoking? Are catalog files involved somehow?

Setting body.font.master is such basic functionality that if it
weren't working, someone would have noticed :-)

David

On 12/19/2011 03:58 PM, Giuseppe Greco wrote:
> ... yes, the stylesheet correctly selects A4... and I confirm there
> is no font.size parameters in other included files.
> 
> Anyway, I can also survive with 10pt fonts :-)
> 
> Thank you for your hints. j3d
> 
> On Mon, 2011-12-19 at 10:23 -0800, Richard Hamilton wrote:
>> Giuseppe,
>> 
>> In the file you point to, I notice that you also include two
>> other stylesheets. I'd take a look at those and see if they set
>> body.font.size.
>> 
>> Also, make sure that the style sheet is actually being run (i.e.,
>> check that the other changes, like setting the page size to A4,
>> are occurring).
>> 
>> Good Luck
>> 
>> Dick On Dec 19, 2011, at 2:06 AM, Giuseppe Greco wrote:
>> 
>>> Hi Dick,
>>> 
>>> My customization layer is trivial and looks fine - if you want
>>> you can give a look at
>>> http://www.agamura.com/docbook/xsl/current/fo/docbook.xsl
>>> 
>>> I don't set the body.font.size parameter anywhere... I'll try
>>> what you suggest here below as soon as I get home this
>>> evening.
>>> 
>>> Talk 2 u soon, j3d
>>> 
>>> 
>>> On 19.12.2011 02:59, Richard Hamilton wrote:
>>>> Giuseppe,
>>>> 
>>>> Here are a couple of things to check out:
>>>> 
>>>> 1) Are you sure your customization is being called correctly
>>>> and that this parameter isn't in a comment or otherwise not
>>>> seen?
>>>> 
>>>> 2) body.font.master is indirectly used to set the
>>>> body.font.size parameter, which actually sets the body font
>>>> point size. So, make sure you're not setting body.font.size
>>>> somewhere else in your customization. It is already set as
>>>> follows in the standard param.xsl file:
>>>> 
>>>> <xsl:param name="body.font.size"> <xsl:value-of
>>>> select="$body.font.master"/><xsl:text>pt</xsl:text> 
>>>> </xsl:param>
>>>> 
>>>> If you have set it to some other value in your customization,
>>>> that could be the problem.
>>>> 
>>>> If that doesn't fix the problem, you might try to put the
>>>> three lines above in your customization and see if that makes
>>>> a difference.
>>>> 
>>>> HTH
>>>> 
>>>> Best Regards, Dick Hamilton ------- XML Press XML for
>>>> Technical Communicators http://xmlpress.net 
>>>> hamilton@xmlpress.net
>>>> 
>>>> On Dec 18, 2011, at 1:52 PM, Giuseppe Greco wrote:
>>>> 
>>>>> Dear all,
>>>>> 
>>>>> I added the following statement to my customization layer
>>>>> to set the default font size to 12:
>>>>> 
>>>>> <xsl:param name="body.font.master">12</xsl:param>
>>>>> 
>>>>> ... but when I generate the PDF I always get the default
>>>>> size (10).
>>>>> 
>>>>> Am I missing something?
>>>>> 
>>>>> Tx, j3d
>>>>> 
>>>>> -- ---------------------------------------- Giuseppe Greco 
>>>>> 6949 Comano Switzerland
>>>>> 
>>>>> call giuseppe.greco via Skype phone:  +41 (0)91 234 51 09 
>>>>> mobile: +41 (0)79 590 33 06 email:
>>>>> giuseppe.greco@agamura.com 
>>>>> ----------------------------------------
>>>>> 
>>>>> 
>>>>> ---------------------------------------------------------------------
>>>>>
>>>>> 
To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org
>>>>> For additional commands, e-mail:
>>>>> docbook-apps-help@lists.oasis-open.org
>>>>> 
>>>> 
>>>> 
>>>> ---------------------------------------------------------------------
>>>>
>>>> 
To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org
>>>> For additional commands, e-mail:
>>>> docbook-apps-help@lists.oasis-open.org
>>> 
>>> -- GIUSEPPE GRECO Chief Technology Officer
>>> 
>>> Agamura, Inc. 6900 Lugano - Switzerland Phone +41 (0)91 234 51
>>> 09 ● Mobile +41 (0)79 590 33 06 ● Skype giuseppe.greco 
>>> giuseppe.greco@agamura.com - www.agamura.com
>>> 
>>> ---------------------------------------------------------------------
>>>
>>> 
To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org
>>> For additional commands, e-mail:
>>> docbook-apps-help@lists.oasis-open.org
>>> 
>> 
>> 
>> ---------------------------------------------------------------------
>>
>> 
To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org
>> For additional commands, e-mail:
>> docbook-apps-help@lists.oasis-open.org
>> 
> 

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQEcBAEBAgAGBQJO77aqAAoJEMHeSXG7afUh08gIAJBuuRpcG1JuOkzVNkgKl9gf
Quu6C6L43WhADcu/WC+OIaOQGL9FiwFzpkr/7alRF3KN/qqSWnU6tdAtSBs368eM
JuBHg0MFNs3Q28wTLj6xP955SJNNeevPjJPvJrLWIpV1vCmHbhm8Xo/11dwKs7HK
dir3jakrJk0lXNvkLTAIrbMtCow2h5RQ366/8SClR4ZHTvUEpY0PmhVnFWQ5pnYH
vrg8/FpPUGdt/CqxBwO67hOfXr2DpMjgXTT5YHglu4cDFSspqG3PTQepGxCo58Ee
uBdJDXSHUDJObWMS7Qw5qtRktL3x8fRS3FsS+v/qDWHj0Dq8FagXtiWdHzN4cDA=
=y8F1
-----END PGP SIGNATURE-----


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]