<?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/>
		<schemasources>
			<xsdschemasource name="XML" main="1" schemafile="Data.xsd" workingxmlfile="Data.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-style="normal" font-weight="bold"/>
		</rules>
		<rules selector=".explanation">
			<media>
				<media value="all"/>
			</media>
			<rule color="blue" font-style="italic" margin-bottom="12px"/>
		</rules>
	</globalstyles>
	<mainparts>
		<children>
			<globaltemplate subtype="main" match="/">
				<document-properties/>
				<children>
					<documentsection>
						<properties columncount="1" columngap="0.50in" headerfooterheight="variable" pagemultiplepages="0" pagenumberingformat="1" pagenumberingstartat="auto" pagestart="next" paperheight="11.69in" papermarginbottom="0.79in" papermarginfooter="0.0in" papermarginheader="0.0in" papermarginleft="0.6in" papermarginright="0.6in" papermargintop="0.79in" paperwidth="8.27in"/>
						<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"/>
						<children>
							<text fixtext="Example: AutoCalc"/>
						</children>
					</paragraph>
					<paragraph paragraphtag="p">
						<properties class="info"/>
						<children>
							<text fixtext="This example shows how you can use XPath expressions to perform calculations on your XML data."/>
						</children>
					</paragraph>
					<paragraph paragraphtag="p">
						<properties class="explanation"/>
						<children>
							<text fixtext="The list of all numbers contained in the XML file for reference:"/>
						</children>
					</paragraph>
					<template subtype="source" match="XML">
						<children>
							<template subtype="element" match="data">
								<children>
									<template subtype="element" match="numbers">
										<children>
											<template subtype="element" match="number">
												<children>
													<template subtype="attribute" match="value">
														<children>
															<editfield>
																<children>
																	<content subtype="regular">
																		<format basic-type="xsd" datatype="decimal"/>
																	</content>
																</children>
															</editfield>
														</children>
														<variables/>
													</template>
													<newline/>
												</children>
												<variables/>
											</template>
											<newline/>
											<newline/>
											<paragraph paragraphtag="p">
												<properties class="explanation"/>
												<children>
													<text fixtext="Given these numbers, we can use XPath expressions in AutoCalc elements to sum all numbers, find out the number of entries, etc. For this example we use simple XPath expressions that work both in XSLT/XPath 1.0 and XSLT/XPath 2.0. "/>
												</children>
											</paragraph>
											<paragraph paragraphtag="p">
												<properties class="explanation"/>
												<children>
													<text fixtext="In order to check or modify the XPath expression either left-click the AutoCalc and refer to the Properties window, or right click the AutoCalc and select &quot;Edit XPath...&quot; from the context menu."/>
												</children>
											</paragraph>
											<text fixtext="Total: ">
												<styles font-weight="bold"/>
											</text>
											<autocalc xpath="sum(  number/@value  )"/>
											<newline/>
											<text fixtext="Count: ">
												<styles font-weight="bold"/>
											</text>
											<autocalc xpath="count(  number  )"/>
											<newline/>
											<newline/>
											<paragraph paragraphtag="p">
												<properties class="explanation"/>
												<children>
													<text fixtext="(Note that these calculated values are updated in real time when you change the entries in Authentic!)"/>
												</children>
											</paragraph>
											<paragraph paragraphtag="p">
												<properties class="info"/>
												<children>
													<text fixtext="Note that you can also use AutoCalc to have Authentic write values that you calculated back into your XML."/>
												</children>
											</paragraph>
											<paragraph paragraphtag="p">
												<properties class="explanation"/>
												<children>
													<text fixtext="The AutoCalc element below calculates the sum of all numbers just as in the example above, but also writes the result back into the &apos;@total&apos; attribute of the &apos;numbers&apos; element. Again, use the properties window or the context menu &quot;Edit Update XML Node&quot; to choose into which XML node the result will be written."/>
												</children>
											</paragraph>
											<text fixtext="Total: ">
												<styles font-weight="bold"/>
											</text>
											<autocalc xpath="sum(  number/@value  )" update="@total"/>
											<newline/>
											<newline/>
										</children>
										<variables/>
									</template>
								</children>
								<variables/>
							</template>
						</children>
						<variables/>
					</template>
				</children>
			</globaltemplate>
		</children>
	</mainparts>
	<globalparts/>
	<designfragments/>
	<xmltables/>
	<authentic-custom-toolbar-buttons/>
</structure>
