<?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" pastemode="xml" 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="Directory.xsd" workingxmlfile="Directory.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="48px" headerfooterheight="variable" pagemultiplepages="0" pagenumberingformat="1" pagenumberingstartat="auto" pagestart="next" paperheight="11.69in" papermarginbottom="0.79in" papermarginfooter="0.5in" papermarginheader="0.5in" papermarginleft="0.6in" papermarginright="0.6in" papermargintop="0.79in" paperwidth="8.27in"/>
					</documentsection>
					<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="$ShowAllFiles variable controls whether all files will be displayed or a selection of them - this variable is set through two radio buttons. If not all files should be displayed, 3 further variables are used for a particular selection. Because of the same editing for these three variables, a Design Fragment has been used."/>
						</children>
					</paragraph>
					<paragraph paragraphtag="p">
						<properties class="explanation"/>
						<children>
							<text fixtext="The actual filtering of files is done through a statement assigned to the table-row template (hold mouse over it to see the whole text or use &quot;Edit Template Match&quot; for editing)."/>
						</children>
					</paragraph>
					<template subtype="source" match="XML">
						<children>
							<tgrid>
								<properties border="0"/>
								<children>
									<tgridbody-cols>
										<children>
											<tgridcol>
												<styles width="0.35in"/>
											</tgridcol>
											<tgridcol>
												<styles width="5in"/>
											</tgridcol>
										</children>
									</tgridbody-cols>
									<tgridbody-rows>
										<children>
											<tgridrow>
												<children>
													<tgridcell>
														<children>
															<template subtype="uservariable" match="$ShowAllFiles">
																<children>
																	<radiobutton checkedvalue="true">
																		<children>
																			<content/>
																		</children>
																	</radiobutton>
																	<text fixtext="Show all files"/>
																</children>
																<variables/>
															</template>
														</children>
													</tgridcell>
													<tgridcell joinleft="1"/>
												</children>
											</tgridrow>
											<tgridrow>
												<children>
													<tgridcell>
														<children>
															<template subtype="uservariable" match="$ShowAllFiles">
																<children>
																	<radiobutton checkedvalue="false">
																		<children>
																			<content/>
																		</children>
																	</radiobutton>
																	<text fixtext="Show only Selected files"/>
																</children>
																<variables/>
															</template>
														</children>
													</tgridcell>
													<tgridcell joinleft="1"/>
												</children>
											</tgridrow>
											<tgridrow>
												<children>
													<tgridcell/>
													<tgridcell>
														<children>
															<template subtype="uservariable" match="$XMLFiles">
																<children>
																	<calltemplate subtype="named" match="IncludeFiles">
																		<parameters>
																			<parameter name="Name" value="&apos;XML&apos;"/>
																			<parameter name="Enabled" value="not($ShowAllFiles)"/>
																		</parameters>
																	</calltemplate>
																</children>
																<variables/>
															</template>
														</children>
													</tgridcell>
												</children>
											</tgridrow>
											<tgridrow>
												<children>
													<tgridcell/>
													<tgridcell>
														<children>
															<template subtype="uservariable" match="$SchemaFiles">
																<children>
																	<calltemplate subtype="named" match="IncludeFiles">
																		<parameters>
																			<parameter name="Name" value="&apos;XML Schema&apos;"/>
																			<parameter name="Enabled" value="not($ShowAllFiles)"/>
																		</parameters>
																	</calltemplate>
																</children>
																<variables/>
															</template>
														</children>
													</tgridcell>
												</children>
											</tgridrow>
											<tgridrow>
												<children>
													<tgridcell/>
													<tgridcell>
														<children>
															<template subtype="uservariable" match="$ImageFiles">
																<children>
																	<calltemplate subtype="named" match="IncludeFiles">
																		<parameters>
																			<parameter name="Name" value="&apos;Image&apos;"/>
																			<parameter name="Enabled" value="not($ShowAllFiles)"/>
																		</parameters>
																	</calltemplate>
																</children>
																<variables/>
															</template>
														</children>
													</tgridcell>
												</children>
											</tgridrow>
										</children>
									</tgridbody-rows>
								</children>
							</tgrid>
							<newline/>
							<tgrid>
								<properties border="1"/>
								<children>
									<tgridbody-cols>
										<children>
											<tgridcol>
												<styles width="2.55in"/>
											</tgridcol>
											<tgridcol>
												<styles width="2.17in"/>
											</tgridcol>
											<tgridcol>
												<styles width="1.80in"/>
											</tgridcol>
										</children>
									</tgridbody-cols>
									<tgridheader-rows>
										<children>
											<tgridrow>
												<children>
													<tgridcell>
														<properties align="left"/>
														<children>
															<text fixtext="Folder">
																<styles font-weight="bold"/>
															</text>
														</children>
													</tgridcell>
													<tgridcell>
														<properties align="left"/>
														<children>
															<text fixtext="Filename">
																<styles font-weight="bold"/>
															</text>
														</children>
													</tgridcell>
													<tgridcell>
														<properties align="right"/>
														<children>
															<text fixtext="Size">
																<styles font-weight="bold"/>
															</text>
														</children>
													</tgridcell>
												</children>
											</tgridrow>
										</children>
									</tgridheader-rows>
									<tgridbody-rows>
										<children>
											<template subtype="userdefined" match="//file[ $ShowAllFiles or ($XMLFiles and substring-after(@name,&apos;.&apos;)=&apos;xml&apos;) or ($SchemaFiles and (substring-after(@name,&apos;.&apos;)=&apos;xsd&apos; or substring-after(@name,&apos;.&apos;)=&apos;dtd&apos;)) or ($ImageFiles and (substring-after(@name,&apos;.&apos;)=&apos;gif&apos; or substring-after(@name,&apos;.&apos;)=&apos;bmp&apos;))]">
												<children>
													<tgridrow>
														<children>
															<tgridcell>
																<children>
																	<autocalc xpath="string-join( ( ancestor::* )[ position() &gt; 1 ]/@name, &apos;\&apos; )"/>
																</children>
															</tgridcell>
															<tgridcell>
																<children>
																	<template subtype="attribute" match="name">
																		<children>
																			<content/>
																		</children>
																		<variables/>
																	</template>
																</children>
															</tgridcell>
															<tgridcell>
																<properties align="right"/>
																<children>
																	<template subtype="attribute" match="size">
																		<children>
																			<content>
																				<format basic-type="xsd" string="###,##0" datatype="unsignedLong"/>
																			</content>
																		</children>
																		<variables/>
																	</template>
																</children>
															</tgridcell>
														</children>
													</tgridrow>
												</children>
												<variables/>
											</template>
										</children>
									</tgridbody-rows>
								</children>
							</tgrid>
						</children>
						<variables>
							<variable name="ShowAllFiles" value="true()" valuetype="xs:boolean" editable="1"/>
							<variable name="XMLFiles" value="false()" valuetype="xs:boolean" editable="1"/>
							<variable name="SchemaFiles" value="false()" valuetype="xs:boolean" editable="1"/>
							<variable name="ImageFiles" value="false()" valuetype="xs:boolean" editable="1"/>
						</variables>
					</template>
				</children>
			</globaltemplate>
		</children>
	</mainparts>
	<globalparts/>
	<designfragments>
		<children>
			<globaltemplate subtype="named" match="IncludeFiles">
				<parameters>
					<parameter name="Name" type="xs:string" occurrence="none-or-one" default-value="&apos;&apos;"/>
					<parameter name="Enabled" type="xs:boolean" occurrence="none-or-one" default-value="&apos;&apos;"/>
				</parameters>
				<children>
					<condition>
						<children>
							<conditionbranch xpath="$Enabled">
								<children>
									<checkbox checkedvalue="true">
										<children>
											<content/>
										</children>
									</checkbox>
									<text fixtext="Include "/>
									<autocalc xpath="$Name"/>
									<text fixtext=" files"/>
								</children>
							</conditionbranch>
							<conditionbranch>
								<children>
									<checkbox checkedvalue="true">
										<editorproperties editable="0"/>
										<children>
											<content/>
										</children>
									</checkbox>
									<text fixtext="Include ">
										<styles color="gray"/>
									</text>
									<autocalc xpath="$Name">
										<styles color="gray"/>
									</autocalc>
									<text fixtext=" files">
										<styles color="gray"/>
									</text>
								</children>
							</conditionbranch>
						</children>
					</condition>
				</children>
			</globaltemplate>
		</children>
	</designfragments>
	<xmltables/>
	<authentic-custom-toolbar-buttons/>
</structure>
