<?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" enable-authentic-scripts="1" authentic-scripts-in-debug-mode-external="0" generated-file-location="DEFAULT" richedit-para-type="div">
	<parameters/>
	<schemasources>
		<namespaces/>
		<schemasources>
			<xsdschemasource name="XML" main="1" schemafile="Book with RichEdit.xsd" workingxmlfile="Book with RichEdit TextStates.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/>
	<mainparts>
		<children>
			<globaltemplate subtype="main" match="/">
				<document-properties/>
				<children>
					<documentsection>
						<properties columncount="1" columngap="1.27cm" headerfooterheight="fixed" pagemultiplepages="0" pagenumberingformat="1" pagenumberingstartat="auto" pagestart="next" paperheight="27.94cm" papermarginbottom="2.01cm" papermarginfooter="0.76cm" papermarginheader="0.76cm" papermarginleft="1.52cm" papermarginright="1.52cm" papermargintop="2.01cm" paperwidth="21.59cm"/>
					</documentsection>
					<template subtype="source" match="XML">
						<children>
							<paragraph paragraphtag="h2">
								<styles border-bottom="2px solid navy" color="navy"/>
								<children>
									<text fixtext="Example: RichEdit (Text State Icons)"/>
								</children>
							</paragraph>
							<paragraph paragraphtag="p">
								<styles background="#f6f6ff" border="1px solid navy" color="navy" font-weight="bold"/>
								<children>
									<text fixtext="This example demonstrates how styles can be applied to the contents of an XML file when editing in Authentic view, as opposed to being predefined by the stylesheet."/>
								</children>
							</paragraph>
							<condition>
								<children>
									<conditionbranch xpath="$SV_OutputFormat = &apos;Authentic&apos;">
										<children>
											<paragraph>
												<styles color="blue" font-style="italic"/>
												<children>
													<text fixtext="For content, this example uses an excerpt of an outdated StyleVision manual, shown below the horizontal line. The focus here is on the styling rather than on the content itself. Note that the styling of the chapter and sub-chapter headers (application of color, font size, bold/italic text, etc.) is governed by the XML file. Often, styling is defined by the stylesheet, i.e. the SPS file. Sometimes, however, one wishes to apply styling as part of the content editing process. This implies storing the style information in the XML file."/>
													<newline/>
													<newline/>
													<text fixtext="This SPS design employs the Text State Icons feature in order to store style information in the XML file. An alternative method of applying styles in Authentic View, using the native RichEdit feature, is demonstrated in RichEdit_Native.sps."/>
													<newline/>
													<newline/>
													<text fixtext="A text state icon inserts an XML element. Styling is applied by a global template for the element, defined in the stylesheet."/>
													<newline/>
													<newline/>
													<text fixtext="To see this, select the text inside a &lt;heading&gt; element, for example, the text &quot;Create Eye-Catching Output&quot;. Be sure to select the entire text, then click on one of the text state buttons. Each text state button inserts a different element, and the stylesheet provides different styling for each of these elements."/>
													<newline/>
													<text fixtext=" "/>
												</children>
											</paragraph>
											<line/>
										</children>
									</conditionbranch>
								</children>
							</condition>
							<template subtype="element" match="book">
								<children>
									<template subtype="element" match="overview">
										<variables/>
									</template>
									<content subtype="regular" restofcontents="1"/>
								</children>
								<variables/>
							</template>
						</children>
						<variables/>
					</template>
				</children>
			</globaltemplate>
		</children>
	</mainparts>
	<globalparts>
		<children>
			<globaltemplate subtype="element" match="heading" schema-tree-path="$XML/book/chapter/subchapter/heading">
				<children>
					<template subtype="element" match="heading">
						<children>
							<paragraph paragraphtag="p">
								<children>
									<content subtype="regular"/>
								</children>
							</paragraph>
						</children>
						<variables/>
					</template>
				</children>
			</globaltemplate>
			<globaltemplate subtype="element" match="HeadingStyleA" schema-tree-path="$XML/book/chapter/heading/HeadingStyleA">
				<children>
					<template subtype="element" match="HeadingStyleA">
						<children>
							<content subtype="regular">
								<styles border-bottom="2px dotted olive" font-style="italic"/>
							</content>
						</children>
						<variables/>
					</template>
				</children>
			</globaltemplate>
			<globaltemplate subtype="element" match="HeadingStyleB" schema-tree-path="$XML/book/chapter/heading/HeadingStyleB">
				<children>
					<template subtype="element" match="HeadingStyleB">
						<children>
							<content subtype="regular">
								<styles border-bottom="2px dashed olive" font-style="italic"/>
							</content>
						</children>
						<variables/>
					</template>
				</children>
			</globaltemplate>
			<globaltemplate subtype="element" match="HeadingStyleC" schema-tree-path="$XML/book/chapter/heading/HeadingStyleC">
				<children>
					<template subtype="element" match="HeadingStyleC">
						<children>
							<content subtype="regular">
								<styles border-bottom="2px solid olive" font-style="italic"/>
							</content>
						</children>
						<variables/>
					</template>
				</children>
			</globaltemplate>
		</children>
	</globalparts>
	<designfragments/>
	<xmltables/>
	<authentic-custom-toolbar-buttons>
		<textstateicon match="HeadingStyleA" iconfile="heading-a.bmp" text="Heading A" tooltip="Heading (dotted underline)"/>
		<textstateicon match="HeadingStyleB" iconfile="heading-b.bmp" text="Heading B" tooltip="Heading (dashed underline)"/>
		<textstateicon match="HeadingStyleC" iconfile="heading-c.bmp" text="Heading C" tooltip="Heading (solid underline)"/>
	</authentic-custom-toolbar-buttons>
</structure>
