<?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>
			<nspair prefix="ipo" uri="http://www.altova.com/IPO"/>
			<nspair prefix="n1" uri="http://www.xmlspy.com/schemas/orgchart"/>
			<nspair prefix="ts" uri="http://www.xmlspy.com/schemas/textstate"/>
		</namespaces>
		<schemasources>
			<xsdschemasource name="XML" main="1" schemafile="OrgChart.xsd" workingxmlfile="OrgChart.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>
							<paragraph paragraphtag="p">
								<properties class="info"/>
								<children>
									<text fixtext="This is one of the examples demonstrating usage of editable variables in Authentic."/>
								</children>
							</paragraph>
							<paragraph paragraphtag="p">
								<properties class="explanation"/>
								<children>
									<text fixtext="This sample collects all existing department names and allows you to restrict viewing and editing data to a single department. More than this, user can selectively select for what offices to show data. Please note that in this example a single variable $ShowPeople is in fact created and used for every office independently - it is declared for n1:Office template and therefore is only visible inside of this template."/>
								</children>
							</paragraph>
							<template subtype="element" match="n1:OrgChart">
								<children>
									<paragraph paragraphtag="p">
										<children>
											<template subtype="uservariable" match="$CurrentDepartment">
												<children>
													<text fixtext="Select department: "/>
													<combobox xpath="$AllDepartments">
														<styles width="2.06in"/>
														<children>
															<content/>
														</children>
													</combobox>
												</children>
												<variables/>
											</template>
										</children>
									</paragraph>
									<condition>
										<children>
											<conditionbranch xpath="$CurrentDepartment != &apos;&apos;">
												<children>
													<template subtype="element" match="n1:Office">
														<children>
															<paragraph paragraphtag="p">
																<children>
																	<template subtype="uservariable" match="$ShowPeople">
																		<children>
																			<checkbox checkedvalue="true">
																				<children>
																					<content/>
																				</children>
																			</checkbox>
																		</children>
																		<variables/>
																	</template>
																	<text fixtext="Show people working at the "/>
																	<autocalc xpath="$CurrentDepartment">
																		<styles font-style="italic"/>
																	</autocalc>
																	<text fixtext=" department in "/>
																	<template subtype="element" match="n1:Name">
																		<children>
																			<content>
																				<styles font-style="italic"/>
																			</content>
																		</children>
																		<variables/>
																	</template>
																	<text fixtext=" office"/>
																</children>
															</paragraph>
															<condition>
																<children>
																	<conditionbranch xpath="$ShowPeople">
																		<children>
																			<tgrid>
																				<properties border="0" width="100%"/>
																				<children>
																					<tgridbody-cols>
																						<children>
																							<tgridcol>
																								<styles width="0.35in"/>
																							</tgridcol>
																							<tgridcol/>
																						</children>
																					</tgridbody-cols>
																					<tgridbody-rows>
																						<children>
																							<tgridrow>
																								<children>
																									<tgridcell/>
																									<tgridcell>
																										<children>
																											<template subtype="element" filter="n1:Name = $CurrentDepartment" match="n1:Department">
																												<children>
																													<tgrid>
																														<properties border="1" cellpadding="3" cellspacing="0"/>
																														<children>
																															<tgridbody-cols>
																																<children>
																																	<tgridcol>
																																		<styles width="1.25in"/>
																																	</tgridcol>
																																	<tgridcol>
																																		<styles width="1.25in"/>
																																	</tgridcol>
																																	<tgridcol>
																																		<styles width="2in"/>
																																	</tgridcol>
																																	<tgridcol>
																																		<styles width="1.25in"/>
																																	</tgridcol>
																																</children>
																															</tgridbody-cols>
																															<tgridheader-rows>
																																<children>
																																	<tgridrow>
																																		<styles background-color="#D2C8AE"/>
																																		<children>
																																			<tgridcell>
																																				<children>
																																					<text fixtext="First">
																																						<styles color="#606060"/>
																																					</text>
																																				</children>
																																			</tgridcell>
																																			<tgridcell>
																																				<children>
																																					<text fixtext="Last">
																																						<styles color="#606060"/>
																																					</text>
																																				</children>
																																			</tgridcell>
																																			<tgridcell>
																																				<children>
																																					<text fixtext="Title">
																																						<styles color="#606060"/>
																																					</text>
																																				</children>
																																			</tgridcell>
																																			<tgridcell>
																																				<children>
																																					<text fixtext="EMail">
																																						<styles color="#606060"/>
																																					</text>
																																				</children>
																																			</tgridcell>
																																		</children>
																																	</tgridrow>
																																</children>
																															</tgridheader-rows>
																															<tgridbody-rows>
																																<children>
																																	<template subtype="element" match="n1:Person">
																																		<children>
																																			<tgridrow>
																																				<properties _xbgcolor="if ( position() mod 2 ) then &quot;antiquewhite&quot; else &quot;navajowhite&quot;"/>
																																				<styles font-size="smaller"/>
																																				<children>
																																					<tgridcell>
																																						<children>
																																							<template subtype="element" match="n1:First">
																																								<children>
																																									<content>
																																										<styles font-weight="bold"/>
																																									</content>
																																								</children>
																																								<variables/>
																																							</template>
																																						</children>
																																					</tgridcell>
																																					<tgridcell>
																																						<children>
																																							<template subtype="element" match="n1:Last">
																																								<children>
																																									<content>
																																										<styles font-weight="bold"/>
																																									</content>
																																								</children>
																																								<variables/>
																																							</template>
																																						</children>
																																					</tgridcell>
																																					<tgridcell>
																																						<children>
																																							<template subtype="element" match="n1:Title">
																																								<children>
																																									<content/>
																																								</children>
																																								<variables/>
																																							</template>
																																						</children>
																																					</tgridcell>
																																					<tgridcell>
																																						<children>
																																							<template subtype="element" match="n1:EMail">
																																								<children>
																																									<content/>
																																								</children>
																																								<variables/>
																																							</template>
																																						</children>
																																					</tgridcell>
																																				</children>
																																			</tgridrow>
																																		</children>
																																		<variables/>
																																	</template>
																																</children>
																															</tgridbody-rows>
																														</children>
																													</tgrid>
																												</children>
																												<variables/>
																											</template>
																											<condition>
																												<children>
																													<conditionbranch xpath="not(exists(n1:Department[n1:Name=$CurrentDepartment]))">
																														<children>
																															<text fixtext="Sorry, but there is no ">
																																<styles text-decoration="underline"/>
																															</text>
																															<autocalc xpath="$CurrentDepartment">
																																<styles font-style="italic" text-decoration="underline"/>
																															</autocalc>
																															<text fixtext=" department in ">
																																<styles text-decoration="underline"/>
																															</text>
																															<template subtype="element" match="n1:Name">
																																<children>
																																	<content>
																																		<styles font-style="italic" text-decoration="underline"/>
																																	</content>
																																</children>
																																<variables/>
																															</template>
																															<text fixtext=" office">
																																<styles text-decoration="underline"/>
																															</text>
																														</children>
																													</conditionbranch>
																												</children>
																											</condition>
																										</children>
																									</tgridcell>
																								</children>
																							</tgridrow>
																						</children>
																					</tgridbody-rows>
																				</children>
																			</tgrid>
																		</children>
																	</conditionbranch>
																</children>
															</condition>
														</children>
														<variables>
															<variable name="ShowPeople" value="false()" valuetype="xs:boolean" editable="1"/>
														</variables>
													</template>
												</children>
											</conditionbranch>
										</children>
									</condition>
								</children>
								<variables/>
							</template>
						</children>
						<variables>
							<variable name="AllDepartments" value="distinct-values(//n1:Department/n1:Name)" valuetype="&lt;auto&gt;"/>
							<variable name="CurrentDepartment" value="&apos;&apos;" valuetype="xs:string" editable="1"/>
						</variables>
					</template>
				</children>
			</globaltemplate>
		</children>
	</mainparts>
	<globalparts/>
	<designfragments/>
	<xmltables/>
	<authentic-custom-toolbar-buttons/>
</structure>
