<?xml version="1.0" encoding="UTF-8"?>
<structure version="14" html-doctype="HTML4 Transitional" compatibility-view="IE9" relativeto="*SPS" encodinghtml="UTF-8" encodingrtf="ISO-8859-1" encodingpdf="UTF-8" useimportschema="1" embed-images="1" enable-authentic-scripts="1" authentic-scripts-in-debug-mode-external="0" generated-file-location="DEFAULT">
	<parameters/>
	<schemasources>
		<namespaces/>
		<schemasources>
			<xsdschemasource name="XML" main="1" schemafile="ImportedFlatDBData.xsd" workingxmlfile="ImportedFlatDBData.xml"/>
		</schemasources>
	</schemasources>
	<modules/>
	<flags>
		<scripts/>
		<globalparts/>
		<designfragments/>
		<pagelayouts/>
		<xpath-functions/>
	</flags>
	<scripts>
		<script language="javascript"/>
	</scripts>
	<script-project>
		<Project version="2" app="AuthenticView"/>
	</script-project>
	<importedxslt/>
	<globalstyles>
		<rule url="Samples.css">
			<media>
				<media value="all"/>
			</media>
		</rule>
	</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="11in" papermarginbottom="0.79in" papermarginfooter="0.30in" papermarginheader="0.30in" papermarginleft="0.60in" papermarginright="0.60in" papermargintop="0.79in" paperwidth="8.50in"/>
					</documentsection>
					<template subtype="source" match="XML">
						<children>
							<condition>
								<children>
									<conditionbranch xpath="false()">
										<children>
											<paragraph paragraphtag="p">
												<properties class="info"/>
												<children>
													<text fixtext="This example shows how to build visual hierarchies from flat data, which often happens when Databases are exported to XML files. In this particular example Office, Department and Person elements are all located under ImportedDB element, but have to output in a hierarchy Office =&gt; Department =&gt; Person. The result is achieved by using user-defined templates which search for Departments corresponding to Office and Persons belonging to Departments."/>
												</children>
											</paragraph>
										</children>
									</conditionbranch>
								</children>
							</condition>
							<template subtype="element" match="ImportedDB">
								<children>
									<template subtype="element" match="Office">
										<children>
											<template subtype="element" match="Row">
												<children>
													<paragraph paragraphtag="h3">
														<children>
															<template subtype="element" match="Name">
																<children>
																	<content/>
																</children>
																<variables/>
															</template>
														</children>
													</paragraph>
													<paragraph>
														<children>
															<text fixtext="Phone: "/>
															<template subtype="element" match="Phone">
																<children>
																	<content/>
																</children>
																<variables/>
															</template>
															<text fixtext="   Fax: "/>
															<template subtype="element" match="Fax">
																<children>
																	<content/>
																</children>
																<variables/>
															</template>
														</children>
													</paragraph>
													<paragraph>
														<children>
															<text fixtext="Email: "/>
															<template subtype="element" match="EMail">
																<children>
																	<link>
																		<children>
																			<content/>
																		</children>
																		<action>
																			<none/>
																		</action>
																		<hyperlink>
																			<fixtext value="mailto:"/>
																			<xpath value="."/>
																		</hyperlink>
																	</link>
																</children>
																<variables/>
															</template>
														</children>
													</paragraph>
													<paragraph>
														<children>
															<text fixtext=" "/>
														</children>
													</paragraph>
													<tgrid>
														<properties border="1" cellpadding="10px" width="100%"/>
														<styles border-color="black"/>
														<children>
															<tgridbody-cols>
																<children>
																	<tgridcol/>
																</children>
															</tgridbody-cols>
															<tgridbody-rows>
																<children>
																	<tgridrow>
																		<children>
																			<tgridcell>
																				<children>
																					<template subtype="userdefined" match="for $i in PrimaryKey return $XML/ImportedDB/Department/Row[ForeignKey=$i]">
																						<children>
																							<paragraph paragraphtag="h4">
																								<children>
																									<template subtype="element" match="Name">
																										<children>
																											<text fixtext="Department: "/>
																											<content/>
																										</children>
																										<variables/>
																									</template>
																								</children>
																							</paragraph>
																							<tgrid>
																								<properties border="0"/>
																								<children>
																									<tgridbody-cols>
																										<children>
																											<tgridcol>
																												<styles width="2.50in"/>
																											</tgridcol>
																											<tgridcol>
																												<styles width="2.02in"/>
																											</tgridcol>
																											<tgridcol>
																												<styles width="1.90in"/>
																											</tgridcol>
																										</children>
																									</tgridbody-cols>
																									<tgridheader-rows>
																										<children>
																											<tgridrow>
																												<children>
																													<tgridcell>
																														<styles text-align="left"/>
																														<children>
																															<text fixtext="Name">
																																<styles font-weight="bold"/>
																															</text>
																														</children>
																													</tgridcell>
																													<tgridcell>
																														<styles text-align="left"/>
																														<children>
																															<text fixtext="Title">
																																<styles font-weight="bold"/>
																															</text>
																														</children>
																													</tgridcell>
																													<tgridcell>
																														<styles text-align="left"/>
																														<children>
																															<text fixtext="EMail">
																																<styles font-weight="bold"/>
																															</text>
																														</children>
																													</tgridcell>
																												</children>
																											</tgridrow>
																										</children>
																									</tgridheader-rows>
																									<tgridbody-rows>
																										<children>
																											<template subtype="userdefined" match="for $i in PrimaryKey return $XML/ImportedDB/Person/Row[ForeignKey=$i]">
																												<children>
																													<tgridrow>
																														<children>
																															<tgridcell>
																																<children>
																																	<template subtype="element" match="First">
																																		<children>
																																			<content/>
																																		</children>
																																		<variables/>
																																	</template>
																																	<text fixtext=" "/>
																																	<template subtype="element" match="Last">
																																		<children>
																																			<content/>
																																		</children>
																																		<variables/>
																																	</template>
																																</children>
																															</tgridcell>
																															<tgridcell>
																																<children>
																																	<template subtype="element" match="Title">
																																		<children>
																																			<content/>
																																		</children>
																																		<variables/>
																																	</template>
																																</children>
																															</tgridcell>
																															<tgridcell>
																																<children>
																																	<template subtype="element" match="EMail">
																																		<children>
																																			<link>
																																				<children>
																																					<content/>
																																				</children>
																																				<action>
																																					<none/>
																																				</action>
																																				<hyperlink>
																																					<fixtext value="mailto:"/>
																																					<xpath value="."/>
																																				</hyperlink>
																																			</link>
																																		</children>
																																		<variables/>
																																	</template>
																																</children>
																															</tgridcell>
																														</children>
																													</tgridrow>
																												</children>
																												<variables/>
																											</template>
																										</children>
																									</tgridbody-rows>
																								</children>
																							</tgrid>
																						</children>
																						<variables/>
																					</template>
																				</children>
																			</tgridcell>
																		</children>
																	</tgridrow>
																</children>
															</tgridbody-rows>
														</children>
													</tgrid>
													<condition>
														<children>
															<conditionbranch xpath="position() &lt; last()">
																<children>
																	<newline break="page"/>
																</children>
															</conditionbranch>
														</children>
													</condition>
												</children>
												<variables/>
											</template>
										</children>
										<variables/>
									</template>
								</children>
								<variables/>
							</template>
						</children>
						<variables/>
					</template>
				</children>
			</globaltemplate>
		</children>
	</mainparts>
	<globalparts/>
	<designfragments/>
	<xmltables/>
	<authentic-custom-toolbar-buttons/>
</structure>
