IfcOccupant.xsl 2.12 KB
Newer Older
1
<?xml version="1.0" encoding="utf-8"?>
2
<!-- KIT Tool | EneffBIM converter 2016  Version 0.9 (Author KIT BLM) IfcOccupant.xsl 23.9.2016 --><xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns="http://d-alchemy.com/schema/simxml/Model" xmlns:simcore="http://d-alchemy.com/schema/simxml/SimModelCore" xmlns:simres="http://d-alchemy.com/schema/simxml/ResourcesGeneral" xmlns:simgeom="http://d-alchemy.com/schema/simxml/ResourcesGeometry" xmlns:simbldg="http://d-alchemy.com/schema/simxml/BuildingModel" xmlns:simmep="http://d-alchemy.com/schema/simxml/MepModel" xmlns:ifc="http://www.buildingsmart-tech.org/ifcXML/IFC4/Add1" exclude-result-prefixes="xsl ifc">
	<xsl:output method="xml" version="1.0" encoding="UTF-8" omit-xml-declaration="yes" indent="yes"/>
	<xsl:strip-space elements="*"/>
	<xsl:template match="ifc:IfcOccupant">
		<xsl:param name="KeyPool"/>
		<xsl:if test="$KeyPool != ''">
			<xsl:variable name="simelemname">
				<xsl:call-template name="getTargetElementName">
					<xsl:with-param name="KeyPool" select="$KeyPool"/>
				</xsl:call-template>
			</xsl:variable>
			<xsl:variable name="generictargetcontent">
				<xsl:call-template name="resolvekeypool">
					<xsl:with-param name="KeyPoolSnippet" select="$KeyPool"/>
					<xsl:with-param name="elemname" select="'name'"/>
				</xsl:call-template>
			</xsl:variable>
			<xsl:variable name="resolvedfromproperties">
				<xsl:call-template name="GenerateTargetElementContentsFromSourceProperties">
					<xsl:with-param name="KeyPool" select="$KeyPool"/>
				</xsl:call-template>
			</xsl:variable>
			<xsl:call-template name="GenerateTargetElement">
				<xsl:with-param name="KeyPool" select="$KeyPool"/>
				<xsl:with-param name="simelemname" select="$simelemname"/>
				<xsl:with-param name="unsortedtargetcontent">
					<xsl:call-template name="MergeTargetElementContentCollections">
						<xsl:with-param name="generictargetcontent" select="$generictargetcontent"/>
						<xsl:with-param name="resolvedfromproperties" select="$resolvedfromproperties"/>
					</xsl:call-template>
				</xsl:with-param>
			</xsl:call-template>
		</xsl:if>
	</xsl:template></xsl:stylesheet>