<?xml version="1.0" encoding="iso-8859-1" standalone="no" ?> 
<!DOCTYPE document SYSTEM "rml_1_0.dtd"> 
<document filename="test_019_relativeframes.pdf"> 

<template pageSize="A4" showBoundary="1">
	<pageTemplate id="pt1" pageSize="LETTER">
        <frame id="first" x1="5%" y1="55%" width="40%" height="40%"/>
        <frame id="second" x1="50%" y1="50%" width="50%" height="50%"/>
        <frame id="third" x1="0" y1="0" width="50%" height="50%"/>
        <frame id="fourth" x1="50%" y1="0" width="50%" height="50%"/>
	</pageTemplate>
	<pageTemplate id="pt2">
        <!-- no pageSize specified for this pageTemplate,
        so it should use pageSize specified on parent template element -->
        <frame id="first" x1="5%" y1="55%" width="40%" height="40%"/>
        <frame id="second" x1="50%" y1="50%" width="50%" height="50%"/>
        <frame id="third" x1="0" y1="0" width="50%" height="50%"/>
        <frame id="fourth" x1="50%" y1="0" width="50%" height="50%"/>
	</pageTemplate>
</template>

<stylesheet>
</stylesheet>

<story>

<para style="h1">This is frame 1</para>
<para>
This document illustrates the use of the percent (%) specifier for frame dimensions. The page should
be divided into four frames, each taking up a quarter of the page. This frame has a 5% border around it.
</para>
<para>This page is LETTER size</para>
<nextFrame/>
<para style="h1">This is frame 2</para>
<nextFrame/>
<para style="h1">This is frame 3</para>
<nextFrame/>
<para style="h1">This is frame 4</para>

<setNextTemplate name="pt2"/>
<nextFrame/>

<para style="h1">This is frame 1</para>
<para>This page is A4 size. It has the same frame specification as the previous page.</para>
<nextFrame/>
<para style="h1">This is frame 2</para>
<nextFrame/>
<para style="h1">This is frame 3</para>
<nextFrame/>
<para style="h1">This is frame 4</para>

</story>

</document>
