[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: [docbook-apps] any problems with DocBook XSL 1.79.0?
Hi Peter,I don't think that's a problem specific to 1.79.0, because that should not work in 1.78.1 either. In your customization, when you do an xsl:choose for an attribute in an attribute-set, there must be a fallback value in an xsl:otherwise clause, like:
<xsl:otherwise>inherit</xsl:otherwise> FOP is rejecting the empty attribute value. Bob Stayton Sagehill Enterprises bobs@sagehill.net On 10/21/2015 4:43 PM, Peter Lavin wrote:
Hi Bob, Here's a problem with the background-color of admons that I ran into while trying to create a PDF using FOP 1.1. This error does not occur when using 1.78.1. The error message: Oct 21, 2015 7:21:56 PM org.apache.fop.events.LoggingEventListener processEvent SEVERE: Invalid property value encountered in background-color="": org.apache.fop.fo.expr.PropertyException: file:/Users/peter/writing/flare/flare.fo:2740:39: No conversion defined ; property:'background-color' (See position 2859:397) org.apache.fop.fo.expr.PropertyException: file:/Users/peter/writing/flare/flare.fo:2740:39: No conversion defined ; property:'background-color' ... Here's a fo file excerpt: <fo:block id="idm178084196336" space-before.optimum="1em" space-before.minimum="0.8em" space-before.maximum="1.2em" space-after.optimum="1em" space-after.minimum="0.8em" space-after.maximum="1.2em" padding=".1in" padding-top=".1in" margin="0.05in" font-style="italic" border-top="0.5pt solid grey" border-bottom="1pt solid grey" background-color="" margin-left="0.25in" margin-right="0.25in"> <fo:block keep-with-next.within-column="always" font-size="12pt" font-weight="bold" hyphenate="true">Note</fo:block> <fo:block> <fo:block space-before.optimum="1em" space-before.minimum="0.8em" space-before.maximum="1.2em" > It is tidier to import resources into the project <fo:inline font-size="10pt" font-family="monospace" >Content/Resources</fo:inline> folder. If you choose this option any links to images, CSS files, or JavaScript files will be adjusted to point to the resources in the <fo:inline font-size="10pt" font-family="monospace" >Content/Resources</fo:inline> folder. </fo:block> </fo:block> </fo:block> Here's the DocBook source code: <note> <para> It is tidier to import resources into the project <filename>Content/Resources</filename> folder. If you choose this option any links to images, CSS files, or JavaScript files will be adjusted to point to the resources in the <filename>Content/Resources</filename> folder. </para> </note> Here's the customization override of the fo/docbook.xsl file: <xsl:attribute-set name="nongraphical.admonition.properties"> <xsl:attribute name="space-before.optimum">1em</xsl:attribute> <xsl:attribute name="space-before.minimum">0.8em</xsl:attribute> <xsl:attribute name="space-before.maximum">1.2em</xsl:attribute> <xsl:attribute name="space-after.optimum">1em</xsl:attribute> <xsl:attribute name="space-after.minimum">0.8em</xsl:attribute> <xsl:attribute name="space-after.maximum">1.2em</xsl:attribute> <xsl:attribute name="padding">.1in</xsl:attribute> <xsl:attribute name="padding-top">.1in</xsl:attribute> <xsl:attribute name="margin">0.05in</xsl:attribute> <!--xsl:attribute name="padding-right">0.1in</xsl:attribute--> <xsl:attribute name="font-style">italic</xsl:attribute> <xsl:attribute name="border-top">0.5pt solid grey</xsl:attribute> <xsl:attribute name="border-bottom">1pt solid grey</xsl:attribute> <!-- customize bg colour for admons --> <xsl:attribute name="background-color"> <xsl:choose> <xsl:when test="self::d:note">#edf9ff</xsl:when> <xsl:when test="self::d:warning">#fff1dc</xsl:when> </xsl:choose> </xsl:attribute> </xsl:attribute-set> If you need more information let me know. And thanks very much for all the work you've done on DocBook--it's greatly appreciated. On 21 October 2015 at 18:35, Bob Stayton <bobs@sagehill.net> wrote:It has been about a week since candidate DocBook XSL 1.79.0 was released, and it has been downloaded about 150 times. Has anyone who has tried it run into any problems yet? If so, please let me know so they can be fixed for the 1.79.1 release. -- Bob Stayton Sagehill Enterprises bobs@sagehill.net --------------------------------------------------------------------- To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]