<?xml version='1.0' encoding='UTF-8'?>

<Properties version="4.1">
	<Property name="ErrorSuppression" type="Boolean">false</Property>
	<Property name="IsModuleTemplate" type="Boolean">false</Property>
	<Property name="xslt.base64Zipped">true</Property>
	<Property name="xslt.ignoreInput">false</Property>
	<Property name="xslt.params" type="List">
		<Property name="var.configuration">var.configuration</Property>
	</Property>
	<Property name="xslt.saveAtServer">true</Property>
	<Property name="xslt.source">&lt;?xml version="1.0" encoding="UTF-8"?>
&lt;response>&lt;result>true&lt;/result>&lt;overallResult>true&lt;/overallResult>&lt;responses>&lt;response>&lt;result>true&lt;/result>&lt;body>&lt;assets>&lt;asset>&lt;id>1528&lt;/id>&lt;colorCode>&lt;value/>&lt;/colorCode>&lt;displayName>Deutschland&lt;/displayName>&lt;version>&lt;customId>Deutschland&lt;/customId>&lt;description/>&lt;template>&lt;id>12&lt;/id>&lt;customId>WAND&lt;/customId>&lt;displayName>LAND&lt;/displayName>&lt;/template>&lt;childTemplates>&lt;joinedDisplayNames>Berlin, Bremen&lt;/joinedDisplayNames>&lt;template>&lt;id>13&lt;/id>&lt;minimumQuantity>0&lt;/minimumQuantity>&lt;maximumQuantity>0&lt;/maximumQuantity>&lt;isTimeSeries>false&lt;/isTimeSeries>&lt;resolution>SEC&lt;/resolution>&lt;customId>STADT&lt;/customId>&lt;displayName>STADT&lt;/displayName>&lt;accessLevel>full&lt;/accessLevel>&lt;/template>&lt;/childTemplates>&lt;updatedOn>2025-06-03T08:58:07.647Z&lt;/updatedOn>&lt;updatedByUser>&lt;id>bpcadmin&lt;/id>&lt;displayName>bpcadmin&lt;/displayName>&lt;/updatedByUser>&lt;/version>&lt;parentTemplates>&lt;joinedDisplayNames/>&lt;/parentTemplates>&lt;createdOn>2025-06-02T14:48:35.939Z&lt;/createdOn>&lt;createdByUser>&lt;id>bpcadmin&lt;/id>&lt;displayName>bpcadmin&lt;/displayName>&lt;/createdByUser>&lt;lastUpdatedOn>2025-06-03T08:58:07.647Z&lt;/lastUpdatedOn>&lt;lastUpdatedByUser>&lt;id>bpcadmin&lt;/id>&lt;displayName>bpcadmin&lt;/displayName>&lt;/lastUpdatedByUser>&lt;/asset>&lt;asset>&lt;id>1528&lt;/id>&lt;colorCode>&lt;value/>&lt;/colorCode>&lt;displayName>Deutschland&lt;/displayName>&lt;version>&lt;customId>Deutschland&lt;/customId>&lt;description/>&lt;template>&lt;id>12&lt;/id>&lt;customId>LAND&lt;/customId>&lt;displayName>LAND&lt;/displayName>&lt;/template>&lt;childTemplates>&lt;joinedDisplayNames>Berlin, Bremen&lt;/joinedDisplayNames>&lt;template>&lt;id>13&lt;/id>&lt;minimumQuantity>0&lt;/minimumQuantity>&lt;maximumQuantity>0&lt;/maximumQuantity>&lt;isTimeSeries>false&lt;/isTimeSeries>&lt;resolution>SEC&lt;/resolution>&lt;customId>STADT&lt;/customId>&lt;displayName>STADT&lt;/displayName>&lt;accessLevel>full&lt;/accessLevel>&lt;/template>&lt;/childTemplates>&lt;updatedOn>2025-06-03T08:58:07.647Z&lt;/updatedOn>&lt;updatedByUser>&lt;id>bpcadmin&lt;/id>&lt;displayName>bpcadmin&lt;/displayName>&lt;/updatedByUser>&lt;/version>&lt;parentTemplates>&lt;joinedDisplayNames/>&lt;/parentTemplates>&lt;createdOn>2025-06-02T14:48:35.939Z&lt;/createdOn>&lt;createdByUser&gt;&lt;id>bpcadmin&lt;/id>&lt;displayName>bpcadmin&lt;/displayName>&lt;/createdByUser>&lt;lastUpdatedOn>2025-06-03T08:58:07.647Z&lt;/lastUpdatedOn>&lt;lastUpdatedByUser>&lt;id>bpcadmin&lt;/id>&lt;displayName>bpcadmin&lt;/displayName>&lt;/lastUpdatedByUser>&lt;/asset>&lt;asset>&lt;id>1531&lt;/id>&lt;colorCode>&lt;value/>&lt;/colorCode>&lt;displayName>Berlin&lt;/displayName>&lt;version>&lt;customId>Berlin&lt;/customId>&lt;description/>&lt;template>&lt;id>13&lt;/id>&lt;customId>STADT&lt;/customId>&lt;displayName>STADT&lt;/displayName>&lt;/template>&lt;childTemplates>&lt;joinedDisplayNames/>&lt;/childTemplates>&lt;updatedOn>2025-06-02T15:09:17.188Z&lt;/updatedOn>&lt;updatedByUser>&lt;id>bpcadmin&lt;/id>&lt;displayName>bpcadmin&lt;/displayName>&lt;/updatedByUser>&lt;/version>&lt;parentTemplates>&lt;joinedDisplayNames>Deutschland&lt;/joinedDisplayNames>&lt;/parentTemplates>&lt;createdOn>2025-06-02T14:48:38.614Z&lt;/createdOn>&lt;createdByUser>&lt;id>bpcadmin&lt;/id>&lt;displayName>bpcadmin&lt;/displayName>&lt;/createdByUser>&lt;lastUpdatedOn>2025-06-02T15:09:17.188Z&lt;/lastUpdatedOn>&lt;lastUpdatedByUser>&lt;id>bpcadmin&lt;/id>&lt;displayName>bpcadmin&lt;/displayName>&lt;/lastUpdatedByUser>&lt;/asset>&lt;asset>&lt;id>1551&lt;/id>&lt;colorCode>&lt;value/>&lt;/colorCode>&lt;displayName>Bremen&lt;/displayName>&lt;version>&lt;customId>Bremen&lt;/customId>&lt;description/>&lt;template>&lt;id>13&lt;/id>&lt;customId>STADT&lt;/customId>&lt;displayName>STADT&lt;/displayName>&lt;/template>&lt;childTemplates>&lt;joinedDisplayNames/>&lt;/childTemplates>&lt;updatedOn>2025-06-02T15:09:14.383Z&lt;/updatedOn>&lt;updatedByUser>&lt;id>bpcadmin&lt;/id>&lt;displayName>bpcadmin&lt;/displayName>&lt;/updatedByUser>&lt;/version>&lt;parentTemplates>&lt;joinedDisplayNames>Deutschland&lt;/joinedDisplayNames>&lt;/parentTemplates>&lt;createdOn>2025-06-02T15:07:53.013Z&lt;/createdOn>&lt;createdByUser>&lt;id>bpcadmin&lt;/id>&lt;displayName>bpcadmin&lt;/displayName>&lt;/createdByUser>&lt;lastUpdatedOn>2025-06-02T15:09:14.383Z&lt;/lastUpdatedOn>&lt;lastUpdatedByUser>&lt;id>bpcadmin&lt;/id>&lt;displayName>bpcadmin&lt;/displayName>&lt;/lastUpdatedByUser>&lt;/asset>&lt;asset>&lt;id>1552&lt;/id>&lt;colorCode>&lt;value/>&lt;/colorCode>&lt;displayName>Hamburg&lt;/displayName>&lt;version>&lt;customId>Hamburg&lt;/customId>&lt;description/>&lt;template>&lt;id>13&lt;/id>&lt;customId>STADT&lt;/customId>&lt;displayName>STADT&lt;/displayName>&lt;/template>&lt;childTemplates>&lt;joinedDisplayNames/>&lt;/childTemplates>&lt;updatedOn>2025-06-02T15:09:15.832Z&lt;/updatedOn>&lt;updatedByUser>&lt;id>bpcadmin&lt;/id>&lt;displayName>bpcadmin&lt;/displayName>&lt;/updatedByUser>&lt;/version>&lt;parentTemplates>&lt;joinedDisplayNames/>&lt;/parentTemplates>&lt;createdOn>2025-06-02T15:07:53.865Z&lt;/createdOn>&lt;createdByUser>&lt;id>bpcadmin&lt;/id>&lt;displayName>bpcadmin&lt;/displayName>&lt;/createdByUser>&lt;lastUpdatedOn>2025-06-02T15:09:15.832Z&lt;/lastUpdatedOn>&lt;lastUpdatedByUser>&lt;id>bpcadmin&lt;/id>&lt;displayName>bpcadmin&lt;/displayName>&lt;/lastUpdatedByUser>&lt;/asset&gt;&lt;/assets>&lt;total>4&lt;/total>&lt;release>52&lt;/release>&lt;/body>&lt;/response>&lt;/responses>&lt;log>&lt;entries/>&lt;/log>&lt;/response></Property>
	<Property name="xslt.sourceVariables" type="Map">
		<Property name="ISFileSize">3661</Property>
		<Property name="ISCurrentTime" type="Long">1748941109365</Property>
		<Property name="ISWorkflowName">VAM_api_zzz_call</Property>
		<Property name="ISModuleName">If@@@Begin</Property>
		<Property name="ISModuleId">2</Property>
		<Property name="ISProcessId">630835</Property>
		<Property name="ISUserName">chkaufhold</Property>
		<Property name="ISServerName">dev04.virtimo.net</Property>
		<Property name="ISNodeName">100.78.0.66</Property>
		<Property name="ISGlobalProcessId">630832</Property>
		<Property name="ISOverwriteSubWorkflowPriority" type="Boolean">false</Property>
		<Property name="var.configuration" type="XmlDocument">&lt;?xml version="1.0" encoding="UTF-8"?>
