This is the mail archive of the docbook-apps@lists.oasis-open.org mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[docbook-apps] could anybody plz declare the behavior of $body.fontset


hi,

im just trying to add a new font to my fo-stylesheets ('Symbol' for list-bullets).
but whatever i do (what the complete guide says) the only font-family <fo:root> gets is "Times"

body.fontset is declared in pagesetup.xsl (besides: why not in param.xsl?) 

---
<!--<xsl:param name="body.fontset">
  <xsl:value-of select="$body.font.family"/>
  <xsl:if test="$body.font.family != ''
                and $symbol.font.family  != ''">,</xsl:if>
    <xsl:value-of select="$symbol.font.family"/>
</xsl:param>-->

<xsl:param name="body.fontset" select="'Arial'" />
---
(ive changed it to the easier statement to be sure it has the value "Arial".)

body.fontset is declared as a top-level elemet - not in a template - so it cant (?) get another value than its initial value. (?)
if i search all the stylesheet files, i do only find _one_ string ' name="body.fontset" ' (pagesetup.xsl) imho this ensures, that body.fontset is not used as a param in any call-template statement (which could change its value(?) )

whatever, i added a <xsl:message> in docbook.xsl which outputs the value of body.fontset, and it is ... "Times" :/
i changed this line
<xsl:param name="body.fontset" select="'Arial'" />
to
<xsl:variable name="body.fontset" select="'Arial'" />
now xsl:message outputs "Arial" ...

well, maybe this is more XSLT-stuff but db, but you know the stylesheets better anyone else ...
this takes me about 2.5 hrs now, got enough :)


thx,

Sebastian



To unsubscribe from this list, send a post to docbook-apps-unsubscribe@lists.oasis-open.org, or visit http://www.oasis-open.org/mlmanage/.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]