Small bugfix for Foundry to avoid a warning about an ambiguous rule for Bebop labels.
git-svn-id: https://svn.libreccm.org/ccm/trunk@4237 8810af33-2d31-482b-a856-94f89814c4dfmaster
parent
f86ac030c9
commit
1fb7e7af10
|
|
@ -1,9 +1,9 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<!DOCTYPE stylesheet [<!ENTITY nbsp ' '>]>
|
<!DOCTYPE stylesheet [<!ENTITY nbsp ' '>]>
|
||||||
|
|
||||||
<!--
|
<!--
|
||||||
Copyright: 2006, 2007, 2008 Sören Bernstein
|
Copyright: 2006, 2007, 2008 Sören Bernstein
|
||||||
|
|
||||||
This file is part of Mandalay.
|
This file is part of Mandalay.
|
||||||
|
|
||||||
Mandalay is free software: you can redistribute it and/or modify
|
Mandalay is free software: you can redistribute it and/or modify
|
||||||
|
|
@ -27,17 +27,17 @@
|
||||||
Processing bebop label
|
Processing bebop label
|
||||||
-->
|
-->
|
||||||
|
|
||||||
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
||||||
xmlns:bebop="http://www.arsdigita.com/bebop/1.0"
|
xmlns:bebop="http://www.arsdigita.com/bebop/1.0"
|
||||||
xmlns:cms="http://www.arsdigita.com/cms/1.0"
|
xmlns:cms="http://www.arsdigita.com/cms/1.0"
|
||||||
xmlns:foundry="http://foundry.libreccm.org"
|
xmlns:foundry="http://foundry.libreccm.org"
|
||||||
xmlns:nav="http://ccm.redhat.com/navigation"
|
xmlns:nav="http://ccm.redhat.com/navigation"
|
||||||
exclude-result-prefixes="xsl bebop cms foundry nav"
|
exclude-result-prefixes="xsl bebop cms foundry nav"
|
||||||
version="2.0">
|
version="2.0">
|
||||||
|
|
||||||
<!-- DE Ein Text-Label mit Formatierung -->
|
<!-- DE Ein Text-Label mit Formatierung -->
|
||||||
<!-- EN A formatted text label -->
|
<!-- EN A formatted text label -->
|
||||||
<xsl:template match="bebop:label[@color != '' or @weight != '' or @id != '' or @class != '']">
|
<xsl:template match="bebop:label[@color != '' or @weight != '' or @id != '' or (@class != '' and @class != 'heading')]">
|
||||||
<xsl:call-template name="foundry:bebop-label-style">
|
<xsl:call-template name="foundry:bebop-label-style">
|
||||||
<xsl:with-param name="text">
|
<xsl:with-param name="text">
|
||||||
<xsl:value-of select="."/>
|
<xsl:value-of select="."/>
|
||||||
|
|
@ -56,7 +56,7 @@
|
||||||
|
|
||||||
<!-- DE Ein Text-Label im Javascript-Mode und mit Formatierung -->
|
<!-- DE Ein Text-Label im Javascript-Mode und mit Formatierung -->
|
||||||
<!-- EN A formatted, javascript-mode text label -->
|
<!-- EN A formatted, javascript-mode text label -->
|
||||||
<xsl:template match="bebop:label[@color != '' or @weight != '' or @id != '']"
|
<xsl:template match="bebop:label[@color != '' or @weight != '' or @id != '']"
|
||||||
mode="javascript-mode">
|
mode="javascript-mode">
|
||||||
<xsl:call-template name="foundry:bebop-label-style">
|
<xsl:call-template name="foundry:bebop-label-style">
|
||||||
<xsl:with-param name="text">
|
<xsl:with-param name="text">
|
||||||
|
|
@ -76,7 +76,7 @@
|
||||||
</xsl:with-param>
|
</xsl:with-param>
|
||||||
</xsl:call-template>
|
</xsl:call-template>
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
|
|
||||||
<!-- DE Ein Text-Label im Javascript-Mode -->
|
<!-- DE Ein Text-Label im Javascript-Mode -->
|
||||||
<!-- EN A javascript-mode text label -->
|
<!-- EN A javascript-mode text label -->
|
||||||
<xsl:template match="bebop:label" mode="javascript-mode">
|
<xsl:template match="bebop:label" mode="javascript-mode">
|
||||||
|
|
@ -89,7 +89,7 @@
|
||||||
</xsl:with-param>
|
</xsl:with-param>
|
||||||
</xsl:call-template>
|
</xsl:call-template>
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
|
|
||||||
<!-- DE Ein vorformatiertes Text-Label -->
|
<!-- DE Ein vorformatiertes Text-Label -->
|
||||||
<!-- EN A preformatted text label -->
|
<!-- EN A preformatted text label -->
|
||||||
<xsl:template match="bebop:label[@class = 'preformatted']">
|
<xsl:template match="bebop:label[@class = 'preformatted']">
|
||||||
|
|
@ -104,7 +104,7 @@
|
||||||
</xsl:call-template>
|
</xsl:call-template>
|
||||||
</pre>
|
</pre>
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
|
|
||||||
<!-- DE Ein Text-Label als Überschrift -->
|
<!-- DE Ein Text-Label als Überschrift -->
|
||||||
<!-- EN A text label for the heading -->
|
<!-- EN A text label for the heading -->
|
||||||
<xsl:template match="bebop:label[@class = 'heading']">
|
<xsl:template match="bebop:label[@class = 'heading']">
|
||||||
|
|
@ -119,7 +119,7 @@
|
||||||
</xsl:call-template>
|
</xsl:call-template>
|
||||||
</span>
|
</span>
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
|
|
||||||
<!-- DE Ein Text-Label -->
|
<!-- DE Ein Text-Label -->
|
||||||
<!-- EN A text label -->
|
<!-- EN A text label -->
|
||||||
<xsl:template match="bebop:label">
|
<xsl:template match="bebop:label">
|
||||||
|
|
@ -132,7 +132,7 @@
|
||||||
</xsl:with-param>
|
</xsl:with-param>
|
||||||
</xsl:call-template>
|
</xsl:call-template>
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
|
|
||||||
<!-- DE Ein graphisches Label-->
|
<!-- DE Ein graphisches Label-->
|
||||||
<!-- EN A graphical label -->
|
<!-- EN A graphical label -->
|
||||||
<xsl:template match="bebop:label" mode="image">
|
<xsl:template match="bebop:label" mode="image">
|
||||||
|
|
@ -141,7 +141,7 @@
|
||||||
<xsl:param name="src"/>
|
<xsl:param name="src"/>
|
||||||
<img alt="{$alt}" title="{$title}" src="{$src}"/>
|
<img alt="{$alt}" title="{$title}" src="{$src}"/>
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
|
|
||||||
<!-- DE Setze die Formatierung für das Label als style Attribut für ein span -->
|
<!-- DE Setze die Formatierung für das Label als style Attribut für ein span -->
|
||||||
<!-- EN Set label formatting as style attribute for a span-->
|
<!-- EN Set label formatting as style attribute for a span-->
|
||||||
<xsl:template name="foundry:bebop-label-style">
|
<xsl:template name="foundry:bebop-label-style">
|
||||||
|
|
@ -150,7 +150,7 @@
|
||||||
<xsl:param name="color"/>
|
<xsl:param name="color"/>
|
||||||
<xsl:param name="weight"/>
|
<xsl:param name="weight"/>
|
||||||
<xsl:param name="mode"/>
|
<xsl:param name="mode"/>
|
||||||
|
|
||||||
<span>
|
<span>
|
||||||
<xsl:call-template name="foundry:process-datatree-attributes"/>
|
<xsl:call-template name="foundry:process-datatree-attributes"/>
|
||||||
<xsl:if test="$escape = 'yes'">
|
<xsl:if test="$escape = 'yes'">
|
||||||
|
|
@ -205,13 +205,13 @@
|
||||||
</xsl:choose>
|
</xsl:choose>
|
||||||
</span>
|
</span>
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
|
|
||||||
<!-- DE Erzuege den Text des Labels javascript konform -->
|
<!-- DE Erzuege den Text des Labels javascript konform -->
|
||||||
<!-- EN Processing the label text in a javascript compatible way -->
|
<!-- EN Processing the label text in a javascript compatible way -->
|
||||||
<xsl:template name="foundry:bebop-label-textjs">
|
<xsl:template name="foundry:bebop-label-textjs">
|
||||||
<xsl:param name="text"/>
|
<xsl:param name="text"/>
|
||||||
<xsl:param name="escape">no</xsl:param>
|
<xsl:param name="escape">no</xsl:param>
|
||||||
|
|
||||||
<xsl:call-template name="foundry:bebop-label-text">
|
<xsl:call-template name="foundry:bebop-label-text">
|
||||||
<xsl:with-param name="text"
|
<xsl:with-param name="text"
|
||||||
select="replace(current(), '’', '\’')"/>
|
select="replace(current(), '’', '\’')"/>
|
||||||
|
|
@ -225,10 +225,10 @@
|
||||||
<xsl:template name="foundry:bebop-label-text">
|
<xsl:template name="foundry:bebop-label-text">
|
||||||
<xsl:param name="text"/>
|
<xsl:param name="text"/>
|
||||||
<xsl:param name="escape">no</xsl:param>
|
<xsl:param name="escape">no</xsl:param>
|
||||||
|
|
||||||
<!-- DE Keine leeren Labels ausgeben. Das original Theme wandelt diese in   um.
|
<!-- DE Keine leeren Labels ausgeben. Das original Theme wandelt diese in   um.
|
||||||
Das sollte nicht nötig sein -->
|
Das sollte nicht nötig sein -->
|
||||||
<!-- EN Don't print empty Labels. Originally they were converted to  
|
<!-- EN Don't print empty Labels. Originally they were converted to  
|
||||||
but that shouldn't be needed -->
|
but that shouldn't be needed -->
|
||||||
<xsl:if test="not(normalize-space($text)='')">
|
<xsl:if test="not(normalize-space($text)='')">
|
||||||
<xsl:choose>
|
<xsl:choose>
|
||||||
|
|
@ -238,7 +238,7 @@
|
||||||
<xsl:otherwise>
|
<xsl:otherwise>
|
||||||
<xsl:value-of disable-output-escaping="no" select="$text"/>
|
<xsl:value-of disable-output-escaping="no" select="$text"/>
|
||||||
</xsl:otherwise>
|
</xsl:otherwise>
|
||||||
</xsl:choose>
|
</xsl:choose>
|
||||||
</xsl:if>
|
</xsl:if>
|
||||||
|
|
||||||
<!-- DE Hinweise anzeigen -->
|
<!-- DE Hinweise anzeigen -->
|
||||||
|
|
@ -252,5 +252,5 @@
|
||||||
</span>
|
</span>
|
||||||
</xsl:if>
|
</xsl:if>
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
|
|
||||||
</xsl:stylesheet>
|
</xsl:stylesheet>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue