<?xml version="1.0" encoding="UTF-8"?>
<structure version="16" html-doctype="HTML4 Transitional" compatibility-view="IE9" relativeto="*SPS" encodinghtml="UTF-8" encodingrtf="ISO-8859-1" encodingpdf="UTF-8" useimportschema="1" embed-images="1" pastemode="xml" enable-authentic-scripts="1" authentic-scripts-in-debug-mode-external="0" generated-file-location="DEFAULT">
	<parameters/>
	<schemasources>
		<namespaces>
			<nspair prefix="f" uri="http://www.xmlspy.com/schemas/formatting"/>
		</namespaces>
		<schemasources>
			<xsdschemasource name="XML" main="1" schemafile="Book.xsd" workingxmlfile="Book.xml"/>
		</schemasources>
	</schemasources>
	<modules/>
	<flags>
		<scripts/>
		<mainparts/>
		<globalparts/>
		<designfragments/>
		<pagelayouts/>
		<xpath-functions/>
	</flags>
	<scripts>
		<script language="javascript"/>
	</scripts>
	<script-project>
		<Project version="2" app="AuthenticView"/>
	</script-project>
	<importedxslt/>
	<globalstyles>
		<rules selector=".info">
			<media>
				<media value="all"/>
			</media>
			<rule background-color="#f6f6ff" border="1px solid navy" color="navy" font-weight="bold" margin-bottom="12px" margin-top="12px" padding="2px"/>
		</rules>
		<rules selector=".explanation">
			<media>
				<media value="all"/>
			</media>
			<rule color="blue" font-style="italic" margin-bottom="6px"/>
		</rules>
	</globalstyles>
	<mainparts>
		<children>
			<globaltemplate subtype="main" match="/">
				<document-properties/>
				<children>
					<documentsection>
						<properties columncount="1" columngap="0.50in" headerfooterheight="fixed" pagemultiplepages="0" pagenumberingformat="1" pagenumberingstartat="auto" pagestart="next" paperheight="11.69in" papermarginbottom="0.50in" papermarginfooter="0.3in" papermarginheader="0.3in" papermarginleft="0.79in" papermarginright="0.6in" papermargintop="0.6in" paperwidth="8.27in"/>
						<watermark>
							<image transparency="50" fill-page="1" center-if-not-fill="1"/>
							<text transparency="50"/>
						</watermark>
					</documentsection>
					<tgrid>
						<properties align="center" width="80%"/>
						<children>
							<tgridbody-cols>
								<children>
									<tgridcol>
										<properties width="20"/>
									</tgridcol>
									<tgridcol/>
								</children>
							</tgridbody-cols>
							<tgridbody-rows>
								<children>
									<tgridrow>
										<styles height="50px"/>
										<children>
											<tgridcell/>
											<tgridcell/>
										</children>
									</tgridrow>
									<tgridrow>
										<children>
											<tgridcell joinabove="1">
												<styles padding="2pt"/>
											</tgridcell>
											<tgridcell>
												<properties align="center"/>
												<styles border="solid gray 1px" padding="2pt"/>
												<children>
													<paragraph paragraphtag="h1">
														<properties align="center"/>
														<children>
															<newline/>
															<text fixtext="Example: Page Layout"/>
															<newline/>
														</children>
													</paragraph>
													<paragraph paragraphtag="h2">
														<children>
															<text fixtext="An Overview"/>
														</children>
													</paragraph>
													<newline/>
													<newline/>
													<newline/>
													<newline/>
													<newline/>
													<paragraph paragraphtag="h3">
														<children>
															<text fixtext="Different Headers and Footers in a Single Document"/>
														</children>
													</paragraph>
												</children>
											</tgridcell>
										</children>
									</tgridrow>
								</children>
							</tgridbody-rows>
						</children>
					</tgrid>
					<documentsection>
						<properties columncount="1" columngap="0.50in" headerfooterheight="variable" pagemultiplepages="0" pagenumberingformat="1" pagenumberingstartat="1" pagestart="next" paperheight="11.69in" papermarginbottom="0.79in" papermarginfooter="0.3in" papermarginheader="0.3in" papermarginleft="0.6in" papermarginright="0.6in" papermargintop="0.79in" paperwidth="8.27in"/>
						<children>
							<globaltemplate subtype="pagelayout" match="headerall">
								<children>
									<paragraph>
										<styles text-align="center"/>
										<children>
											<text fixtext="Page Layout Example">
												<styles border-bottom="1px solid black" font-weight="bold"/>
											</text>
										</children>
									</paragraph>
								</children>
							</globaltemplate>
							<globaltemplate subtype="pagelayout" match="footerodd">
								<children>
									<tgrid>
										<styles width="100%"/>
										<children>
											<tgridbody-cols>
												<children>
													<tgridcol/>
													<tgridcol/>
												</children>
											</tgridbody-cols>
											<tgridbody-rows>
												<children>
													<tgridrow>
														<children>
															<tgridcell>
																<styles padding="0"/>
																<children>
																	<line>
																		<properties color="black" size="1"/>
																	</line>
																</children>
															</tgridcell>
															<tgridcell joinleft="1"/>
														</children>
													</tgridrow>
													<tgridrow>
														<children>
															<tgridcell>
																<properties align="left"/>
																<styles font-size="10pt" padding="0" width="90%"/>
																<children>
																	<text fixtext="Document: page layout.sps">
																		<styles font-weight="bold"/>
																	</text>
																</children>
															</tgridcell>
															<tgridcell>
																<properties align="right"/>
																<styles font-size="10pt" padding="0" width="10%"/>
																<children>
																	<text fixtext="Page: ">
																		<styles font-weight="bold"/>
																	</text>
																	<field>
																		<styles font-weight="bold"/>
																	</field>
																</children>
															</tgridcell>
														</children>
													</tgridrow>
												</children>
											</tgridbody-rows>
										</children>
									</tgrid>
								</children>
							</globaltemplate>
							<globaltemplate subtype="pagelayout" match="footereven">
								<children>
									<tgrid>
										<styles width="100%"/>
										<children>
											<tgridbody-cols>
												<children>
													<tgridcol/>
													<tgridcol/>
												</children>
											</tgridbody-cols>
											<tgridbody-rows>
												<children>
													<tgridrow>
														<children>
															<tgridcell>
																<styles padding="0"/>
																<children>
																	<line>
																		<properties color="black" size="1"/>
																	</line>
																</children>
															</tgridcell>
															<tgridcell joinleft="1"/>
														</children>
													</tgridrow>
													<tgridrow>
														<children>
															<tgridcell>
																<properties align="left"/>
																<styles font-size="10pt" padding="0" width="10%"/>
																<children>
																	<text fixtext="Page: ">
																		<styles font-weight="bold"/>
																	</text>
																	<field>
																		<styles font-weight="bold"/>
																	</field>
																</children>
															</tgridcell>
															<tgridcell>
																<properties align="right"/>
																<styles font-size="10pt" padding="0" width="90%"/>
																<children>
																	<text fixtext="Document: page layout.sps">
																		<styles font-weight="bold"/>
																	</text>
																</children>
															</tgridcell>
														</children>
													</tgridrow>
												</children>
											</tgridbody-rows>
										</children>
									</tgrid>
								</children>
							</globaltemplate>
						</children>
						<watermark>
							<image transparency="50" fill-page="1" center-if-not-fill="1"/>
							<text transparency="50"/>
						</watermark>
					</documentsection>
					<paragraph paragraphtag="h2">
						<styles border-bottom="2px solid navy" color="navy" text-align="center"/>
						<children>
							<text fixtext="Example: Page Layout"/>
						</children>
					</paragraph>
					<paragraph paragraphtag="p">
						<properties class="info"/>
						<children>
							<text fixtext="In order to generate nice-looking documents, StyleVision allows you to add headers and footers to your document. These are defined in special page layout templates. More than this, you can also define different Document Sections - each with its own set of headers and footers"/>
						</children>
					</paragraph>
					<paragraph paragraphtag="p">
						<properties class="explanation"/>
						<children>
							<text fixtext="In order to add a header or footer, click on &quot;Add Header/Footer&quot; link in the current Document Section and choose the appropriate option from the context menu. StyleVision also automatically provides you with some default design for those templates."/>
						</children>
					</paragraph>
					<paragraph paragraphtag="p">
						<properties class="explanation"/>
						<children>
							<text fixtext="For headers and footers you can choose to use the same one for every page, or to alternate between 2 different headers/footers for even and odd pages."/>
						</children>
					</paragraph>
					<paragraph paragraphtag="p">
						<properties class="explanation"/>
						<children>
							<text fixtext="In this particular sample the first Document Section uses different odd and even footers. The second Document Section, which starts with the second chapter (see condition below) uses a single footer for all pages."/>
						</children>
					</paragraph>
					<template subtype="source" match="XML">
						<children>
							<condition>
								<children>
									<conditionbranch xpath="$SV_OutputFormat = &apos;RTF&apos; or $SV_OutputFormat = &apos;PDF&apos; or $SV_OutputFormat = &apos;Word2007&apos;"/>
									<conditionbranch>
										<children>
											<paragraph paragraphtag="p">
												<children>
													<text fixtext="Important: different Document Sections, Headers and Footers are only visible in RTF, PDF and Word outputs!">
														<styles color="red" text-decoration="underline"/>
													</text>
												</children>
											</paragraph>
										</children>
									</conditionbranch>
								</children>
							</condition>
							<template subtype="element" match="book">
								<children>
									<content subtype="regular"/>
								</children>
								<variables/>
							</template>
						</children>
						<variables/>
					</template>
				</children>
			</globaltemplate>
		</children>
	</mainparts>
	<globalparts>
		<children>
			<globaltemplate subtype="element" match="chapter" schema-tree-path="chapter">
				<children>
					<template subtype="element" levelflag="1" match="chapter">
						<children>
							<condition>
								<children>
									<conditionbranch xpath="position() = 2">
										<children>
											<documentsection>
												<properties columncount="1" columngap="0.50in" headerfooterheight="fixed" pagemultiplepages="0" pagenumberingformat="1" pagenumberingstartat="auto" pagestart="next" paperheight="11.69in" papermarginbottom="0.79in" papermarginfooter="0.3in" papermarginheader="0.3in" papermarginleft="0.6in" papermarginright="0.6in" papermargintop="0.79in" paperwidth="8.27in"/>
												<children>
													<globaltemplate subtype="pagelayout" match="headerall">
														<children>
															<paragraph>
																<styles text-align="center"/>
																<children>
																	<text fixtext="Second Document Section">
																		<styles border-bottom="1px solid black" color="blue" font-weight="bold"/>
																	</text>
																</children>
															</paragraph>
														</children>
													</globaltemplate>
													<globaltemplate subtype="pagelayout" match="footerall">
														<children>
															<tgrid>
																<styles width="100%"/>
																<children>
																	<tgridbody-cols>
																		<children>
																			<tgridcol/>
																			<tgridcol/>
																		</children>
																	</tgridbody-cols>
																	<tgridbody-rows>
																		<children>
																			<tgridrow>
																				<children>
																					<tgridcell>
																						<styles padding="0"/>
																						<children>
																							<line>
																								<properties color="black" size="1"/>
																							</line>
																						</children>
																					</tgridcell>
																					<tgridcell joinleft="1"/>
																				</children>
																			</tgridrow>
																			<tgridrow>
																				<children>
																					<tgridcell>
																						<properties align="left"/>
																						<styles color="blue" font-size="10pt" padding="0" width="90%"/>
																						<children>
																							<text fixtext="Document: page layout.sps">
																								<styles font-weight="bold"/>
																							</text>
																						</children>
																					</tgridcell>
																					<tgridcell>
																						<properties align="right"/>
																						<styles color="blue" font-size="10pt" padding="0" width="10%"/>
																						<children>
																							<text fixtext="Page: ">
																								<styles font-weight="bold"/>
																							</text>
																							<field>
																								<styles font-weight="bold"/>
																							</field>
																						</children>
																					</tgridcell>
																				</children>
																			</tgridrow>
																		</children>
																	</tgridbody-rows>
																</children>
															</tgrid>
														</children>
													</globaltemplate>
												</children>
												<watermark>
													<image condition="true()" url="Altova.jpg" transparency="85" fill-page="1" center-if-not-fill="1"/>
													<text transparency="50"/>
												</watermark>
											</documentsection>
										</children>
									</conditionbranch>
									<conditionbranch xpath="position() &gt; 2">
										<children>
											<newline break="page"/>
										</children>
									</conditionbranch>
								</children>
							</condition>
							<template subtype="element" match="heading">
								<children>
									<paragraph paragraphtag="h2">
										<children>
											<marker xpath="." name="toc">
												<children>
													<num-lvl format="1.1.1"/>
													<text fixtext=" "/>
													<content subtype="regular"/>
												</children>
											</marker>
										</children>
									</paragraph>
								</children>
								<variables/>
							</template>
							<content subtype="regular" restofcontents="1"/>
						</children>
						<variables/>
					</template>
				</children>
			</globaltemplate>
			<globaltemplate subtype="element" match="subchapter" schema-tree-path="subchapter">
				<children>
					<template subtype="element" levelflag="1" match="subchapter">
						<children>
							<template subtype="element" match="heading">
								<children>
									<paragraph paragraphtag="h3">
										<children>
											<marker xpath="." name="toc">
												<children>
													<num-lvl format="1.1.1"/>
													<text fixtext=" "/>
													<content subtype="regular"/>
												</children>
											</marker>
										</children>
									</paragraph>
								</children>
								<variables/>
							</template>
							<content subtype="regular" restofcontents="1"/>
						</children>
						<variables/>
					</template>
				</children>
			</globaltemplate>
			<globaltemplate subtype="element" match="p" schema-tree-path="p">
				<children>
					<template subtype="element" match="p">
						<children>
							<paragraph paragraphtag="p">
								<children>
									<content subtype="regular"/>
								</children>
							</paragraph>
						</children>
						<variables/>
					</template>
				</children>
			</globaltemplate>
		</children>
	</globalparts>
	<designfragments/>
	<xmltables/>
	<authentic-custom-toolbar-buttons/>
</structure>
