You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by Sam Fuqua <sa...@gmail.com> on 2009/03/20 02:12:02 UTC

Rendering errors due to XSL color change

Hi, I have the following xsl file, which only seems to work when the
background-color attribute in the page-master is black.  When it is changed
to any other color, the PDF does not render.  Does anybody know why this
would be?

<?xml version="1.0"?>
<xsl:stylesheet version="1.0" xmlns:xsl="
http://www.w3.org/1999/XSL/Transform"  xmlns:fo="
http://www.w3.org/1999/XSL/Format" xmlns:testscript="
http://jazz.net/xmlns/alm/qm/v0.1/">
    <xsl:template match="/">
        <fo:root>
            <fo:layout-master-set>
                <fo:simple-page-master master-name="Letter"
page-height="11in" page-width="8.5in">
                    <fo:region-body region-name="only_region" margin="1in"
background-color="#000000"/>
                </fo:simple-page-master>
            </fo:layout-master-set>
            <fo:page-sequence master-reference="Letter">
                <fo:flow flow-name="only_region">
                    <fo:block text-align="center">Hello, World!</fo:block>
                </fo:flow>
            </fo:page-sequence>
        </fo:root>
    </xsl:template>
</xsl:stylesheet>

Sam Fuqua