<?xml version='1.0' encoding='utf-8'?>
<!-- 
Copyright 2005 DataActive Communications Limited

Unless required by applicable law or agreed to in writing, software,
documentation and examples are distributed under a 'AS IS' BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-->
<!DOCTYPE re:root SYSTEM 'http://reality.dataactive.com/DTDs/reality-1.0.dtd'>
<re:root xmlns:re='http://reality.dataactive.com'>
	<re:document 
		version='1.0' 
		language-code='ENG' 
		country-code='GBR' 
		category-code='examples' 
		uid='010_030' 
		display-name='Creating &amp; using multiple master pages'>

		<re:outputs collate='false' compression='9' manifest='false'>
			<re:output
				name='Kwik PDF' 
				file-name='010_030_MasterPages_Multiple.pdf' 
				type='reality.pdf.kwik' 
				options='page-crop-marks: false' />
		</re:outputs>

		<re:styles>
			<re:style name='mainLayer'>
				<re:styleattribute name='position' value='absolute' />
				<re:styleattribute name='left' value='20' />
				<re:styleattribute name='top' value='150' />
				<re:styleattribute name='width' value='400' />
				<re:styleattribute name='height' value='200' />
			</re:style>
			
			<re:style name="logo">
				<re:styleattribute name='position' value='absolute' />
				<re:styleattribute name='left' value='20' />
				<re:styleattribute name='top' value='0' />
				<re:styleattribute name='width' value='150' />
				<re:styleattribute name='height' value='150' />
			</re:style>

		</re:styles>


		<re:masterpages>
			<re:masterpage id='masterA'>
				<re:layer class="logo">
					<re:image url='http://reactive.dataactive.com/res/img/all/logo.pdf' />
				</re:layer>
				
				<re:layer class='mainLayer'>
					<re:paragraph style='font-size: 20;'>
						Master Page A
					</re:paragraph>
					<re:paragraph>
						This page refers to the master page which has a 
						unique ID and so its contents can be brought 
						in when neccessary. 
					</re:paragraph>
				</re:layer>
			</re:masterpage>
			
			<re:masterpage id='masterB'>
				<re:layer class="logo" style='left:300;'>
					<re:image url='http://reactive.dataactive.com/res/img/all/logo.pdf' />
				</re:layer>
				<re:layer class='mainLayer'>
					<re:paragraph style='font-size: 20;'>
						Master Page B 
					</re:paragraph>
					<re:paragraph>
						This page uses a different master page than 
						the first as is evident by the position of 
						the image. 
					</re:paragraph>
				</re:layer>
			</re:masterpage>
		</re:masterpages>

		<re:content>

			<re:page master='masterA'>
				<re:layer style="
					position:absolute; 
					left:20; 
					top:350; 
					width:400; 
					height:50;">
						<re:paragraph>This text is not from the master page</re:paragraph>
				</re:layer>

			</re:page>

			<re:page master='masterB'>
				<re:layer style="
					position:absolute; 
					left:20; 
					top:350; 
					width:400; 
					height:50;">
						<re:paragraph>This text is not from the master page</re:paragraph>
				</re:layer>
			</re:page>

		</re:content>

	</re:document>
</re:root>
