<?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" 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="ProductLine.xsd" workingxmlfile="ProductLine.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="0.50in" headerfooterheight="fixed" pagemultiplepages="0" pagenumberingformat="1" pagenumberingstartat="auto" pagestart="next" paperheight="11in" papermarginbottom="0.79in" papermarginfooter="0.30in" papermarginheader="0.30in" papermarginleft="0.60in" papermarginright="0.60in" papermargintop="1.5in" paperwidth="8.50in"/>
						<children>
							<globaltemplate subtype="pagelayout" match="headerall">
								<children>
									<paragraph>
										<styles text-align="right"/>
										<children>
											<image>
												<target>
													<fixtext value="Altova.jpg"/>
												</target>
											</image>
										</children>
									</paragraph>
									<line>
										<styles color="gray"/>
									</line>
								</children>
							</globaltemplate>
							<globaltemplate subtype="pdf-bookmarktree" match="pdf-bookmarktree">
								<children>
									<template subtype="userdefined" match="&apos;A-H&apos;,&apos;I-P&apos;,&apos;Q-Z&apos;">
										<children>
											<pdf-bookmark>
												<children>
													<link>
														<children>
															<content/>
														</children>
														<action>
															<none/>
														</action>
														<hyperlink>
															<fixtext value="#"/>
															<xpath value="min($XML/Products/Product[substring(Name,1,1)&gt;=$GroupFrom and substring(Name,1,1)&lt;=$GroupTill]/Name)"/>
															<fixtext value="Group"/>
														</hyperlink>
													</link>
													<template subtype="source" match="XML">
														<children>
															<template subtype="element" match="Products">
																<children>
																	<template subtype="element" filter="substring(Name,1,1)&gt;=$GroupFrom and substring(Name,1,1)&lt;=$GroupTill" match="Product">
																		<sort>
																			<key match="Name"/>
																		</sort>
																		<children>
																			<template subtype="element" match="Name">
																				<children>
																					<pdf-bookmark>
																						<children>
																							<link>
																								<children>
																									<content/>
																								</children>
																								<action>
																									<none/>
																								</action>
																								<hyperlink>
																									<fixtext value="#"/>
																									<xpath value="."/>
																									<fixtext value="Single"/>
																								</hyperlink>
																							</link>
																						</children>
																					</pdf-bookmark>
																				</children>
																				<variables/>
																			</template>
																		</children>
																		<variables/>
																	</template>
																</children>
																<variables/>
															</template>
														</children>
														<variables/>
													</template>
												</children>
											</pdf-bookmark>
										</children>
										<variables>
											<variable name="GroupFrom" value="substring(.,1,1)" valuetype="xs:string"/>
											<variable name="GroupTill" value="substring(.,3,1)" valuetype="xs:string"/>
										</variables>
									</template>
								</children>
							</globaltemplate>
						</children>
					</documentsection>
					<template subtype="source" match="XML">
						<children>
							<condition>
								<children>
									<conditionbranch xpath="false()">
										<children>
											<paragraph paragraphtag="p">
												<properties class="info"/>
												<children>
													<text fixtext="This example demonstrates how to use the PDF Bookmark Tree."/>
												</children>
											</paragraph>
											<paragraph paragraphtag="p">
												<properties class="explanation"/>
												<children>
													<text fixtext="You can generate PDF bookmark tree with StyleVision either automatically when Table Of Contents feature is used (see TOC.sps sample) or manually by creating PDF Bookmark Tree explicitly as it is done in this sample."/>
												</children>
											</paragraph>
											<paragraph paragraphtag="p">
												<properties class="explanation"/>
												<children>
													<text fixtext="Use Add Header/Footer =&gt; Add PDF Bookmark Tree menu and define your tree by inserting PDF Bookmark items. For every hyperlink in the tree you need a corresponding Bookmark in the document body."/>
												</children>
											</paragraph>
											<paragraph paragraphtag="p">
												<properties class="explanation"/>
												<children>
													<text fixtext="This sample combines PDF Bookmarks in three groups, which is done for demonstration purposes only. Because of the current limitations in Apache FOP 0.9x engines, every Bookmark which will be adressed in PDF Bookmark Tree must have a unique name, therefore two independent Bookmarks were added for every product (see below)."/>
												</children>
											</paragraph>
										</children>
									</conditionbranch>
								</children>
							</condition>
							<template subtype="element" match="Products">
								<children>
									<template subtype="element" match="Product">
										<sort>
											<key match="Name"/>
										</sort>
										<children>
											<paragraph paragraphtag="p">
												<children>
													<template subtype="element" match="Name">
														<children>
															<bookmark>
																<action>
																	<none/>
																</action>
																<bookmark>
																	<xpath value="."/>
																	<fixtext value="Group"/>
																</bookmark>
															</bookmark>
															<bookmark>
																<action>
																	<none/>
																</action>
																<bookmark>
																	<xpath value="."/>
																	<fixtext value="Single"/>
																</bookmark>
															</bookmark>
															<content>
																<styles font-weight="bold"/>
															</content>
														</children>
														<variables/>
													</template>
													<tgrid>
														<properties border="0" width="100%"/>
														<children>
															<tgridbody-cols>
																<children>
																	<tgridcol>
																		<styles width="50%"/>
																	</tgridcol>
																	<tgridcol>
																		<styles width="50%"/>
																	</tgridcol>
																</children>
															</tgridbody-cols>
															<tgridbody-rows>
																<children>
																	<tgridrow>
																		<children>
																			<tgridcell>
																				<properties valign="top"/>
																				<styles text-align="center"/>
																				<children>
																					<template subtype="element" match="Image">
																						<children>
																							<image is-from-inline-data="1" inline-data-xpath=".">
																								<styles height="222px" width="311px"/>
																								<target/>
																							</image>
																						</children>
																						<variables/>
																					</template>
																				</children>
																			</tgridcell>
																			<tgridcell>
																				<properties valign="top"/>
																				<children>
																					<template subtype="element" match="Description">
																						<children>
																							<content/>
																						</children>
																						<variables/>
																					</template>
																				</children>
																			</tgridcell>
																		</children>
																	</tgridrow>
																</children>
															</tgridbody-rows>
														</children>
													</tgrid>
												</children>
											</paragraph>
											<condition>
												<children>
													<conditionbranch xpath="(position() mod 2) = 0 and position() != last()">
														<children>
															<newline break="page"/>
														</children>
													</conditionbranch>
												</children>
											</condition>
										</children>
										<variables/>
									</template>
								</children>
								<variables/>
							</template>
						</children>
						<variables/>
					</template>
				</children>
			</globaltemplate>
		</children>
	</mainparts>
	<globalparts/>
	<designfragments/>
	<xmltables/>
	<authentic-custom-toolbar-buttons/>
</structure>
