CVS: jfor/samples/cocoon/tests/inherit-attributes inherit-attributes-001.fo.xml,NONE,1.1

Bertrand Delacretaz <[email protected]> Fri, 12 Jul 2002 07:30:50 -0700
Newsgroups gmane.text.xml.jfor.cvs
Message-ID <[email protected]>
Update of /cvsroot/jfor/jfor/samples/cocoon/tests/inherit-attributes
In directory usw-pr-cvs1:/tmp/cvs-serv21516/samples/cocoon/tests/inherit-attributes

Added Files:
	inherit-attributes-001.fo.xml 
Log Message:
inherit-attributes.xsl and related tests added

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

<fo:root 
    xmlns:fo="http://www.w3.org/1999/XSL/Format"
    xmlns:jfor="http://www.jfor.org/xmlns/2001/stylesheet" 
> 
  <fo:layout-master-set> 
    <fo:simple-page-master 
        master-name="simple" 
        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> 
  
    <jfor:stylesheet default="Normal"> 
        <jfor:style name="Normal" font-size="10pt" font-family="Helvetica"/> 
    </jfor:stylesheet> 
  
  
  <fo:page-sequence master-name="first"> 
    <fo:flow flow-name="xsl-region-body"> 
      <fo:block font-size="16pt" font-weight="bold">
        Test inheritance of attributes from parent elements.
      </fo:block>
      <fo:block color="red">
        This will not work when directly converted with jfor 0.7.0: the inherit-attributes.xsl
        transform must be used to process this document before converting it with jfor.
        </fo:block> 
 
        <fo:block font-size="10pt" color="blue" space-before.optimum="10pt" text-align="end">
                <fo:block color="black" text-align="start" font-size="24pt">Test 1</fo:block> 
                <fo:block> 
                        Text A: 10pt, blue, space-before.optimum='10pt' text-align='end'
                        <fo:inline font-weight="bold">inline bold</fo:inline>
                        back to non-bold
                        <fo:inline color="red">
                            This whole phrase up to end is red now here comes the END 
                            <fo:block color="black">Here a black block text-align='end'</fo:block>
                        </fo:inline>
                        <fo:block text-align="start">
                            New block, same as text A but text-align="start"
                            <fo:block text-align="end">
                            Now a block with text-align='end' 
                            <fo:inline>and this has same formatting as text A</fo:inline>
                            <fo:inline font-family="Courier" font-weight="bold">
                                and this has same formatting but courier bold
                            </fo:inline>
                            </fo:block>
                        </fo:block>
                </fo:block> 
        </fo:block> 
         
        <fo:block break-before="page"> 
                <fo:block color="black" text-align="start" font-size="24pt">Test 2</fo:block> 
                <fo:block text-align="start"> 
                        <fo:block> 
                                Here default font, 10pt
                                <fo:inline font-size="12pt" font-weight="bold">
                                      12pt bold
                                      <fo:inline font-size="10pt">
                                      10pt bold
                                            <fo:inline font-weight="normal">
                                            10pt normal
                                            </fo:inline>
                                      </fo:inline>
                                </fo:inline>
                                back to default font
                        </fo:block> 
                </fo:block>              
        </fo:block> 

        <fo:block break-before="page" color="black" text-align="start" font-size="24pt">Test 3</fo:block> 
        <fo:block color="black" font-weight="bold">
            <fo:inline color="red" font-style="italic">Bold italic red text
                <fo:inline color="blue">Bold italic blue text</fo:inline>
            </fo:inline>
            <fo:inline>black bold text</fo:inline> 
            <fo:inline color="green">Bold green text
            <fo:inline font-style="italic" color="red">
                <fo:inline text-decoration="underline" font-style="italic" color="green">Bold Green italic underline text</fo:inline>
            </fo:inline> 
            </fo:inline> 
        </fo:block> 

    </fo:flow> 
  </fo:page-sequence> 
</fo:root> 



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Gadgets, caffeine, t-shirts, fun stuff.
http://thinkgeek.com/sf