<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:aml="http://schemas.microsoft.com/aml/2001/core" xmlns:dt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:sl="http://schemas.microsoft.com/schemaLibrary/2003/core" xmlns:v="urn:schemas-microsoft-com:vml" xmlns:w="http://schemas.microsoft.com/office/word/2003/wordml" xmlns:w10="urn:schemas-microsoft-com:office:word" xmlns:wx="http://schemas.microsoft.com/office/word/2003/auxHint" xmlns="http://www.esd.org.uk/standards" xmlns:esd="http://www.esd.org.uk/standards">
	<xsl:include href="wordmapping.xslt"/>
	<xsl:template match="esd:Domains">
		<xsl:processing-instruction name="mso-application">progid="Word.Document"</xsl:processing-instruction>
		<xsl:variable name="Notes">
			<xsl:apply-templates select="esd:Domain[@Key = 'LgclAclNotes']"/>
		</xsl:variable>
		<xsl:variable name="Hierarchy">
			<xsl:apply-templates select="esd:Domain[@Key = 'LgclHierarchy']"/>
		</xsl:variable>
		<xsl:variable name="Mapping">
			<xsl:apply-templates select="esd:Domain[@Key = 'LgclAclMapping']"/>
		</xsl:variable>
		<xsl:call-template name="WordHeader">
			<xsl:with-param name="Notes" select="$Notes"/>
			<xsl:with-param name="Hierarchy" select="$Hierarchy"/>
			<xsl:with-param name="Mapping" select="$Mapping"/>
			<xsl:with-param name="Title1">LGCL 1.02 Terms</xsl:with-param>
			<xsl:with-param name="Title2">ACL 1.00 Terms</xsl:with-param>
			<xsl:with-param name="Relation.IsFormatOf">http://www.esd.org.uk/standards/lgcl/1.02/lgclaclmapping.xml</xsl:with-param>
			<xsl:with-param name="Source">http://www.esd.org.uk/standards/acl/1.00/lgclaclword.xml</xsl:with-param>
			<xsl:with-param name="Relation.IsReplacedBy">http://www.esd.org.uk/standards/acl/lgclaclword.xml</xsl:with-param>
		</xsl:call-template>
	</xsl:template>
	<xsl:template match="esd:Domain">
		<xsl:variable name="CurrentVersion" select="esd:Versions/@Current"/>
		<xsl:value-of select="esd:Versions/esd:Release[@Number = $CurrentVersion]/@Resource"/>
	</xsl:template>
</xsl:stylesheet>