&lt;root>&lt;templates>&lt;template>&lt;customId>LAND&lt;/customId>&lt;customIdAttribute>&lt;unique>true&lt;/unique>&lt;/customIdAttribute>&lt;versionedAttributes>&lt;attribute>&lt;key>alternateName&lt;/key>&lt;/attribute>&lt;/versionedAttributes>&lt;children>&lt;template>&lt;customId>STADT&lt;/customId>&lt;/template>&lt;/children>&lt;/template>&lt;template>&lt;customId>STADT&lt;/customId>&lt;customIdAttribute>&lt;unique>true&lt;/unique>&lt;/customIdAttribute>&lt;versionedAttributes>&lt;attribute>&lt;key>nicknme&lt;/key>&lt;/attribute>&lt;/versionedAttributes>&lt;parents>&lt;template>&lt;customId>LAND&lt;/customId>&lt;maximumQuantity>1&lt;/maximumQuantity>&lt;/template>&lt;/parents>&lt;/template>&lt;/templates>&lt;elements>&lt;LAND>&lt;item>&lt;customId>Deutschland&lt;/customId>&lt;alternateName>BRD&lt;/alternateName>&lt;children>&lt;STADT>&lt;item>&lt;customId>Bremen&lt;/customId>&lt;/item>&lt;item>&lt;customId>Berlin&lt;/customId>&lt;/item>&lt;/STADT>&lt;/children>&lt;/item>&lt;/LAND>&lt;STADT>&lt;item>&lt;customId>Bremen&lt;/customId>&lt;/item>&lt;item>&lt;customId>Hamburg&lt;/customId>&lt;/item>&lt;item>&lt;customId>Berlin&lt;/customId>&lt;/item>&lt;/STADT>&lt;/elements>&lt;/root></Property>
		<Property name="var.userContext" type="XmlDocument">&lt;?xml version="1.0" encoding="UTF-8"?>
&lt;userContext>&lt;login>bpcadmin&lt;/login>&lt;/userContext></Property>
		<Property name="var.organizationId">zzztest</Property>
		<Property name="var.ist" type="XmlDocument">&lt;?xml version="1.0" encoding="UTF-8"?>
&lt;response>&lt;result>true&lt;/result>&lt;overallResult>true&lt;/overallResult>&lt;responses>&lt;response>&lt;result>true&lt;/result>&lt;body>&lt;templates>&lt;template>&lt;id>12&lt;/id>&lt;customId>LAND&lt;/customId>&lt;colorCode>&lt;xpath/>&lt;/colorCode>&lt;labels/>&lt;displayName>LAND&lt;/displayName>&lt;actions/>&lt;featureActiveVersionsEnabled>false&lt;/featureActiveVersionsEnabled>&lt;customIdAttribute>&lt;unique>true&lt;/unique>&lt;type>string&lt;/type>&lt;displayName/>&lt;/customIdAttribute>&lt;createdOn>2025-06-02T14:05:56.308Z&lt;/createdOn>&lt;createdByUser>&lt;id>bpcadmin&lt;/id>&lt;displayName>bpcadmin&lt;/displayName>&lt;/createdByUser>&lt;lastUpdatedOn>2025-06-03T08:57:58.271Z&lt;/lastUpdatedOn>&lt;lastUpdatedByUser>&lt;id>bpcadmin&lt;/id>&lt;displayName>bpcadmin&lt;/displayName>&lt;/lastUpdatedByUser>&lt;use/>&lt;computedUse>&lt;read>&lt;role>VAM-administrator&lt;/role>&lt;/read>&lt;create>&lt;role>VAM-administrator&lt;/role>&lt;/create>&lt;update>&lt;role>VAM-administrator&lt;/role>&lt;/update>&lt;delete>&lt;role>VAM-administrator&lt;/role>&lt;/delete>&lt;executeAction>&lt;role>VAM-administrator&lt;/role>&lt;/executeAction>&lt;child/>&lt;/computedUse>&lt;accessLevel&gt;full&lt;/accessLevel>&lt;versionedAttributes>&lt;attribute>&lt;key>alternateName&lt;/key>&lt;type>string&lt;/type>&lt;displayName>alternateName&lt;/displayName>&lt;/attribute>&lt;/versionedAttributes>&lt;unversionedAttributes/>&lt;parents/>&lt;children>&lt;template>&lt;id>13&lt;/id>&lt;minimumQuantity>0&lt;/minimumQuantity>&lt;maximumQuantity>0&lt;/maximumQuantity>&lt;isTimeSeries>false&lt;/isTimeSeries>&lt;resolution>SEC&lt;/resolution>&lt;customId>STADT&lt;/customId>&lt;displayName>STADT&lt;/displayName>&lt;accessLevel>full&lt;/accessLevel>&lt;/template>&lt;/children>&lt;/template>&lt;template>&lt;id>13&lt;/id>&lt;customId>STADT&lt;/customId>&lt;colorCode>&lt;xpath/>&lt;/colorCode>&lt;labels/>&lt;displayName>STADT&lt;/displayName>&lt;actions/>&lt;featureActiveVersionsEnabled>false&lt;/featureActiveVersionsEnabled>&lt;customIdAttribute>&lt;unique>true&lt;/unique>&lt;type>string&lt;/type>&lt;displayName/>&lt;/customIdAttribute>&lt;createdOn>2025-06-02T14:05:57.075Z&lt;/createdOn>&lt;createdByUser>&lt;id>bpcadmin&lt;/id>&lt;displayName>bpcadmin&lt;/displayName>&lt;/createdByUser>&lt;lastUpdatedOn>2025-06-03T08:57:59.152Z&lt;/lastUpdatedOn>&lt;lastUpdatedByUser>&lt;id>bpcadmin&lt;/id>&lt;displayName>bpcadmin&lt;/displayName>&lt;/lastUpdatedByUser>&lt;use/>&lt;computedUse>&lt;read>&lt;role>VAM-administrator&lt;/role>&lt;/read>&lt;create>&lt;role>VAM-administrator&lt;/role>&lt;/create>&lt;update>&lt;role>VAM-administrator&lt;/role>&lt;/update>&lt;delete>&lt;role>VAM-administrator&lt;/role>&lt;/delete>&lt;executeAction>&lt;role>VAM-administrator&lt;/role>&lt;/executeAction>&lt;child/>&lt;/computedUse>&lt;accessLevel>full&lt;/accessLevel>&lt;versionedAttributes>&lt;attribute>&lt;key>nicknme&lt;/key>&lt;type>string&lt;/type>&lt;displayName>nicknme&lt;/displayName>&lt;/attribute>&lt;/versionedAttributes>&lt;unversionedAttributes/>&lt;parents>&lt;template>&lt;id>12&lt;/id>&lt;isTimeSeries>false&lt;/isTimeSeries>&lt;resolution>SEC&lt;/resolution>&lt;maximumQuantity>1&lt;/maximumQuantity>&lt;customId>LAND&lt;/customId>&lt;displayName>LAND&lt;/displayName>&lt;accessLevel>full&lt;/accessLevel>&lt;/template>&lt;/parents>&lt;children/>&lt;/template>&lt;/templates>&lt;total>2&lt;/total>&lt;/body>&lt;/response>&lt;/responses>&lt;log>&lt;entries/>&lt;/log>&lt;/response></Property>
	</Property>
	<Property name="xslt.stylesheet" type="XmlDocument">&lt;?xml version="1.0" encoding="UTF-8"?>
