<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns="http://www.esd.org.uk/standards" xmlns:esd="http://www.esd.org.uk/standards">
	<xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes"/>
	<xsl:namespace-alias stylesheet-prefix="esd" result-prefix="#default"/>
	<xsl:include href="ControlledListToTaxonomy20040315.xslt"/>
	<xsl:template match="esd:Domains">
		<xsl:variable name="ItemsList">
			<xsl:apply-templates select="esd:Domain[@Key = 'ItemsList']"/>
		</xsl:variable>
		<xsl:variable name="RelatedItems">
			<xsl:apply-templates select="esd:Domain[@Key = 'LgclRelatedItems']"/>
		</xsl:variable>
		<xsl:variable name="Equivalents">
			<xsl:apply-templates select="esd:Domain[@Key = 'LgclEquivalents']"/>
		</xsl:variable>
		<xsl:variable name="Hierarchy">
			<xsl:apply-templates select="esd:Domain[@Key = 'LgclHierarchy']"/>
		</xsl:variable>
		<xsl:apply-templates select="document($ItemsList)/esd:ControlledList">
			<xsl:with-param name="ItemsList" select="$ItemsList"/>
			<xsl:with-param name="RelatedItems" select="$RelatedItems"/>
			<xsl:with-param name="Equivalents" select="$Equivalents"/>
			<xsl:with-param name="Hierarchy" select="$Hierarchy"/>
			<xsl:with-param name="HomeLocation">http://www.esd.org.uk/standards/lgcl/1.03/lgcl.xml</xsl:with-param>
			<xsl:with-param name="LatestVersionLocation">http://www.esd.org.uk/standards/lgcl/lgcl.xml</xsl:with-param>
			<xsl:with-param name="Date.Modified">2004-03-31</xsl:with-param>
		</xsl:apply-templates>
	</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>
