<?xml version='1.0' encoding='ISO-8859-1'?>

<!-- This file makes part of an XSL Test Suite -->
<!-- Background-image tests                        -->

<plain-doc>

  <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
           xmlns:dcterms="http://purl.org/dc/terms/"
           xmlns:dc="http://purl.org/dc/elements/1.1/"
           xmlns:db="http://www.oasis-open.org/docbook/xml/4.2/">
     <rdf:Description rdf:about="http://xep.xattic.com/testsuite/features/bgimage.xml">
     <dc:title>  Block Properties - Background Images </dc:title>
        <dc:description>
          <db:para>
            Tests background image placement and tiling.
          </db:para>
        </dc:description>
        <dc:date>2003-07-24</dc:date><dcterms:requires rdf:resource="http://xep.xattic.com/testsuite/features/macro.xsl"/>
    </rdf:Description>
  </rdf:RDF> 


<!-- ========================================================== -->
<!-- MACROS                                                     -->

<!-- Common phrases -->

<define-macro name="text-no-repeat">
  should not be repeated
</define-macro>

<define-macro name="text-repeat-x">
  should be repeated along the x axis, forming a continuous horizontal stripe 
</define-macro>

<define-macro name="text-repeat-y">
  should be repeated along the y axis, forming a continuous vertical stripe 
</define-macro>

<define-macro name="text-repeat">
  should be repeated along both axes, covering the background completely 
</define-macro>


<!-- Single test frame. Arguments are:                -->
<!-- arg  - text string explaining the position       -->
<!--        of the background image inside the frame; -->
<!-- arg1 - 'background-repeat';                      -->
<!-- arg2 - 'background-position';                    -->

<define-macro name="test-frame">
  <frame border="thin dotted black"
         padding="18pt 6pt"
         margin-bottom="12pt"
         background="#E0E0E0"       
         background-image="url({$image-path}spots.jpg)"
         background-repeat="$arg1"  
         background-position="$arg2">
    In this paragraph, the background image <macro name="text-{$arg1}"/>.
    <arg/>
  </frame>
</define-macro>

<define-macro name="test-frame-hor">
  <frame border="thin dotted black"
         padding="18pt 6pt"
         margin-bottom="12pt"
         background="#E0E0E0"       
         background-image="url({$image-path}spots.jpg)"
         background-repeat="$arg1"  
         background-position-horizontal="$arg2">
    In this paragraph, the background image <macro name="text-{$arg1}"/>.
    <arg/>
  </frame>
</define-macro>

<define-macro name="test-frame-ver">
  <frame border="thin dotted black"
         padding="18pt 6pt"
         margin-bottom="12pt"
         background="#E0E0E0"       
         background-image="url({$image-path}spots.jpg)"
         background-repeat="$arg1"  
         background-position-vertical="$arg2">
    In this paragraph, the background image <macro name="text-{$arg1}"/>.
    <arg/>
  </frame>
</define-macro>


<!-- ========================================================== -->
<!-- Document Body                                              -->

<title>  Block Properties - Background Images </title>

<text>
  This text consists of a series of paragraphs, each having the same
  background image (three coloured spots). The paragraphs differ in
  the position and tiling of the image. All paragraphs have background
  color set to light grey (#E0E0E0) and a thin dotted black border around.
  Padding is 18 points from top and bottom, and 6 points from left 
  and right. There should be a space of 12 pt between the paragraphs.
</text>

<macro name="test-frame"
       arg1="no-repeat"
       arg2="center center"
       arg="It is positioned in the center, both vertically and horizontally."/> 

<macro name="test-frame"
       arg1="no-repeat"
       arg2="right bottom"
       arg="It is positioned in the right bottom corner of the frame."/> 

<macro name="test-frame"
       arg1="no-repeat"
       arg2="25% 75%"
       arg="Its position is (25%, 75%); it means that the point 
            25% across and 75% down the image coincides with 
            the point 25% across and 75% down the frame."/> 

<macro name="test-frame"
       arg1="no-repeat"
       arg2="-1in -1in"
       arg="Its upper left corner is located 1 inch above and 1 inch
            to the left of the border's upper left corner (position
            displacement values are negative). It means that the image 
            should not be visible any more."/> 

<macro name="test-frame"
       arg1="repeat-y"
       arg2="left center"
       arg="The ribbon is attached to the left side of the box."/> 

<macro name="test-frame"
       arg1="repeat-y"
       arg2="1in 50%"
       arg="The ribbon is distant 1 inch from the left side of the box."/> 

<macro name="test-frame"
       arg1="repeat-x"
       arg2="center top"
       arg="The ribbon is attached to the top of the box."/> 

<macro name="test-frame"
       arg1="repeat-x"
       arg2="50% 0.25in"
       arg="The ribbon is distant 0.25 inch from the top side of the box."/> 

<macro name="test-frame"
       arg1="repeat"
       arg2="center center"
       arg=""/> 


<macro name="test-frame-hor"
       arg1="repeat-y"
       arg2="left"
       arg="The ribbon is attached to the left side of the box."/> 

<macro name="test-frame-hor"
       arg1="repeat-y"
       arg2="center"
       arg="The ribbon is attached to the center of the box."/> 

<macro name="test-frame-hor"
       arg1="repeat-y"
       arg2="right"
       arg="The ribbon is attached to the right side of the box."/> 

<macro name="test-frame-hor"
       arg1="repeat-y"
       arg2="1in"
       arg="The ribbon is distant 1 inch from the left side of the box."/> 

<macro name="test-frame-hor"
       arg1="repeat-y"
       arg2="25%"
       arg="The ribbon is distant 25% from the left side of the box."/> 


<macro name="test-frame-ver"
       arg1="repeat-x"
       arg2="top"
       arg="The ribbon is attached to the top side of the box."/> 

<macro name="test-frame-ver"
       arg1="repeat-x"
       arg2="center"
       arg="The ribbon is attached to the center of the box."/> 

<macro name="test-frame-ver"
       arg1="repeat-x"
       arg2="bottom"
       arg="The ribbon is attached to the bottom side of the box."/> 

<macro name="test-frame-ver"
       arg1="repeat-x"
       arg2="0.25in"
       arg="The ribbon is distant 0.25 inch from the top side of the box."/> 

<macro name="test-frame-ver"
       arg1="repeat-x"
       arg2="25%"
       arg="The ribbon is distant 25% from the top side of the box."/> 

</plain-doc>
