Skip to content
Snippets Groups Projects
Commit b1b6e8b9 authored by Martin de la Iglesia's avatar Martin de la Iglesia
Browse files

Ergänzung zum Aufsplitten von verschachtelten Tooltips

parent 16548072
No related branches found
No related tags found
No related merge requests found
...@@ -777,7 +777,7 @@ ...@@ -777,7 +777,7 @@
<xsl:sequence select="replace(., '\s$', '')"/> <xsl:sequence select="replace(., '\s$', '')"/>
</xsl:template> </xsl:template>
<!-- ************************************** step 4 (Aufsplitten von geschachtelten <a>-Tags): ********************************************* --> <!-- ************************************** step 4 (Aufsplitten von geschachtelten Links/Tooltips): ********************************************* -->
<xsl:template match="@*|node()" mode="step4"> <xsl:template match="@*|node()" mode="step4">
<xsl:copy> <xsl:copy>
...@@ -794,4 +794,27 @@ ...@@ -794,4 +794,27 @@
</a> </a>
</xsl:template> </xsl:template>
<xsl:template match="xhtml:span[@class='tooltip'][descendant::xhtml:span[@class='tooltip']]" mode="step4">
<xsl:apply-templates mode="step4"/>
</xsl:template>
<xsl:template match="xhtml:span[@class='tooltip'][descendant::xhtml:span[@class='tooltip']]/xhtml:span[@class='custom help']" mode="step4"/>
<xsl:template match="xhtml:span[@class='tooltip'][descendant::xhtml:span[@class='tooltip']]/text()[matches(.,'\S')]" mode="step4">
<span xmlns="http://www.w3.org/1999/xhtml" class="tooltip">
<xsl:value-of select="."/>
<xsl:copy-of select="../xhtml:span[@class='custom help']"/>
</span>
</xsl:template>
<xsl:template match="xhtml:span[@class='tooltip'][descendant::xhtml:span[@class='tooltip']]/xhtml:span[@class ne 'custom help'][@class ne 'tooltip']/text()[matches(.,'\S')]" mode="step4"> <!-- z.B. <span class="latinletters"> -->
<span xmlns="http://www.w3.org/1999/xhtml" class="tooltip">
<xsl:value-of select="."/>
<xsl:copy-of select="../../xhtml:span[@class='custom help']"/>
</span>
</xsl:template>
<xsl:template match="xhtml:span[@class='tooltip'][descendant::xhtml:span[@class='tooltip']]/xhtml:span[@class ne 'custom help'][@class ne 'tooltip']/xhtml:span[@class ne 'custom help'][@class ne 'tooltip']/text()[matches(.,'\S')]" mode="step4"> <!-- z.B. <span class="latinletters">A<span class="expansion">nn</span>o</span> -->
<span xmlns="http://www.w3.org/1999/xhtml" class="tooltip">
<xsl:value-of select="."/>
<xsl:copy-of select="../../../xhtml:span[@class='custom help']"/>
</span>
</xsl:template>
</xsl:stylesheet> </xsl:stylesheet>
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment