<?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>
		<parameter name="Language" default="E"/>
	</parameters>
	<schemasources>
		<namespaces/>
		<schemasources>
			<xsdschemasource name="XML" main="1" schemafile="I-9_Form.xsd" workingxmlfile="I-9_Form.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 example demonstrates one of the three most common approaches how to translate document labels to different languages."/>
								</children>
							</paragraph>
							<paragraph paragraphtag="p">
								<properties class="explanation"/>
								<children>
									<text fixtext="This particular example uses auto-calculations, which define correct labels for every language in a single XPath statement. The advantage of this approach is that formatting is only applied once to (AutoCalc) and will be the same for all languages. The disadvantage - one cannot see the labels in design view (only by mouse-over or by editing XPath statement), and XPath statements can get really long if many languages need to be supported. Also, the designer of this form must speak all languages."/>
								</children>
							</paragraph>
							<paragraph paragraphtag="p">
								<properties class="explanation"/>
								<children>
									<text fixtext="A parameter $Language (see Parameters table in Design Overview) is defined so that the language can be selected by either modifying parameter in Parameters table (try to enter E or G) or from outside when performing transformation. Please note that a date format also depends from language - this has been achieved by putting (contents) in condition and applying different Input Formatting to them"/>
								</children>
							</paragraph>
							<template subtype="element" match="I-9">
								<children>
									<template subtype="element" match="Person">
										<children>
											<tgrid>
												<properties border="1"/>
												<children>
													<tgridbody-cols>
														<children>
															<tgridcol>
																<styles width="2.47in"/>
															</tgridcol>
															<tgridcol>
																<styles width="4.38in"/>
															</tgridcol>
														</children>
													</tgridbody-cols>
													<tgridbody-rows>
														<children>
															<tgridrow>
																<children>
																	<tgridcell>
																		<styles text-align="left"/>
																		<children>
																			<autocalc xpath="if ( $Language = &apos;E&apos; ) then &apos;First&apos; else
if ( $Language = &apos;G&apos; ) then &apos;Vorname&apos; else &apos;&apos;">
																				<styles font-weight="bold"/>
																			</autocalc>
																		</children>
																	</tgridcell>
																	<tgridcell>
																		<children>
																			<template subtype="element" match="First">
																				<children>
																					<content/>
																				</children>
																				<variables/>
																			</template>
																		</children>
																	</tgridcell>
																</children>
															</tgridrow>
															<tgridrow>
																<children>
																	<tgridcell>
																		<styles text-align="left"/>
																		<children>
																			<autocalc xpath="if ( $Language = &apos;E&apos; ) then &apos;Last&apos; else
if ( $Language = &apos;G&apos; ) then &apos;Nachname&apos; else &apos;&apos;">
																				<styles font-weight="bold"/>
																			</autocalc>
																		</children>
																	</tgridcell>
																	<tgridcell>
																		<children>
																			<template subtype="element" match="Last">
																				<children>
																					<content/>
																				</children>
																				<variables/>
																			</template>
																		</children>
																	</tgridcell>
																</children>
															</tgridrow>
															<tgridrow>
																<children>
																	<tgridcell>
																		<styles text-align="left"/>
																		<children>
																			<autocalc xpath="if ( $Language = &apos;E&apos; ) then &apos;Middle Initial&apos; else
if ( $Language = &apos;G&apos; ) then &apos;2. Vorname&apos; else &apos;&apos;">
																				<styles font-weight="bold"/>
																			</autocalc>
																		</children>
																	</tgridcell>
																	<tgridcell>
																		<children>
																			<template subtype="element" match="Middle">
																				<children>
																					<content/>
																				</children>
																				<variables/>
																			</template>
																		</children>
																	</tgridcell>
																</children>
															</tgridrow>
															<tgridrow>
																<children>
																	<tgridcell>
																		<styles text-align="left"/>
																		<children>
																			<autocalc xpath="if ( $Language = &apos;E&apos; ) then &apos;Maiden Name&apos; else
if ( $Language = &apos;G&apos; ) then &apos;Mädchenname&apos; else &apos;&apos;">
																				<styles font-weight="bold"/>
																			</autocalc>
																		</children>
																	</tgridcell>
																	<tgridcell>
																		<children>
																			<template subtype="element" match="Maiden">
																				<children>
																					<content/>
																				</children>
																				<variables/>
																			</template>
																		</children>
																	</tgridcell>
																</children>
															</tgridrow>
															<tgridrow>
																<children>
																	<tgridcell>
																		<styles text-align="left"/>
																		<children>
																			<autocalc xpath="if ( $Language = &apos;E&apos; ) then &apos;Date of Birth&apos; else
if ( $Language = &apos;G&apos; ) then &apos;Geburtstag&apos; else &apos;&apos;">
																				<styles font-weight="bold"/>
																			</autocalc>
																			<text fixtext=" "/>
																			<autocalc xpath="if ( $Language = &apos;E&apos; ) then &apos;(month/day/year)&apos; else
if ( $Language = &apos;G&apos; ) then &apos;(Tag.Monat.Jahr)&apos; else &apos;&apos;"/>
																		</children>
																	</tgridcell>
																	<tgridcell>
																		<children>
																			<template subtype="element" match="DateOfBirth">
																				<children>
																					<condition>
																						<children>
																							<conditionbranch xpath="$Language=&apos;E&apos;">
																								<children>
																									<content>
																										<format basic-type="xsd" string="MM/DD/YYYY" datatype="date"/>
																									</content>
																								</children>
																							</conditionbranch>
																							<conditionbranch xpath="$Language=&apos;G&apos;">
																								<children>
																									<content>
																										<format basic-type="xsd" string="DD.MM.YYYY" datatype="date"/>
																									</content>
																								</children>
																							</conditionbranch>
																						</children>
																					</condition>
																					<text fixtext=" "/>
																					<button>
																						<action>
																							<datepicker/>
																						</action>
																					</button>
																				</children>
																				<variables/>
																			</template>
																		</children>
																	</tgridcell>
																</children>
															</tgridrow>
															<tgridrow>
																<children>
																	<tgridcell>
																		<children>
																			<autocalc xpath="if ( $Language = &apos;E&apos; ) then &apos;Social Security #&apos; else
if ( $Language = &apos;G&apos; ) then &apos;Sozialversicherungsnummer&apos; else &apos;&apos;">
																				<styles font-weight="bold"/>
																			</autocalc>
																		</children>
																	</tgridcell>
																	<tgridcell>
																		<children>
																			<template subtype="element" match="SocialSecurity">
																				<children>
																					<content/>
																				</children>
																				<variables/>
																			</template>
																		</children>
																	</tgridcell>
																</children>
															</tgridrow>
														</children>
													</tgridbody-rows>
												</children>
											</tgrid>
										</children>
										<variables/>
									</template>
								</children>
								<variables/>
							</template>
						</children>
						<variables/>
					</template>
				</children>
			</globaltemplate>
		</children>
	</mainparts>
	<globalparts/>
	<designfragments/>
	<xmltables/>
	<authentic-custom-toolbar-buttons/>
</structure>
