<?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>
		<file url="BytesToKBytes.xslt"/>
		<file url="NameAttrUpper.xslt"/>
	</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="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>
					<template subtype="source" match="XML">
						<children>
							<paragraph paragraphtag="p">
								<properties class="info"/>
								<children>
									<text fixtext="This example demonstrates how to import legacy XSLT files and use them combined with the rest of StyleVision design."/>
								</children>
							</paragraph>
							<paragraph paragraphtag="p">
								<properties class="explanation"/>
								<children>
									<text fixtext="This particular sample uses two imported XSLT files."/>
								</children>
							</paragraph>
							<paragraph paragraphtag="p">
								<properties class="explanation"/>
								<children>
									<text fixtext="The first one, BytesToKBytes, defines a named template, which calculates KBytes from its Bytes parameter - the template is used in this sample by means of a User-Defined Block with xsl:call-template"/>
								</children>
							</paragraph>
							<paragraph paragraphtag="p">
								<properties class="explanation"/>
								<children>
									<text fixtext="The second one, NameAttrUpper, has a template which matches each @name attribute and converts its name to upper case. This template uses the mode attribute, which ensures that no collision with the rest of StyleVision processing can occur. The template is also called through a User-Defined Block which contains &lt;xsl:apply-templates select=&quot;@name&quot;/&gt;, and is used for file names only, whereas the folder names are designed directly in StyleVision."/>
								</children>
							</paragraph>
							<calltemplate subtype="element" match="directory"/>
						</children>
						<variables/>
					</template>
				</children>
			</globaltemplate>
		</children>
	</mainparts>
	<globalparts>
		<children>
			<globaltemplate subtype="element" match="directory" schema-tree-path="directory">
				<children>
					<template subtype="element" match="directory">
						<children>
							<paragraph>
								<children>
									<text fixtext="Folder: ">
										<styles font-weight="bold"/>
									</text>
									<template subtype="attribute" match="name">
										<children>
											<content>
												<styles font-weight="bold"/>
											</content>
										</children>
										<variables/>
									</template>
								</children>
							</paragraph>
							<template subtype="element" match="file">
								<children>
									<paragraph>
										<styles margin-left="20px"/>
										<children>
											<condition>
												<children>
													<conditionbranch xpath="$SV_OutputFormat != &apos;Authentic&apos;">
														<children>
															<userxmltext text="&lt;xsl:apply-templates select=&quot;@name&quot;  mode=&quot;my_own_xsl_templates&quot;/&gt;"/>
														</children>
													</conditionbranch>
													<conditionbranch>
														<children>
															<text fixtext="Authentic cannot process XSL commands!">
																<styles color="red"/>
															</text>
														</children>
													</conditionbranch>
												</children>
											</condition>
											<text fixtext=" ("/>
											<template subtype="attribute" match="size">
												<children>
													<content>
														<format basic-type="xsd" datatype="unsignedLong"/>
													</content>
													<text fixtext="B = "/>
													<condition>
														<children>
															<conditionbranch xpath="$SV_OutputFormat != &apos;Authentic&apos;">
																<children>
																	<userxmltext text="&lt;xsl:call-template name=&quot;BytesToKBytes&quot; &gt;
	&lt;xsl:with-param name=&quot;Bytes&quot; select=&quot;.&quot;/&gt;
&lt;/xsl:call-template&gt;"/>
																</children>
															</conditionbranch>
															<conditionbranch>
																<children>
																	<text fixtext="Authentic cannot process XSL commands!">
																		<styles color="red"/>
																	</text>
																</children>
															</conditionbranch>
														</children>
													</condition>
													<text fixtext="KB"/>
												</children>
												<variables/>
											</template>
											<text fixtext=")"/>
										</children>
									</paragraph>
								</children>
								<variables/>
							</template>
							<paragraph>
								<styles margin-left="20px"/>
								<children>
									<calltemplate subtype="element" match="directory"/>
								</children>
							</paragraph>
						</children>
						<variables/>
					</template>
				</children>
			</globaltemplate>
		</children>
	</globalparts>
	<designfragments/>
	<xmltables/>
	<authentic-custom-toolbar-buttons/>
</structure>
