<?xml version="1.0" encoding="UTF-8"?>
<structure version="14" xsltversion="1" 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/>
		<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-weight="bold" margin-bottom="12px" margin-top="12px" padding="2px"/>
		</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"/>
					</documentsection>
					<paragraph paragraphtag="h2">
						<styles border-bottom="2px solid navy" color="navy"/>
						<children>
							<text fixtext="Example: Templates - sorting"/>
						</children>
					</paragraph>
					<paragraph paragraphtag="p">
						<properties class="info"/>
						<children>
							<text fixtext="This example demonstrates how you can have StyleVision generate XSLT code to sort the entries that are iterated over with a template. Note that sorting is not applied in Authentic."/>
						</children>
					</paragraph>
					<template subtype="source" match="XML">
						<children>
							<template subtype="element" match="data">
								<children>
									<template subtype="element" match="strings">
										<children>
											<paragraph paragraphtag="p">
												<properties class="explanation"/>
												<children>
													<text fixtext="For reference, all entries of the &apos;string&apos; element, as they appear in the XML:"/>
												</children>
											</paragraph>
											<template subtype="element" match="string">
												<children>
													<content>
														<format basic-type="xsd" datatype="string"/>
													</content>
													<newline/>
												</children>
												<variables/>
											</template>
											<newline/>
											<paragraph paragraphtag="p">
												<properties class="explanation"/>
												<children>
													<text fixtext="Below we list the same strings, but sorted in various ways. To see how the sorting is defined, right click on the template markup and choose &quot;Sort by...&quot; from the context menu."/>
												</children>
											</paragraph>
											<paragraph paragraphtag="p">
												<properties class="explanation"/>
												<children>
													<text fixtext="1.) All entries of the &apos;string&apos; element, sorted alphabetically:"/>
												</children>
											</paragraph>
											<template subtype="element" match="string">
												<sort>
													<key match="."/>
												</sort>
												<children>
													<content>
														<format basic-type="xsd" datatype="string"/>
													</content>
													<newline/>
												</children>
												<variables/>
											</template>
											<paragraph paragraphtag="p">
												<properties class="explanation"/>
												<children>
													<text fixtext="2.) All entries of the &apos;string&apos; element, sorted by string length:"/>
												</children>
											</paragraph>
											<template subtype="element" match="string">
												<sort>
													<key match="string-length()"/>
												</sort>
												<children>
													<content>
														<format basic-type="xsd" datatype="string"/>
													</content>
													<newline/>
												</children>
												<variables/>
											</template>
											<line/>
										</children>
										<variables/>
									</template>
								</children>
								<variables/>
							</template>
						</children>
						<variables/>
					</template>
				</children>
			</globaltemplate>
		</children>
	</mainparts>
	<globalparts/>
	<designfragments/>
	<xmltables/>
	<authentic-custom-toolbar-buttons/>
</structure>
