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]

Re: [docbook-apps] Problems with root.properties and XEP


> and did
> 
> <xsl:attribute-set name="root.properties">
>    <xsl:attribute name="body.font.size">10pt</xsl:attribute>
>    <xsl:attribute name="body.font.family">serif</xsl:attribute>
>    <xsl:attribute name="line.height">normal</xsl:attribute>
> </xsl:attribute-set>
> 
> Now XEP says:
> 
> (document
> (validate
> {!file:/KM/usr/ziegler/LEDA/LEDATutorium/pdf/LEDATutorium.fo: line 1: 
> [error] Attribute 'body.font.size' cannot occur at element 'fo:root'.}
> 
> {!file:/KM/usr/ziegler/LEDA/LEDATutorium/pdf/LEDATutorium.fo: line 1: 
> [error] Attribute 'body.font.family' cannot occur at element 'fo:root'.}
> 
> {!file:/KM/usr/ziegler/LEDA/LEDATutorium/pdf/LEDATutorium.fo: line 1: 
> [error] Attribute 'line.height' cannot occur at element 'fo:root'.}
> [validation total: 3 errors])

Bob Stayton in his book suggests that you 

- set values of body.font.size, body.font.family and other stylesheet parameters in your customization layer
or
- create new attribute-set with XSL-FO properties (such as font-size font-family).

XSL FO does not have body.font.size attribute; but DocBook XSL has a parameter with 
this name.

What you probably need is to add

<xsl:param name="body.font.size">10pt</xsl:param>
<xsl:param name="body.font.family">serif</xsl:param>
<xsl:param name="line.height">normal</xsl:param>

to the customization layer.

David Tolpin

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]