CVS: jfor/samples/cocoon/tests/simple-tests empty-block-attributes.fo.xml,NONE,1.1

Bertrand Delacretaz <[email protected]> Mon, 12 Aug 2002 06:26:10 -0700
Newsgroups gmane.text.xml.jfor.cvs
Message-ID <[email protected]>
Update of /cvsroot/jfor/jfor/samples/cocoon/tests/simple-tests
In directory usw-pr-cvs1:/tmp/cvs-serv23395

Added Files:
	empty-block-attributes.fo.xml 
Log Message:
empty-block-attributes.fo.xml test added

--- NEW FILE: empty-block-attributes.fo.xml ---
<?xml version="1.0" encoding="iso-8859-1"?>

<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">

    <fo:layout-master-set>
        <fo:simple-page-master 
            master-name="single" 
            page-height="29.7cm" 
            page-width="21cm" 
            margin-top="1cm"
            margin-bottom="2cm" 
            margin-left="2.5cm" 
            margin-right="2.5cm">
            <fo:region-body margin-top="3cm"/>
            <fo:region-before extent="3cm"/>
            <fo:region-after extent="1.5cm"/>
        </fo:simple-page-master>
    </fo:layout-master-set>
    
    <fo:page-sequence master-reference="single" initial-page-number="1">
        <fo:flow flow-name="xsl-region-body">
            <fo:block space-after="1cm">
                This is followed by 3 blocks A,B and C which should be all blue except
                for a red 10pt comment in its own block after block B.
            </fo:block>
            
            <fo:block color="blue" font-size="14pt" font-family="Arial">
                Block A Arial 18pt: 
                TEXT-A TEXT-B (in this case there's nothing between TEXT-A and TEXT-B) 
            </fo:block>
            
            <fo:block space-before="1cm">&#160;</fo:block>
            
            <fo:block color="blue" font-size="14pt" font-family="Arial">
                Block B Arial 18pt: TEXT-A 
                <fo:block color="cyan"/>
                TEXT-B (in this case there's an empty block between TEXT-A and TEXT-B).
            </fo:block>
            
            <fo:block font-size="10pt" font-style="italic" color="red">
                problem: with jfor 0.7.1dev-e, TEXT-B takes the attributes of the
                empty block (color="cyan"), although TEXT-B is contained in the Arial 18pt block.
            </fo:block>
            
            <fo:block color="blue" space-before="1cm">&#160;</fo:block>
            
            <fo:block color="blue" font-size="14pt" font-family="Arial">
                Block C Arial 18pt: TEXT-A 
                <fo:block color="blue" font-size="14pt" font-family="Arial"/>
                TEXT-B (same as BLOCK B but the empty block has color and font-size too, like
                when inherit-attributes.xsl is used) 
            </fo:block>
        </fo:flow>
    </fo:page-sequence>
</fo:root>



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf