|
<?xml version="1.0" encoding="UTF-8"?>
|
|
<xsl:transform version="2.0"
|
|
xmlns:html="http://www.w3.org/1999/xhtml"
|
|
xmlns:svg="http://www.w3.org/2000/svg"
|
|
xmlns:ixsl="http://saxonica.com/ns/interactiveXSLT"
|
|
xmlns:prop="http://saxonica.com/ns/html-property"
|
|
xmlns:xs="http://www.w3.org/2001/XMLSchema"
|
|
xmlns:xlink="http://www.w3.org/1999/xlink"
|
|
extension-element-prefixes="ixsl"
|
|
xmlns:plan="http://www.plan.com"
|
|
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
|
|
<xsl:variable name="svg" select="ixsl:page()/html:html/html:body/svg:svg" as="element()"/>
|
|
<xsl:variable name="g" select="$svg/svg:g/svg:g/*" as="element()+"/>
|
|
|
|
<xsl:template match="/">
|
|
<xsl:result-document href="#title" method="ixsl:replace-content">
|
|
<xsl:value-of select="$svg/svg:title"/>
|
|
</xsl:result-document>
|
|
<xsl:message select="'msg1', name($g[1]/*[1]), '*', $g/svg:clipPath/@id, '*', $g/svg:clippath/@id, '*'"/>
|
|
<xsl:message select="'msg2', name($g[3]/*[2]), '*', $g[3]/svg:g/svg:textArea/@id, '*', $g[3]/svg:g/svg:textarea/@id, '*'"/>
|
|
<xsl:message select="'msg3', name($g[3]/*[2]), '*', $g[3]/svg:g/svg:text/@id, '*'"/>
|
|
</xsl:template>
|
|
<xsl:template match="svg:path[@id='_2155']" mode="ixsl:onclick">
|
|
<xsl:message select="'msg2.1', name($g[3]/*[2]), '*', $g[3]/svg:g/svg:textArea/@id, '*', $g[3]/svg:g/svg:textarea/@id, '*'"/>
|
|
<xsl:message select="'msg3.1', name($g[3]/*[2]), '*', $g[3]/svg:g/svg:text/@id, '*'"/>
|
|
<xsl:choose>
|
|
<xsl:when test="not(id('Texte_4')/*[@id = 'id_69'])">
|
|
<ixsl:set-attribute name="fill-opacity" select="0.4"/>
|
|
<xsl:result-document href="#Texte_4" method="ixsl:append-content">
|
|
<text id="id_69" x="210085" y="1145738" xmlns="http://www.w3.org/2000/svg">
|
|
<title>id_69</title>
|
|
<tspan x="210085" dy="1.1em">id_69 Top 1.5.4 Wohnen / Küche</tspan>
|
|
<tspan x="210085" dy="1.1em">47,74 m² Parkett</tspan>
|
|
</text>
|
|
</xsl:result-document>
|
|
</xsl:when>
|
|
<xsl:otherwise>
|
|
<ixsl:remove-attribute name="fill-opacity"/>
|
|
<xsl:result-document href="#Texte_4" method="ixsl:replace-content">
|
|
<xsl:for-each select="id('Texte_4')/*[not(@id = 'id_69')]">
|
|
<xsl:copy-of select="."/>
|
|
</xsl:for-each>
|
|
</xsl:result-document>
|
|
</xsl:otherwise>
|
|
</xsl:choose>
|
|
</xsl:template>
|
|
<xsl:template match="svg:path[@id='_2143']" mode="ixsl:onclick">
|
|
<xsl:message select="'msg2.2', name($g[3]/*[2]), '*', $g[3]/svg:g/svg:textArea/@id, '*', $g[3]/svg:g/svg:textarea/@id, '*'"/>
|
|
<xsl:message select="'msg3.2', name($g[3]/*[2]), '*', $g[3]/svg:g/svg:text/@id, '*'"/>
|
|
<xsl:choose>
|
|
<xsl:when test="not(id('Texte_4')/*[@id = 'id_45a'])">
|
|
<ixsl:set-attribute name="fill-opacity" select="0.4"/>
|
|
<xsl:result-document href="#Texte_4" method="ixsl:append-content">
|
|
<svg:text id="id_45b" x="564614" y="1327398">id_45a text</svg:text>
|
|
<svg:textArea id="id_45a" x="564614" y="1327398">id_45b textArea</svg:textArea>
|
|
</xsl:result-document>
|
|
</xsl:when>
|
|
<xsl:otherwise>
|
|
<ixsl:remove-attribute name="fill-opacity"/>
|
|
<xsl:result-document href="#Texte_4" method="ixsl:replace-content">
|
|
<xsl:for-each select="id('Texte_4')/*[not(@id = ('id_45a', 'id_45b'))]">
|
|
<xsl:copy-of select="."/>
|
|
</xsl:for-each>
|
|
</xsl:result-document>
|
|
</xsl:otherwise>
|
|
</xsl:choose>
|
|
</xsl:template>
|
|
<xsl:template match="svg:path[@id='_2166']" mode="ixsl:onclick">
|
|
<xsl:message select="'msg2.3', name($g[3]/*[2]), '*', $g[3]/svg:g/svg:textArea/@id, '*', $g[3]/svg:g/svg:textarea/@id, '*'"/>
|
|
<xsl:message select="'msg3.3', name($g[3]/*[2]), '*', $g[3]/svg:g/svg:text/@id, '*'"/>
|
|
<xsl:choose>
|
|
<xsl:when test="not(id('Texte_4')/*[@id = 'id_91a'])">
|
|
<ixsl:set-attribute name="fill-opacity" select="0.4"/>
|
|
<xsl:result-document href="#Texte_4" method="ixsl:append-content">
|
|
<text id="id_91b" x="1125953" y="1260431" xmlns="http://www.w3.org/2000/svg">id_91a text</text>
|
|
<textArea id="id_91a" x="1125953" y="1260431" xmlns="http://www.w3.org/2000/svg">id_91b textArea</textArea>
|
|
</xsl:result-document>
|
|
</xsl:when>
|
|
<xsl:otherwise>
|
|
<ixsl:remove-attribute name="fill-opacity"/>
|
|
<xsl:result-document href="#Texte_4" method="ixsl:replace-content">
|
|
<xsl:message select="'msg4.2', '*', id('Texte_4')/*/@id, '*'"/>
|
|
<xsl:for-each select="id('Texte_4')/*[not(@id = ('id_91a', 'id_91b'))]">
|
|
<xsl:copy-of select="."/>
|
|
</xsl:for-each>
|
|
</xsl:result-document>
|
|
</xsl:otherwise>
|
|
</xsl:choose>
|
|
</xsl:template>
|
|
</xsl:transform>
|