&lt;xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:local="local:local" exclude-result-prefixes="#all" version="2.0">
  &lt;xsl:output method="xml" encoding="UTF-8"/>&lt;xsl:function name="local:elementToAttribute">&lt;xsl:param name="var.element"/>&lt;attribute>&lt;key>&lt;xsl:value-of select="name($var.element)"/>&lt;/key>&lt;xsl:choose>&lt;xsl:when test="exists($var.element/row)">&lt;value>&lt;rows>&lt;xsl:copy-of select="$var.element/row"/>&lt;/rows>&lt;/value>&lt;/xsl:when>&lt;xsl:when test="exists($var.element/item)">&lt;value>&lt;items>&lt;xsl:copy-of select="$var.element/item"/>&lt;/items>&lt;/value>&lt;/xsl:when>&lt;xsl:when test="exists($var.element/*)">&lt;attributes>&lt;xsl:for-each select="$var.element/*">&lt;xsl:sequence select="local:elementToAttribute(.)"/>&lt;/xsl:for-each>&lt;/attributes>&lt;/xsl:when>&lt;xsl:otherwise>&lt;value>&lt;xsl:value-of select="$var.element"/>&lt;/value>&lt;/xsl:otherwise>&lt;/xsl:choose>&lt;/attribute>&lt;/xsl:function>&lt;xsl:param name="var.configuration" as="element()"/>
  &lt;xsl:template match="/*">&lt;requests>&lt;xsl:variable as="element()*" name="var.existing">&lt;xsl:for-each select="responses/response/body/assets/asset/version">&lt;item>&lt;xsl:value-of select="concat(template/customId, '@', customId)"/>&lt;/item>&lt;/xsl:for-each>&lt;/xsl:variable>&lt;xsl:variable name="var.soll" as="element()*">&lt;xsl:for-each select="$var.configuration/elements/*/*">&lt;xsl:variable name="var.templateCustomId" select="name(..)"/>&lt;xsl:variable name="var.key" select="concat($var.templateCustomId, '@', customId)"/>&lt;item>&lt;xsl:value-of select="$var.key"/>&lt;/item>&lt;/xsl:for-each>&lt;/xsl:variable>&lt;xsl:for-each select="$var.existing">&lt;xsl:if test="not(exists($var.soll[. = current()]))">&lt;xsl:sequence select="error((), concat('Delete ', .))"/>&lt;/xsl:if>&lt;/xsl:for-each>&lt;xsl:for-each select="$var.configuration/elements/*/*">&lt;xsl:variable name="var.templateCustomId" select="name(..)"/>&lt;xsl:variable name="var.key" select="concat($var.templateCustomId, '@', customId)"/>&lt;xsl:if test="not(exists($var.existing[. = $var.key]))">&lt;request>&lt;context>asset&lt;/context>&lt;method>create&lt;/method>&lt;parameters>&lt;asset>&lt;version>&lt;template>&lt;customId>&lt;xsl:value-of select="$var.templateCustomId"/>&lt;/customId>&lt;/template>&lt;xsl:copy-of select="customId | description"/>&lt;versionedAttributes>&lt;xsl:for-each select="*[not(self::customId | self::description | self::children)]">&lt;xsl:sequence select="local:elementToAttribute(.)"/>&lt;/xsl:for-each>&lt;/versionedAttributes>&lt;/version>&lt;/asset>&lt;/parameters>&lt;/request>&lt;/xsl:if>&lt;/xsl:for-each>&lt;/requests>
  &lt;/xsl:template>
&lt;/xsl:stylesheet></Property>
	<Property name="xslt.target"></Property>
	<Property name="xslt.transformer">net.sf.saxon.TransformerFactoryImpl</Property>
	<Property name="xslt_mode">EDIT</Property>
</Properties>