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] ERROR - Invalid property value encountered in font-size="NaN":


This is likely caused by setting the 'body.font.master' to a value that is not just a number. This is a stock DocBook XSL parameter, but it is a little odd because it must be an integer value because it is used for calculating relative sizes, as for example in fo/param.xsl:

<xsl:param name="footnote.font.size">
Â<xsl:value-of select="$body.font.master * 0.8"/><xsl:text>pt</xsl:text>
</xsl:param>

If body.font.master is set to '10pt' instead of '10', the stylesheet treats it as Not a Number (NaN) and generates that error.

Bob Stayton
Sagehill Enterprises
bobs@sagehill.net
On 3/10/2019 10:34 AM, Bernhard Kleine wrote:

Since today I encounter an error while transforming my book with the standard saxon which is provided by oxygen 21. This error I can not locate:

(excerpt of the fo-file)

<fo:footnote>
ÂÂÂ <fo:inline>
ÂÂÂ ÂÂÂ <fo:inline font-family="Alegreya, Times New Roman,Alegreya, Symbol,ZapfDingbats" font-size="75%" font-weight="normal" font-style="normal" baseline-shift="super">a</fo:inline>
ÂÂÂ </fo:inline>
ÂÂÂ <fo:footnote-body font-family="Alegreya, Times New Roman,Alegreya, Symbol,ZapfDingbats" font-size="NaN" font-weight="normal" font-style="normal" text-align="justify" start-indent="0pt" end-indent="0pt" text-indent="0pt" hyphenate="true" wrap-option="wrap" linefeed-treatment="treat-as-space">
ÂÂÂ <fo:block>
ÂÂÂ ÂÂÂ <fo:inline font-family="Alegreya, Times New Roman,Alegreya, Symbol,ZapfDingbats" font-size="75%" font-weight="normal" font-style="normal" baseline-shift="super">a</fo:inline> âW. Sauter und P. HÃttenschwiler (2004)Â <fo:inline font-style="italic">Zum System der palaearktischen Psychidae. 3. Teil: BestimmungsschlÃssel fÃr die SÃcke</fo:inline>â W. Sauter und P. HÃttenschwiler (<fo:inline font-weight="bold">Nota lepidoptera</fo:inline> 27: 59-69) ; im Internet unter
ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ https://archive.org/stream/notalepidopter2712004soci#page/58/mode/2up.</fo:block>Â
ÂÂÂ </fo:footnote-body>
</fo:footnote>


The error was:
ERROR - Invalid property value encountered in font-size="NaN": org.apache.fop.fo.expr.PropertyException: file:/F:/EigeneDateien/Schmetterlingsbuechlein/xml/FalterInLenzkirch.xml_xslt:55:13926: No conversion defined NaN; property:'font-size' (Siehe Position 55:14415)
org.apache.fop.fo.expr.PropertyException: file:/F:/EigeneDateien/Schmetterlingsbuechlein/xml/FalterInLenzkirch.xml_xslt:55:13926: No conversion defined NaN; property:'font-size'

I have looked into the Oxygen customization layer, I have even changed the font-size manually:

In the private xsl file there is not any appearance of "NaN" therefore I am stymied.

I would appreciate any immediate help.

Bernhard

-- 
spitzhalde9
D-79853 lenzkirch
bernhard.kleine@gmx.net
www.b-kleine.com, www.urseetal.net
Ich darf auch auf mein neues Buch "Falter in Lenzkirch" aufmerksam machen 
(Infos bei mir)
-
thunderbird mit enigmail
GPG schlÃssel: D5257409
fingerprint:
08 B7 F8 70 22 7A FC C1 15 49 CA A6 C7 6F A0 2E D5 25 74 09


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