- Some formatting in the XSL files of Mandalay

- Removal of two calls of mandalay:processAttributes, which may cause errors (Ticket #2076)


git-svn-id: https://svn.libreccm.org/ccm/trunk@2648 8810af33-2d31-482b-a856-94f89814c4df
master
jensp 2014-05-23 09:09:37 +00:00
parent 3683f0e511
commit 7e1c549723
13 changed files with 1209 additions and 1209 deletions

View File

@ -31,45 +31,45 @@
<!-- Autor: Sören Bernstein --> <!-- Autor: Sören Bernstein -->
<xsl:stylesheet <xsl:stylesheet
xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 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:nav="http://ccm.redhat.com/navigation" xmlns:nav="http://ccm.redhat.com/navigation"
xmlns:mandalay="http://mandalay.quasiweb.de" xmlns:mandalay="http://mandalay.quasiweb.de"
exclude-result-prefixes="xsl bebop cms nav" exclude-result-prefixes="xsl bebop cms nav"
version="1.0"> version="1.0">
<!-- DE Formulare --> <!-- DE Formulare -->
<!-- EN Forms --> <!-- EN Forms -->
<xsl:template match="bebop:form"> <xsl:template match="bebop:form">
<xsl:if test="@message"> <xsl:if test="@message">
<div class="formMessage"> <div class="formMessage">
<xsl:value-of select="@message"/> <xsl:value-of select="@message"/>
</div> </div>
</xsl:if> </xsl:if>
<form> <form>
<xsl:if test="not(@method)"> <xsl:if test="not(@method)">
<xsl:attribute name="method">post</xsl:attribute> <xsl:attribute name="method">post</xsl:attribute>
</xsl:if> </xsl:if>
<xsl:call-template name="mandalay:processAttributes"/> <xsl:call-template name="mandalay:processAttributes"/>
<xsl:apply-templates/> <xsl:apply-templates/>
</form> </form>
</xsl:template> </xsl:template>
<!-- DE Formularfehler --> <!-- DE Formularfehler -->
<!-- EN Form errors --> <!-- EN Form errors -->
<xsl:template match="bebop:formErrors"> <xsl:template match="bebop:formErrors">
<span class="bebopFormErrors"> <span class="bebopFormErrors">
<xsl:value-of disable-output-escaping="yes" select="@message"/> <xsl:value-of disable-output-escaping="yes" select="@message"/>
</span> </span>
<br /> <br />
</xsl:template> </xsl:template>
<!-- DE Verschiebe-Knöpfe --> <!-- DE Verschiebe-Knöpfe -->
<!-- EN Move-Buttons --> <!-- EN Move-Buttons -->
<xsl:template match="bebop:cell[@prevURL != '' or @nextURL != '']"> <xsl:template match="bebop:cell[@prevURL != '' or @nextURL != '']">
<xsl:apply-templates select="."/> <xsl:apply-templates select="."/>
<xsl:call-template name="mandalay:moveButtons"/> <xsl:call-template name="mandalay:moveButtons"/>
</xsl:template> </xsl:template>
</xsl:stylesheet> </xsl:stylesheet>

View File

@ -36,18 +36,18 @@
exclude-result-prefixes="xsl bebop cms nav mandalay" exclude-result-prefixes="xsl bebop cms nav mandalay"
version="1.0"> version="1.0">
<!-- DE Verarbeite Bilder - Ignoriere javascript-mode --> <!-- DE Verarbeite Bilder - Ignoriere javascript-mode -->
<!-- EN Processing images - inore javascript-mode --> <!-- EN Processing images - inore javascript-mode -->
<xsl:template match="bebop:image" mode="javascript-mode"> <xsl:template match="bebop:image" mode="javascript-mode">
<xsl:apply-templates select="."/> <xsl:apply-templates select="."/>
</xsl:template> </xsl:template>
<!-- DE Verarbeite Bilder --> <!-- DE Verarbeite Bilder -->
<!-- EN Processing images --> <!-- EN Processing images -->
<xsl:template name="bebop:image" match="bebop:image"> <xsl:template name="bebop:image" match="bebop:image">
<img class="bebopImage"> <img class="bebopImage">
<xsl:call-template name="mandalay:processAttributes"/> <xsl:call-template name="mandalay:processAttributes"/>
</img> </img>
</xsl:template> </xsl:template>
</xsl:stylesheet> </xsl:stylesheet>

View File

@ -31,236 +31,236 @@
--> -->
<xsl:stylesheet <xsl:stylesheet
xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 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:nav="http://ccm.redhat.com/navigation" xmlns:nav="http://ccm.redhat.com/navigation"
xmlns:mandalay="http://mandalay.quasiweb.de" xmlns:mandalay="http://mandalay.quasiweb.de"
exclude-result-prefixes="xsl bebop cms nav mandalay" exclude-result-prefixes="xsl bebop cms nav mandalay"
version="1.0"> version="1.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 != '']"> <xsl:template match="bebop:label[@color != '' or @weight != '' or @id != '']">
<xsl:call-template name="mandalay:bebopLabelStyle"> <xsl:call-template name="mandalay:bebopLabelStyle">
<xsl:with-param name="text">
<xsl:value-of select="."/>
</xsl:with-param>
<xsl:with-param name="escape">
<xsl:value-of select="@escape"/>
</xsl:with-param>
<xsl:with-param name="color">
<xsl:value-of select="@color"/>
</xsl:with-param>
<xsl:with-param name="weight">
<xsl:value-of select="@weight"/>
</xsl:with-param>
</xsl:call-template>
</xsl:template>
<!-- DE Ein Text-Label im Javascript-Mode und mit Formatierung -->
<!-- EN A formatted, javascript-mode text label -->
<xsl:template match="bebop:label[@color != '' or @weight != '' or @id != '']" mode="javascript-mode">
<xsl:call-template name="mandalay:bebopLabelStyle">
<xsl:with-param name="text">
<xsl:value-of select="."/>
</xsl:with-param>
<xsl:with-param name="escape">
<xsl:value-of select="@escape"/>
</xsl:with-param>
<xsl:with-param name="color">
<xsl:value-of select="@color"/>
</xsl:with-param>
<xsl:with-param name="weight">
<xsl:value-of select="@weight"/>
</xsl:with-param>
<xsl:with-param name="mode">
<xsl:text>javascript</xsl:text>
</xsl:with-param>
</xsl:call-template>
</xsl:template>
<!-- DE Ein Text-Label im Javascript-Mode -->
<!-- EN A javascript-mode text label -->
<xsl:template match="bebop:label" mode="javascript-mode">
<xsl:call-template name="mandalay:bebopLabelTextJS">
<xsl:with-param name="text">
<xsl:value-of select="."/>
</xsl:with-param>
<xsl:with-param name="escape">
<xsl:value-of select="@escape"/>
</xsl:with-param>
</xsl:call-template>
</xsl:template>
<!-- DE Ein vorformatiertes Text-Label -->
<!-- EN A preformatted text label -->
<xsl:template match="bebop:label[@class = 'preformatted']">
<pre>
<xsl:call-template name="mandalay:bebopLabelText">
<xsl:with-param name="text">
<xsl:value-of select="."/>
</xsl:with-param>
<xsl:with-param name="escape">
<xsl:value-of select="@escape"/>
</xsl:with-param>
</xsl:call-template>
</pre>
</xsl:template>
<!-- DE Ein Text-Label als Überschrift -->
<!-- EN A text label for the heading -->
<xsl:template match="bebop:label[@class = 'heading']">
<span class="heading">
<xsl:call-template name="mandalay:bebopLabelText">
<xsl:with-param name="text">
<xsl:value-of select="."/>
</xsl:with-param>
<xsl:with-param name="escape">
<xsl:value-of select="@escape"/>
</xsl:with-param>
</xsl:call-template>
</span>
</xsl:template>
<!-- DE Ein Text-Label -->
<!-- EN A text label -->
<xsl:template match="bebop:label">
<xsl:call-template name="mandalay:bebopLabelText">
<xsl:with-param name="text">
<xsl:value-of select="."/>
</xsl:with-param>
<xsl:with-param name="escape">
<xsl:value-of select="@escape"/>
</xsl:with-param>
</xsl:call-template>
</xsl:template>
<!-- DE Ein graphisches Label-->
<!-- EN A graphical label -->
<xsl:template match="bebop:label" mode="image">
<xsl:param name="alt"/>
<xsl:param name="title"/>
<xsl:param name="src"/>
<img alt="{$alt}" title="{$title}" src="{$src}"/>
</xsl:template>
<!-- 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-->
<xsl:template name="mandalay:bebopLabelStyle">
<xsl:param name="text"/>
<xsl:param name="escape">no</xsl:param>
<xsl:param name="color"/>
<xsl:param name="weight"/>
<xsl:param name="mode"/>
<span>
<xsl:call-template name="mandalay:processAttributes"/>
<xsl:choose>
<xsl:when test="$color != ''">
<xsl:attribute name="style">
<xsl:value-of select="concat('font-color:', $color, ';')"/>
</xsl:attribute>
</xsl:when>
<xsl:when test="$weight != ''">
<xsl:attribute name="style">
<xsl:choose>
<xsl:when test="$weight = 'b'">
<xsl:text>font-weight:bold;</xsl:text>
</xsl:when>
<xsl:when test="$weight = 'i'">
<xsl:text>font-style:italic;</xsl:text>
</xsl:when>
<xsl:when test="$weight = 'bi' or $weight = 'ib'">
<xsl:text>font-style:italic;font-weight:bold;</xsl:text>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="concat('font-weight:', $weight, ';')"/>
</xsl:otherwise>
</xsl:choose>
</xsl:attribute>
</xsl:when>
</xsl:choose>
<xsl:choose>
<xsl:when test="$mode = 'javascript'">
<xsl:call-template name="mandalay:bebopLabelTextJS">
<xsl:with-param name="text"> <xsl:with-param name="text">
<xsl:value-of select="$text"/> <xsl:value-of select="."/>
</xsl:with-param> </xsl:with-param>
<xsl:with-param name="escape"> <xsl:with-param name="escape">
<xsl:value-of select="$escape"/> <xsl:value-of select="@escape"/>
</xsl:with-param> </xsl:with-param>
</xsl:call-template> <xsl:with-param name="color">
</xsl:when> <xsl:value-of select="@color"/>
<xsl:otherwise>
<xsl:call-template name="mandalay:bebopLabelText">
<xsl:with-param name="text">
<xsl:value-of select="$text"/>
</xsl:with-param> </xsl:with-param>
<xsl:with-param name="escape"> <xsl:with-param name="weight">
<xsl:value-of select="$escape"/> <xsl:value-of select="@weight"/>
</xsl:with-param> </xsl:with-param>
</xsl:call-template>
</xsl:otherwise>
</xsl:choose>
</span>
</xsl:template>
<!-- DE Erzuege den Text des Labels javascript konform -->
<!-- EN Processing the label text in a javascript compatible way -->
<xsl:template name="mandalay:bebopLabelTextJS">
<xsl:param name="text"/>
<xsl:param name="escape">no</xsl:param>
<xsl:call-template name="mandalay:bebopLabelText">
<xsl:with-param name="text">
<xsl:call-template name="mandalay:string-replace">
<xsl:with-param name="string">
<xsl:value-of select="."/>
</xsl:with-param>
<xsl:with-param name="from">
<xsl:text>&apos;</xsl:text>
</xsl:with-param>
<xsl:with-param name="to">
<xsl:text>\&apos;</xsl:text>
</xsl:with-param>
</xsl:call-template> </xsl:call-template>
</xsl:with-param> </xsl:template>
<xsl:with-param name="escape">
<xsl:value-of select="$escape"/>
</xsl:with-param>
</xsl:call-template>
</xsl:template>
<!-- DE Erzeuge den Text des Labels--> <!-- DE Ein Text-Label im Javascript-Mode und mit Formatierung -->
<!-- EN Processing the label text--> <!-- EN A formatted, javascript-mode text label -->
<xsl:template name="mandalay:bebopLabelText"> <xsl:template match="bebop:label[@color != '' or @weight != '' or @id != '']" mode="javascript-mode">
<xsl:param name="text"/> <xsl:call-template name="mandalay:bebopLabelStyle">
<xsl:param name="escape">no</xsl:param> <xsl:with-param name="text">
<xsl:value-of select="."/>
</xsl:with-param>
<xsl:with-param name="escape">
<xsl:value-of select="@escape"/>
</xsl:with-param>
<xsl:with-param name="color">
<xsl:value-of select="@color"/>
</xsl:with-param>
<xsl:with-param name="weight">
<xsl:value-of select="@weight"/>
</xsl:with-param>
<xsl:with-param name="mode">
<xsl:text>javascript</xsl:text>
</xsl:with-param>
</xsl:call-template>
</xsl:template>
<!-- DE Keine leeren Labels ausgeben. Das original Theme wandelt diese in &#160; um. Das sollte nicht nötig sein --> <!-- DE Ein Text-Label im Javascript-Mode -->
<!-- EN Don't print empty Labels. Originally they were converted to &#160; but that shouldn't be needed --> <!-- EN A javascript-mode text label -->
<xsl:if test="not(normalize-space($text)='')"> <xsl:template match="bebop:label" mode="javascript-mode">
<xsl:choose> <xsl:call-template name="mandalay:bebopLabelTextJS">
<xsl:when test="$escape='yes'"> <xsl:with-param name="text">
<xsl:value-of disable-output-escaping="yes" select="$text"/> <xsl:value-of select="."/>
</xsl:when> </xsl:with-param>
<xsl:otherwise> <xsl:with-param name="escape">
<xsl:value-of disable-output-escaping="no" select="$text"/> <xsl:value-of select="@escape"/>
</xsl:otherwise> </xsl:with-param>
</xsl:choose> </xsl:call-template>
</xsl:if> </xsl:template>
<!-- DE Hinweise anzeigen --> <!-- DE Ein vorformatiertes Text-Label -->
<!-- EN Display form hints --> <!-- EN A preformatted text label -->
<xsl:if test="../following-sibling::bebop:cell/*/@hint != ''"> <xsl:template match="bebop:label[@class = 'preformatted']">
<span class="hint"> <pre>
<xsl:attribute name="content"> <xsl:call-template name="mandalay:bebopLabelText">
<xsl:value-of select="../following-sibling::bebop:cell/*/@hint"/> <xsl:with-param name="text">
</xsl:attribute> <xsl:value-of select="."/>
(?) </xsl:with-param>
</span> <xsl:with-param name="escape">
</xsl:if> <xsl:value-of select="@escape"/>
</xsl:template> </xsl:with-param>
</xsl:call-template>
</pre>
</xsl:template>
<!-- DE Ein Text-Label als Überschrift -->
<!-- EN A text label for the heading -->
<xsl:template match="bebop:label[@class = 'heading']">
<span class="heading">
<xsl:call-template name="mandalay:bebopLabelText">
<xsl:with-param name="text">
<xsl:value-of select="."/>
</xsl:with-param>
<xsl:with-param name="escape">
<xsl:value-of select="@escape"/>
</xsl:with-param>
</xsl:call-template>
</span>
</xsl:template>
<!-- DE Ein Text-Label -->
<!-- EN A text label -->
<xsl:template match="bebop:label">
<xsl:call-template name="mandalay:bebopLabelText">
<xsl:with-param name="text">
<xsl:value-of select="."/>
</xsl:with-param>
<xsl:with-param name="escape">
<xsl:value-of select="@escape"/>
</xsl:with-param>
</xsl:call-template>
</xsl:template>
<!-- DE Ein graphisches Label-->
<!-- EN A graphical label -->
<xsl:template match="bebop:label" mode="image">
<xsl:param name="alt"/>
<xsl:param name="title"/>
<xsl:param name="src"/>
<img alt="{$alt}" title="{$title}" src="{$src}"/>
</xsl:template>
<!-- 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-->
<xsl:template name="mandalay:bebopLabelStyle">
<xsl:param name="text"/>
<xsl:param name="escape">no</xsl:param>
<xsl:param name="color"/>
<xsl:param name="weight"/>
<xsl:param name="mode"/>
<span>
<xsl:call-template name="mandalay:processAttributes"/>
<xsl:choose>
<xsl:when test="$color != ''">
<xsl:attribute name="style">
<xsl:value-of select="concat('font-color:', $color, ';')"/>
</xsl:attribute>
</xsl:when>
<xsl:when test="$weight != ''">
<xsl:attribute name="style">
<xsl:choose>
<xsl:when test="$weight = 'b'">
<xsl:text>font-weight:bold;</xsl:text>
</xsl:when>
<xsl:when test="$weight = 'i'">
<xsl:text>font-style:italic;</xsl:text>
</xsl:when>
<xsl:when test="$weight = 'bi' or $weight = 'ib'">
<xsl:text>font-style:italic;font-weight:bold;</xsl:text>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="concat('font-weight:', $weight, ';')"/>
</xsl:otherwise>
</xsl:choose>
</xsl:attribute>
</xsl:when>
</xsl:choose>
<xsl:choose>
<xsl:when test="$mode = 'javascript'">
<xsl:call-template name="mandalay:bebopLabelTextJS">
<xsl:with-param name="text">
<xsl:value-of select="$text"/>
</xsl:with-param>
<xsl:with-param name="escape">
<xsl:value-of select="$escape"/>
</xsl:with-param>
</xsl:call-template>
</xsl:when>
<xsl:otherwise>
<xsl:call-template name="mandalay:bebopLabelText">
<xsl:with-param name="text">
<xsl:value-of select="$text"/>
</xsl:with-param>
<xsl:with-param name="escape">
<xsl:value-of select="$escape"/>
</xsl:with-param>
</xsl:call-template>
</xsl:otherwise>
</xsl:choose>
</span>
</xsl:template>
<!-- DE Erzuege den Text des Labels javascript konform -->
<!-- EN Processing the label text in a javascript compatible way -->
<xsl:template name="mandalay:bebopLabelTextJS">
<xsl:param name="text"/>
<xsl:param name="escape">no</xsl:param>
<xsl:call-template name="mandalay:bebopLabelText">
<xsl:with-param name="text">
<xsl:call-template name="mandalay:string-replace">
<xsl:with-param name="string">
<xsl:value-of select="."/>
</xsl:with-param>
<xsl:with-param name="from">
<xsl:text>&apos;</xsl:text>
</xsl:with-param>
<xsl:with-param name="to">
<xsl:text>\&apos;</xsl:text>
</xsl:with-param>
</xsl:call-template>
</xsl:with-param>
<xsl:with-param name="escape">
<xsl:value-of select="$escape"/>
</xsl:with-param>
</xsl:call-template>
</xsl:template>
<!-- DE Erzeuge den Text des Labels-->
<!-- EN Processing the label text-->
<xsl:template name="mandalay:bebopLabelText">
<xsl:param name="text"/>
<xsl:param name="escape">no</xsl:param>
<!-- DE Keine leeren Labels ausgeben. Das original Theme wandelt diese in &#160; um. Das sollte nicht nötig sein -->
<!-- EN Don't print empty Labels. Originally they were converted to &#160; but that shouldn't be needed -->
<xsl:if test="not(normalize-space($text)='')">
<xsl:choose>
<xsl:when test="$escape='yes'">
<xsl:value-of disable-output-escaping="yes" select="$text"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of disable-output-escaping="no" select="$text"/>
</xsl:otherwise>
</xsl:choose>
</xsl:if>
<!-- DE Hinweise anzeigen -->
<!-- EN Display form hints -->
<xsl:if test="../following-sibling::bebop:cell/*/@hint != ''">
<span class="hint">
<xsl:attribute name="content">
<xsl:value-of select="../following-sibling::bebop:cell/*/@hint"/>
</xsl:attribute>
(?)
</span>
</xsl:if>
</xsl:template>
</xsl:stylesheet> </xsl:stylesheet>

View File

@ -44,75 +44,75 @@
<xsl:stylesheet <xsl:stylesheet
xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 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:nav="http://ccm.redhat.com/navigation" xmlns:nav="http://ccm.redhat.com/navigation"
xmlns:mandalay="http://mandalay.quasiweb.de" xmlns:mandalay="http://mandalay.quasiweb.de"
exclude-result-prefixes="xsl bebop cms nav" exclude-result-prefixes="xsl bebop cms nav"
version="1.0"> version="1.0">
<!-- DE Hier werden die Links verarbeitet --> <!-- DE Hier werden die Links verarbeitet -->
<!-- EN Processing links --> <!-- EN Processing links -->
<xsl:template name="bebop:link" match="bebop:link"> <xsl:template name="bebop:link" match="bebop:link">
<xsl:param name="alt"/> <xsl:param name="alt"/>
<xsl:param name="title"/> <xsl:param name="title"/>
<xsl:param name="src"/> <xsl:param name="src"/>
<!-- DE --> <!-- DE -->
<!-- EN --> <!-- EN -->
<xsl:variable name="onclick"> <xsl:variable name="onclick">
<xsl:choose> <xsl:choose>
<xsl:when test="boolean(@onclick)=true() and not(starts-with(@onclick, 'return'))"> <xsl:when test="boolean(@onclick)=true() and not(starts-with(@onclick, 'return'))">
<xsl:value-of select="@onclick" disable-output-escaping="yes"/> <xsl:value-of select="@onclick" disable-output-escaping="yes"/>
</xsl:when> </xsl:when>
<xsl:otherwise> <xsl:otherwise>
<xsl:text>this.href='</xsl:text> <xsl:text>this.href='</xsl:text>
<xsl:value-of select="@href" disable-output-escaping="yes"/> <xsl:value-of select="@href" disable-output-escaping="yes"/>
<xsl:text>'; </xsl:text> <xsl:text>'; </xsl:text>
</xsl:otherwise> </xsl:otherwise>
</xsl:choose> </xsl:choose>
</xsl:variable> </xsl:variable>
<!-- DE DoubleClickProtection für Links, wenn es keinen OnClick-Handler gibt --> <!-- DE DoubleClickProtection für Links, wenn es keinen OnClick-Handler gibt -->
<!-- EN DoubleClickProtection for links without an onclick handler --> <!-- EN DoubleClickProtection for links without an onclick handler -->
<xsl:variable name="dcp"> <xsl:variable name="dcp">
<xsl:if test="$dcp-on-links and boolean(@onclick)=false()"> <xsl:if test="$dcp-on-links and boolean(@onclick)=false()">
<xsl:text>doubleClickProtect(this); </xsl:text> <xsl:text>doubleClickProtect(this); </xsl:text>
</xsl:if> </xsl:if>
</xsl:variable> </xsl:variable>
<!-- DE Wenn es ein Link mit Bestätigung ist --> <!-- DE Wenn es ein Link mit Bestätigung ist -->
<!-- EN A link with confirmation --> <!-- EN A link with confirmation -->
<xsl:variable name="confirm"> <xsl:variable name="confirm">
<xsl:if test="boolean(@confirm)=true() or starts-with(@onclick, 'return')"> <xsl:if test="boolean(@confirm)=true() or starts-with(@onclick, 'return')">
<xsl:call-template name="mandalay:string-replace"> <xsl:call-template name="mandalay:string-replace">
<xsl:with-param name="string" select="@onclick"/> <xsl:with-param name="string" select="@onclick"/>
<xsl:with-param name="from" select="'\'"/> <xsl:with-param name="from" select="'\'"/>
<xsl:with-param name="to" select="''"/> <xsl:with-param name="to" select="''"/>
</xsl:call-template> </xsl:call-template>
</xsl:if> </xsl:if>
</xsl:variable> </xsl:variable>
<a> <a>
<xsl:call-template name="mandalay:processAttributes"/> <xsl:call-template name="mandalay:processAttributes"/>
<xsl:attribute name="href"> <xsl:attribute name="href">
<xsl:call-template name="mandalay:linkParser"> <xsl:call-template name="mandalay:linkParser">
<xsl:with-param name="link" select="@href_no_javascript"/> <xsl:with-param name="link" select="@href_no_javascript"/>
</xsl:call-template> </xsl:call-template>
</xsl:attribute> </xsl:attribute>
<xsl:attribute name="onclick"> <xsl:attribute name="onclick">
<xsl:value-of select="$onclick"/> <xsl:value-of select="$onclick"/>
<xsl:value-of select="$dcp"/> <xsl:value-of select="$dcp"/>
<xsl:value-of select="$confirm"/> <xsl:value-of select="$confirm"/>
</xsl:attribute> </xsl:attribute>
<xsl:if test="$src"> <xsl:if test="$src">
<img alt="{$alt}" title="{$title}" src="{$src}"/> <img alt="{$alt}" title="{$title}" src="{$src}"/>
</xsl:if> </xsl:if>
<xsl:apply-templates/> <xsl:apply-templates/>
</a> </a>
</xsl:template> </xsl:template>
</xsl:stylesheet> </xsl:stylesheet>

View File

@ -40,7 +40,7 @@
<!-- DE Eine verticale Liste als UL, wenn es keine item-path-Liste ist --> <!-- DE Eine verticale Liste als UL, wenn es keine item-path-Liste ist -->
<!-- EN A vertical list as ul, if it is not an item-path type list --> <!-- EN A vertical list as ul, if it is not an item-path type list -->
<xsl:template match="bebop:list[@layout = 'vertical']"> <xsl:template match="bebop:list[@layout = 'vertical']">
<xsl:call-template name="mandalay:processAttributes"/> <!--<xsl:call-template name="mandalay:processAttributes"/>-->
<xsl:choose> <xsl:choose>
<xsl:when test="@type = 'item-path'"> <xsl:when test="@type = 'item-path'">

View File

@ -33,199 +33,199 @@
<!-- Autor: Sören Bernstein --> <!-- Autor: Sören Bernstein -->
<xsl:stylesheet <xsl:stylesheet
xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 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:nav="http://ccm.redhat.com/navigation" xmlns:nav="http://ccm.redhat.com/navigation"
xmlns:mandalay="http://mandalay.quasiweb.de" xmlns:mandalay="http://mandalay.quasiweb.de"
exclude-result-prefixes="xsl bebop cms nav" exclude-result-prefixes="xsl bebop cms nav"
version="1.0"> version="1.0">
<!-- DE Layout Panel: Ein 2- 3-spaltiges Panel --> <!-- DE Layout Panel: Ein 2- 3-spaltiges Panel -->
<!-- EN Layout panel: A 2- 3-column panel --> <!-- EN Layout panel: A 2- 3-column panel -->
<xsl:template match="bebop:layoutPanel"> <xsl:template match="bebop:layoutPanel">
<div class="bebopLayoutPanel"> <div class="bebopLayoutPanel">
<xsl:apply-templates/> <xsl:apply-templates/>
</div> </div>
</xsl:template>
<!-- DE Linke Spalte -->
<!-- EN Left column -->
<xsl:template match="bebop:left">
<div class="bebopLeft">
<xsl:apply-templates/>
</div>
</xsl:template>
<!-- DE Haupt-Spalte bzw. mittlere Spalte -->
<!-- EN Main or middle column -->
<xsl:template match="bebop:body">
<div class="bebopBody">
<xsl:apply-templates/>
</div>
</xsl:template>
<!-- DE Segmented Panel: Ein Panel aus Segmenten mit Überschrift und Inhaltsbereich -->
<!-- EN Segmented Panel: A panel of segments with heading and content part -->
<xsl:template match="bebop:segmentedPanel">
<div class="bebopSegmentedPanel">
<!-- DE Verarbeite vorhandene Parameter -->
<xsl:call-template name="mandalay:processAttributes"/>
<xsl:apply-templates/>
</div>
</xsl:template>
<!-- DE Ein Segment für das Segmented Panel. Bebop:section macht das gleiche, nur
ohne das umschließende Segmented Panel. -->
<!-- EN A segment for segmented panel. Bebop:section is doing the same, only without
the surrounding segmented panel. -->
<xsl:template match="bebop:segment | bebop:section">
<div class="bebopSegment">
<xsl:call-template name="mandalay:processAttributes"/>
<xsl:apply-templates select="bebop:segmentHeader | bebop:heading" mode="segment"/>
<xsl:apply-templates select="bebop:segmentBody | bebop:body" mode="segment"/>
</div>
</xsl:template>
<!-- DE Überschrift für ein Segment -->
<!-- EN Heading for a segment -->
<xsl:template match="bebop:segmentHeader | bebop:heading" mode="segment">
<h3 class="bebopSegmentHeader">
<xsl:apply-templates/>
</h3>
</xsl:template>
<!-- DE Inhaltsbereich für ein Segment -->
<!-- EN Content for a segment -->
<xsl:template match="bebop:segmentBody | bebop:body" mode="segment">
<div class="bebopSegmentBody">
<xsl:apply-templates/>
</div>
</xsl:template>
<!-- DE Split Panel: Ein Panel mit Überschrift und 2 Spalten -->
<!-- EN Split Panel: A penel with a heading and 2 columns -->
<xsl:template match="bebop:splitPanel">
<div width="{@width}" border="{@border}" cellpadding="{@cellpadding}" cellspacing="{@cellspacing}">
<div class="bebopSplitPanelHeader">
<xsl:apply-templates select="bebop:cell[position()=1]"/>
</div>
<div class="bebopSplitPanelLeft" width="{@divider_left}">
<xsl:apply-templates select="bebop:cell[position()=2]"/>
</div>
<div class="bebopSplitPanelRight" width="{@divider_right}">
<xsl:apply-templates select="bebop:cell[position()>2]"/>
</div>
</div>
</xsl:template>
<!-- DE List Panel: Eine Panel mit einer Liste -->
<!-- EN List Panel: A panel with a list-->
<xsl:template match="bebop:listPanel">
<ul>
<xsl:apply-templates select="bebop:cell" mode="list"/>
</ul>
</xsl:template>
<!-- DE List Panel: Eine Panel mit einer geordneten Liste -->
<!-- EN List Panel: A panel with an ordered list-->
<xsl:template match="bebop:listPanel[@ordered='true']">
<ol>
<xsl:apply-templates select="bebop:cell" mode="list"/>
</ol>
</xsl:template>
<!-- DE Grid Panel: Ein Panel, daß an einem Gitter ausrichtet (funktioniert nicht) -->
<!-- EN Grid Panel -->
<xsl:template match="bebop:gridPanel">
<div class="bebopGridPanel">
<!--<xsl:call-template name="mandalay:ProcessAttributes"/>-->
<xsl:apply-templates/>
</div>
</xsl:template>
<!-- DE PanelRow erzeugt eine neue Zeile im (Grid) Panel -->
<!-- EN PanelRow creates a new row in a (grid) panel -->
<xsl:template match="bebop:panelRow">
<div class="bebopPanelRow">
<xsl:apply-templates/>
</div>
</xsl:template>
<!-- DE Column Panel: Ein Panel, daß alles in Spalten anzeigt -->
<!-- EN Column Panel: A panel that will create columns -->
<xsl:template match="bebop:columnPanel">
<div class="bebopColumnPanel">
<xsl:apply-templates />
</div>
</xsl:template>
<!-- DE Box Panel -->
<!-- <xsl:template match="bebop:boxPanel">
<div>
<xsl:apply-templates/>
</div>
</xsl:template> </xsl:template>
-->
<!-- DE Ab hier kommen die original templates --> <!-- DE Linke Spalte -->
<!-- EN Some original templates which aren't rewritten yet--> <!-- EN Left column -->
<xsl:template match="bebop:left">
<div class="bebopLeft">
<xsl:apply-templates/>
</div>
</xsl:template>
<!-- Box Panel --> <!-- DE Haupt-Spalte bzw. mittlere Spalte -->
<!-- horizontal --> <!-- EN Main or middle column -->
<xsl:template match="bebop:boxPanel[@axis='1']"> <xsl:template match="bebop:body">
<table> <div class="bebopBody">
<xsl:if test="string-length(@width)>0"> <xsl:apply-templates/>
<xsl:attribute name="width"> </div>
<xsl:value-of select="@width"/> </xsl:template>
</xsl:attribute>
</xsl:if>
<xsl:if test="string-length(@border)>0">
<xsl:attribute name="border">
<xsl:value-of select="@border"/>
</xsl:attribute>
</xsl:if>
<tr>
<xsl:for-each select="bebop:cell">
<td>
<xsl:for-each select="*/@class|*/@style">
<xsl:attribute name="{name()}">
<xsl:value-of select="." />
</xsl:attribute>
</xsl:for-each>
<xsl:apply-templates/>
</td>
</xsl:for-each>
</tr>
</table>
</xsl:template>
<!-- vertikal --> <!-- DE Segmented Panel: Ein Panel aus Segmenten mit Überschrift und Inhaltsbereich -->
<xsl:template match="bebop:boxPanel[@axis='2']"> <!-- EN Segmented Panel: A panel of segments with heading and content part -->
<table> <xsl:template match="bebop:segmentedPanel">
<xsl:if test="string-length(@width)>0"> <div class="bebopSegmentedPanel">
<xsl:attribute name="width"> <!-- DE Verarbeite vorhandene Parameter -->
<xsl:value-of select="@width"/> <xsl:call-template name="mandalay:processAttributes"/>
</xsl:attribute> <xsl:apply-templates/>
</xsl:if> </div>
<xsl:if test="string-length(@border)>0"> </xsl:template>
<xsl:attribute name="border">
<xsl:value-of select="@border"/> <!-- DE Ein Segment für das Segmented Panel. Bebop:section macht das gleiche, nur
</xsl:attribute> ohne das umschließende Segmented Panel. -->
</xsl:if> <!-- EN A segment for segmented panel. Bebop:section is doing the same, only without
<xsl:for-each select="bebop:cell"> the surrounding segmented panel. -->
<tr> <xsl:template match="bebop:segment | bebop:section">
<td> <div class="bebopSegment">
<xsl:for-each select="*/@class|*/@style"> <xsl:call-template name="mandalay:processAttributes"/>
<xsl:attribute name="{name()}"> <xsl:apply-templates select="bebop:segmentHeader | bebop:heading" mode="segment"/>
<xsl:value-of select="." /> <xsl:apply-templates select="bebop:segmentBody | bebop:body" mode="segment"/>
</xsl:attribute> </div>
</xsl:for-each> </xsl:template>
<xsl:apply-templates/>
</td> <!-- DE Überschrift für ein Segment -->
</tr> <!-- EN Heading for a segment -->
</xsl:for-each> <xsl:template match="bebop:segmentHeader | bebop:heading" mode="segment">
</table> <h3 class="bebopSegmentHeader">
</xsl:template> <xsl:apply-templates/>
</h3>
</xsl:template>
<!-- DE Inhaltsbereich für ein Segment -->
<!-- EN Content for a segment -->
<xsl:template match="bebop:segmentBody | bebop:body" mode="segment">
<div class="bebopSegmentBody">
<xsl:apply-templates/>
</div>
</xsl:template>
<!-- DE Split Panel: Ein Panel mit Überschrift und 2 Spalten -->
<!-- EN Split Panel: A penel with a heading and 2 columns -->
<xsl:template match="bebop:splitPanel">
<div width="{@width}" border="{@border}" cellpadding="{@cellpadding}" cellspacing="{@cellspacing}">
<div class="bebopSplitPanelHeader">
<xsl:apply-templates select="bebop:cell[position()=1]"/>
</div>
<div class="bebopSplitPanelLeft" width="{@divider_left}">
<xsl:apply-templates select="bebop:cell[position()=2]"/>
</div>
<div class="bebopSplitPanelRight" width="{@divider_right}">
<xsl:apply-templates select="bebop:cell[position()>2]"/>
</div>
</div>
</xsl:template>
<!-- DE List Panel: Eine Panel mit einer Liste -->
<!-- EN List Panel: A panel with a list-->
<xsl:template match="bebop:listPanel">
<ul>
<xsl:apply-templates select="bebop:cell" mode="list"/>
</ul>
</xsl:template>
<!-- DE List Panel: Eine Panel mit einer geordneten Liste -->
<!-- EN List Panel: A panel with an ordered list-->
<xsl:template match="bebop:listPanel[@ordered='true']">
<ol>
<xsl:apply-templates select="bebop:cell" mode="list"/>
</ol>
</xsl:template>
<!-- DE Grid Panel: Ein Panel, daß an einem Gitter ausrichtet (funktioniert nicht) -->
<!-- EN Grid Panel -->
<xsl:template match="bebop:gridPanel">
<div class="bebopGridPanel">
<!--<xsl:call-template name="mandalay:ProcessAttributes"/>-->
<xsl:apply-templates/>
</div>
</xsl:template>
<!-- DE PanelRow erzeugt eine neue Zeile im (Grid) Panel -->
<!-- EN PanelRow creates a new row in a (grid) panel -->
<xsl:template match="bebop:panelRow">
<div class="bebopPanelRow">
<xsl:apply-templates/>
</div>
</xsl:template>
<!-- DE Column Panel: Ein Panel, daß alles in Spalten anzeigt -->
<!-- EN Column Panel: A panel that will create columns -->
<xsl:template match="bebop:columnPanel">
<div class="bebopColumnPanel">
<xsl:apply-templates />
</div>
</xsl:template>
<!-- DE Box Panel -->
<!-- <xsl:template match="bebop:boxPanel">
<div>
<xsl:apply-templates/>
</div>
</xsl:template>
-->
<!-- DE Ab hier kommen die original templates -->
<!-- EN Some original templates which aren't rewritten yet-->
<!-- Box Panel -->
<!-- horizontal -->
<xsl:template match="bebop:boxPanel[@axis='1']">
<table>
<xsl:if test="string-length(@width)>0">
<xsl:attribute name="width">
<xsl:value-of select="@width"/>
</xsl:attribute>
</xsl:if>
<xsl:if test="string-length(@border)>0">
<xsl:attribute name="border">
<xsl:value-of select="@border"/>
</xsl:attribute>
</xsl:if>
<tr>
<xsl:for-each select="bebop:cell">
<td>
<xsl:for-each select="*/@class|*/@style">
<xsl:attribute name="{name()}">
<xsl:value-of select="." />
</xsl:attribute>
</xsl:for-each>
<xsl:apply-templates/>
</td>
</xsl:for-each>
</tr>
</table>
</xsl:template>
<!-- vertikal -->
<xsl:template match="bebop:boxPanel[@axis='2']">
<table>
<xsl:if test="string-length(@width)>0">
<xsl:attribute name="width">
<xsl:value-of select="@width"/>
</xsl:attribute>
</xsl:if>
<xsl:if test="string-length(@border)>0">
<xsl:attribute name="border">
<xsl:value-of select="@border"/>
</xsl:attribute>
</xsl:if>
<xsl:for-each select="bebop:cell">
<tr>
<td>
<xsl:for-each select="*/@class|*/@style">
<xsl:attribute name="{name()}">
<xsl:value-of select="." />
</xsl:attribute>
</xsl:for-each>
<xsl:apply-templates/>
</td>
</tr>
</xsl:for-each>
</table>
</xsl:template>
</xsl:stylesheet> </xsl:stylesheet>

View File

@ -31,36 +31,36 @@
<!-- Autor: Sören Bernstein --> <!-- Autor: Sören Bernstein -->
<xsl:stylesheet <xsl:stylesheet
xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 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:nav="http://ccm.redhat.com/navigation" xmlns:nav="http://ccm.redhat.com/navigation"
xmlns:mandalay="http://mandalay.quasiweb.de" xmlns:mandalay="http://mandalay.quasiweb.de"
exclude-result-prefixes="xsl bebop cms nav mandalay" exclude-result-prefixes="xsl bebop cms nav mandalay"
version="1.0"> version="1.0">
<!-- DE Erzeuge eine Property-Liste --> <!-- DE Erzeuge eine Property-Liste -->
<!-- EN Create a property list --> <!-- EN Create a property list -->
<xsl:template match="bebop:propertyList"> <xsl:template match="bebop:propertyList">
<div class="bebopPropertyList"> <div class="bebopPropertyList">
<xsl:call-template name="mandalay:processAttributes"/> <xsl:call-template name="mandalay:processAttributes"/>
<xsl:apply-templates/> <xsl:apply-templates/>
</div> </div>
</xsl:template> </xsl:template>
<!-- DE Erzeuge einen Eintrag in der Property-Liste --> <!-- DE Erzeuge einen Eintrag in der Property-Liste -->
<!-- EN Create an entry for the property list --> <!-- EN Create an entry for the property list -->
<xsl:template match="bebop:property"> <xsl:template match="bebop:property">
<span class="property"> <span class="property">
<span class="propertyName"> <span class="propertyName">
<xsl:value-of select="@title"/> <xsl:value-of select="@title"/>
</span> </span>
&nbsp; &nbsp;
<span class="propertyValue"> <span class="propertyValue">
<xsl:value-of select="@value"/> <xsl:value-of select="@value"/>
</span> </span>
<br/> <br/>
</span> </span>
</xsl:template> </xsl:template>
</xsl:stylesheet> </xsl:stylesheet>

View File

@ -29,185 +29,185 @@
--> -->
<xsl:stylesheet <xsl:stylesheet
xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 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:nav="http://ccm.redhat.com/navigation" xmlns:nav="http://ccm.redhat.com/navigation"
xmlns:mandalay="http://mandalay.quasiweb.de" xmlns:mandalay="http://mandalay.quasiweb.de"
exclude-result-prefixes="xsl bebop cms nav mandalay" exclude-result-prefixes="xsl bebop cms nav mandalay"
version="1.0"> version="1.0">
<!-- DE Erzeuge Tabelle. Da die einzelnen Bestandteile (thead, tbody und tfoot) nicht <!-- DE Erzeuge Tabelle. Da die einzelnen Bestandteile (thead, tbody und tfoot) nicht
in der von HTML vorgesehenen Reihenfolge im XML stehen, müssen diese hier in in der von HTML vorgesehenen Reihenfolge im XML stehen, müssen diese hier in
der richtigen Reihenfolge manuell aufgerufen werden. --> der richtigen Reihenfolge manuell aufgerufen werden. -->
<!-- EN Create a table. Because the parts of a table (thead, tbody and tfoot) are not <!-- EN Create a table. Because the parts of a table (thead, tbody and tfoot) are not
in the required order for html, these templates have to be called manually in in the required order for html, these templates have to be called manually in
correct order. --> correct order. -->
<xsl:template match="bebop:table"> <xsl:template match="bebop:table">
<table> <table>
<xsl:call-template name="mandalay:processAttributes"/> <xsl:call-template name="mandalay:processAttributes"/>
<xsl:apply-templates select="bebop:thead"/> <xsl:apply-templates select="bebop:thead"/>
<xsl:apply-templates select="bebop:tfoot"/> <xsl:apply-templates select="bebop:tfoot"/>
<xsl:apply-templates select="bebop:tbody"/> <xsl:apply-templates select="bebop:tbody"/>
</table> </table>
</xsl:template> </xsl:template>
<!-- DE Tabellenkopf --> <!-- DE Tabellenkopf -->
<!-- EN Table header --> <!-- EN Table header -->
<xsl:template match="bebop:thead"> <xsl:template match="bebop:thead">
<thead> <thead>
<tr> <tr>
<xsl:call-template name="mandalay:processAttributes"/> <xsl:call-template name="mandalay:processAttributes"/>
<xsl:apply-templates mode="tableHead"/> <xsl:apply-templates mode="tableHead"/>
</tr> </tr>
</thead> </thead>
</xsl:template> </xsl:template>
<!-- DE Tabellenkörper --> <!-- DE Tabellenkörper -->
<!-- EN Table body --> <!-- EN Table body -->
<xsl:template match="bebop:tbody"> <xsl:template match="bebop:tbody">
<tbody> <tbody>
<xsl:call-template name="mandalay:processAttributes"/> <xsl:call-template name="mandalay:processAttributes"/>
<xsl:apply-templates/> <xsl:apply-templates/>
</tbody> </tbody>
</xsl:template> </xsl:template>
<!-- DE Tabellenfuß --> <!-- DE Tabellenfuß -->
<!-- EN Table footer --> <!-- EN Table footer -->
<xsl:template match="bebop:tfoot"> <xsl:template match="bebop:tfoot">
<tfoot> <tfoot>
<xsl:call-template name="mandalay:processAttributes"/> <xsl:call-template name="mandalay:processAttributes"/>
<xsl:apply-templates/> <xsl:apply-templates/>
</tfoot> </tfoot>
</xsl:template> </xsl:template>
<!-- DE Einzeugt eine Zeile in der Tabelle. Kann diese Zeile alternierend mit zwei verschieden <!-- DE Einzeugt eine Zeile in der Tabelle. Kann diese Zeile alternierend mit zwei verschieden
Klassen versehen. --> Klassen versehen. -->
<!-- EN Creates a table row. is able to set two different class attributes --> <!-- EN Creates a table row. is able to set two different class attributes -->
<xsl:template match="bebop:trow"> <xsl:template match="bebop:trow">
<tr> <tr>
<xsl:call-template name="mandalay:processAttributes"/> <xsl:call-template name="mandalay:processAttributes"/>
<xsl:choose> <xsl:choose>
<xsl:when test="(../@striped or ../../@class = 'dataTable') and (position() mod 2) = 1"> <xsl:when test="(../@striped or ../../@class = 'dataTable') and (position() mod 2) = 1">
<xsl:attribute name="class">bebopTableRowOdd</xsl:attribute> <xsl:attribute name="class">bebopTableRowOdd</xsl:attribute>
</xsl:when> </xsl:when>
<xsl:when test="(../@striped or ../../@class = 'dataTable') and (position() mod 2) = 0"> <xsl:when test="(../@striped or ../../@class = 'dataTable') and (position() mod 2) = 0">
<xsl:attribute name="class">bebopTableRowEven</xsl:attribute> <xsl:attribute name="class">bebopTableRowEven</xsl:attribute>
</xsl:when> </xsl:when>
<xsl:otherwise> <xsl:otherwise>
<xsl:attribute name="class">bebopTableRow</xsl:attribute> <xsl:attribute name="class">bebopTableRow</xsl:attribute>
</xsl:otherwise> </xsl:otherwise>
</xsl:choose> </xsl:choose>
<xsl:apply-templates mode="table"/> <xsl:apply-templates mode="table"/>
</tr> </tr>
</xsl:template> </xsl:template>
<!-- DE Eine Tabellenzelle für den Tabellenkopf --> <!-- DE Eine Tabellenzelle für den Tabellenkopf -->
<!-- EN A table cell for table header --> <!-- EN A table cell for table header -->
<xsl:template match="bebop:cell" mode="tableHead"> <xsl:template match="bebop:cell" mode="tableHead">
<th> <th>
<xsl:call-template name="mandalay:processAttributes"/> <xsl:call-template name="mandalay:processAttributes"/>
<xsl:apply-templates select="."/> <xsl:apply-templates select="."/>
</th> </th>
</xsl:template> </xsl:template>
<!-- DE Eine Tabellenzelle für den Tabellenkörper oder Tabellenfuß --> <!-- DE Eine Tabellenzelle für den Tabellenkörper oder Tabellenfuß -->
<!-- EN A table cell for table body or table footer --> <!-- EN A table cell for table body or table footer -->
<xsl:template match="bebop:cell" mode="table"> <xsl:template match="bebop:cell" mode="table">
<td> <td>
<xsl:call-template name="mandalay:processAttributes"/> <xsl:call-template name="mandalay:processAttributes"/>
<xsl:apply-templates/>
</td>
</xsl:template>
<!-- DE Eine Bebop-Zelle. Dieses Tag ist stark überladen. Es wird an vielen verschiedenen
Stellen verwendet. Diese speziellen Versionen werden in Mandalay in den entsprechenden
Templatedateien verarbeitet. -->
<!-- EN A bebop cell. This tag is heavily overloaded. It is used in many different places.
These special versions of bebop:cell are defined in the corresponding template file
of Mandalay. -->
<xsl:template match="bebop:cell">
<!--<xsl:call-template name="mandalay:processAttributes"/>-->
<xsl:apply-templates/> <xsl:apply-templates/>
</td> </xsl:template>
</xsl:template>
<!-- DE Eine Bebop-Zelle. Dieses Tag ist stark überladen. Es wird an vielen verschiedenen
Stellen verwendet. Diese speziellen Versionen werden in Mandalay in den entsprechenden
Templatedateien verarbeitet. -->
<!-- EN A bebop cell. This tag is heavily overloaded. It is used in many different places.
These special versions of bebop:cell are defined in the corresponding template file
of Mandalay. -->
<xsl:template match="bebop:cell">
<xsl:call-template name="mandalay:processAttributes"/>
<xsl:apply-templates/>
</xsl:template>
<!-- DE Sonderbehandlung für die grafischen Checkboxen --> <!-- DE Sonderbehandlung für die grafischen Checkboxen -->
<!-- EN Special treatment for graphical checkboxes --> <!-- EN Special treatment for graphical checkboxes -->
<xsl:template match="bebop:link[@class = 'checkBoxChecked']"> <xsl:template match="bebop:link[@class = 'checkBoxChecked']">
<xsl:call-template name="bebop:link"> <xsl:call-template name="bebop:link">
<xsl:with-param name="alt" select="'[X]'"/> <xsl:with-param name="alt" select="'[X]'"/>
<xsl:with-param name="title" select="'[X]'"/> <xsl:with-param name="title" select="'[X]'"/>
<xsl:with-param name="src"> <xsl:with-param name="src">
<xsl:call-template name="mandalay:linkParser"> <xsl:call-template name="mandalay:linkParser">
<xsl:with-param name="link"> <xsl:with-param name="link">
<xsl:call-template name="mandalay:getSetting"> <xsl:call-template name="mandalay:getSetting">
<xsl:with-param name="module" select="'bebop'"/> <xsl:with-param name="module" select="'bebop'"/>
<xsl:with-param name="setting" select="'table/setImage/checkboxChecked'"/> <xsl:with-param name="setting" select="'table/setImage/checkboxChecked'"/>
<xsl:with-param name="default" select="'/images/bebop/checkBoxChecked.gif'"/> <xsl:with-param name="default" select="'/images/bebop/checkBoxChecked.gif'"/>
</xsl:call-template> </xsl:call-template>
</xsl:with-param> </xsl:with-param>
<xsl:with-param name="prefix" select="$theme-prefix"/> <xsl:with-param name="prefix" select="$theme-prefix"/>
</xsl:call-template>
</xsl:with-param>
</xsl:call-template> </xsl:call-template>
</xsl:with-param> </xsl:template>
</xsl:call-template>
</xsl:template>
<xsl:template match="bebop:link[@class = 'checkBoxUnchecked']"> <xsl:template match="bebop:link[@class = 'checkBoxUnchecked']">
<xsl:call-template name="bebop:link"> <xsl:call-template name="bebop:link">
<xsl:with-param name="alt" select="'[ ]'"/> <xsl:with-param name="alt" select="'[ ]'"/>
<xsl:with-param name="title" select="'[ ]'"/> <xsl:with-param name="title" select="'[ ]'"/>
<xsl:with-param name="src"> <xsl:with-param name="src">
<xsl:call-template name="mandalay:linkParser"> <xsl:call-template name="mandalay:linkParser">
<xsl:with-param name="link"> <xsl:with-param name="link">
<xsl:call-template name="mandalay:getSetting"> <xsl:call-template name="mandalay:getSetting">
<xsl:with-param name="module" select="'bebop'"/> <xsl:with-param name="module" select="'bebop'"/>
<xsl:with-param name="setting" select="'table/setImage/checkboxUnchecked'"/> <xsl:with-param name="setting" select="'table/setImage/checkboxUnchecked'"/>
<xsl:with-param name="default" select="'/images/bebop/checkBoxUnchecked.gif'"/> <xsl:with-param name="default" select="'/images/bebop/checkBoxUnchecked.gif'"/>
</xsl:call-template> </xsl:call-template>
</xsl:with-param> </xsl:with-param>
<xsl:with-param name="prefix" select="$theme-prefix"/> <xsl:with-param name="prefix" select="$theme-prefix"/>
</xsl:call-template>
</xsl:with-param>
</xsl:call-template> </xsl:call-template>
</xsl:with-param> </xsl:template>
</xsl:call-template>
</xsl:template>
<xsl:template match="bebop:label[@class = 'checkBoxGreyChecked']"> <xsl:template match="bebop:label[@class = 'checkBoxGreyChecked']">
<xsl:apply-templates select="." mode='image'> <xsl:apply-templates select="." mode='image'>
<xsl:with-param name="alt" select="'{X}'"/> <xsl:with-param name="alt" select="'{X}'"/>
<xsl:with-param name="title" select="'{X}'"/> <xsl:with-param name="title" select="'{X}'"/>
<xsl:with-param name="src"> <xsl:with-param name="src">
<xsl:call-template name="mandalay:linkParser"> <xsl:call-template name="mandalay:linkParser">
<xsl:with-param name="link"> <xsl:with-param name="link">
<xsl:call-template name="mandalay:getSetting"> <xsl:call-template name="mandalay:getSetting">
<xsl:with-param name="module" select="'bebop'"/> <xsl:with-param name="module" select="'bebop'"/>
<xsl:with-param name="setting" select="'table/setImage/checkboxGreyChecked'"/> <xsl:with-param name="setting" select="'table/setImage/checkboxGreyChecked'"/>
<xsl:with-param name="default" select="'/images/bebop/checkBoxGreyChecked.gif'"/> <xsl:with-param name="default" select="'/images/bebop/checkBoxGreyChecked.gif'"/>
</xsl:call-template> </xsl:call-template>
</xsl:with-param> </xsl:with-param>
<xsl:with-param name="prefix" select="$theme-prefix"/> <xsl:with-param name="prefix" select="$theme-prefix"/>
</xsl:call-template> </xsl:call-template>
</xsl:with-param> </xsl:with-param>
</xsl:apply-templates> </xsl:apply-templates>
</xsl:template> </xsl:template>
<xsl:template match="bebop:label[@class = 'checkBoxGreyUnchecked']"> <xsl:template match="bebop:label[@class = 'checkBoxGreyUnchecked']">
<xsl:apply-templates select="." mode='image'> <xsl:apply-templates select="." mode='image'>
<xsl:with-param name="alt" select="'{ }'"/> <xsl:with-param name="alt" select="'{ }'"/>
<xsl:with-param name="title" select="'{ }'"/> <xsl:with-param name="title" select="'{ }'"/>
<xsl:with-param name="src"> <xsl:with-param name="src">
<xsl:call-template name="mandalay:linkParser"> <xsl:call-template name="mandalay:linkParser">
<xsl:with-param name="link"> <xsl:with-param name="link">
<xsl:call-template name="mandalay:getSetting"> <xsl:call-template name="mandalay:getSetting">
<xsl:with-param name="module" select="'bebop'"/> <xsl:with-param name="module" select="'bebop'"/>
<xsl:with-param name="setting" select="'table/setImage/checkboxGreyUnchecked'"/> <xsl:with-param name="setting" select="'table/setImage/checkboxGreyUnchecked'"/>
<xsl:with-param name="default" select="'/images/bebop/checkBoxGreyUnchecked.gif'"/> <xsl:with-param name="default" select="'/images/bebop/checkBoxGreyUnchecked.gif'"/>
</xsl:call-template> </xsl:call-template>
</xsl:with-param> </xsl:with-param>
<xsl:with-param name="prefix" select="$theme-prefix"/> <xsl:with-param name="prefix" select="$theme-prefix"/>
</xsl:call-template> </xsl:call-template>
</xsl:with-param> </xsl:with-param>
</xsl:apply-templates> </xsl:apply-templates>
</xsl:template> </xsl:template>
</xsl:stylesheet> </xsl:stylesheet>

View File

@ -35,178 +35,178 @@
<!-- Autor: Sören Bernstein --> <!-- Autor: Sören Bernstein -->
<xsl:stylesheet <xsl:stylesheet
xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 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:nav="http://ccm.redhat.com/navigation" xmlns:nav="http://ccm.redhat.com/navigation"
xmlns:mandalay="http://mandalay.quasiweb.de" xmlns:mandalay="http://mandalay.quasiweb.de"
exclude-result-prefixes="xsl bebop cms nav" exclude-result-prefixes="xsl bebop cms nav"
version="1.0"> version="1.0">
<!-- DE Verabeitung von Checkbox- und Radiobutton-Groups. <!-- DE Verabeitung von Checkbox- und Radiobutton-Groups.
Kann diese horizontal oder vertikal anzeigen --> Kann diese horizontal oder vertikal anzeigen -->
<!-- EN Processing checkbox group and radiobutton group. <!-- EN Processing checkbox group and radiobutton group.
Distinguish between horizontal and vertical display. --> Distinguish between horizontal and vertical display. -->
<xsl:template match="bebop:checkboxGroup | bebop:radioGroup"> <xsl:template match="bebop:checkboxGroup | bebop:radioGroup">
<xsl:choose>
<xsl:when test="@class = 'vertical' or @axis = '2'">
<div class="optionGroup">
<xsl:apply-templates mode="vertical"/>
</div>
</xsl:when>
<xsl:otherwise>
<span class="optionGroup">
<xsl:apply-templates/>
</span>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<!-- DE Vertikale Anzeige von Radiobuttons -->
<!-- EN Display radio buttons vertically -->
<xsl:template match="bebop:radio" mode="vertical">
<xsl:apply-templates select="."/>
<br />
</xsl:template>
<!-- DE Erzeuge einen Radiobutton mit allen gefundenen Angaben -->
<!-- EN Create a radio button with all given attributes -->
<xsl:template match="bebop:radio">
<input type="radio" id="{@name}:{@value}">
<xsl:call-template name="mandalay:processAttributes"/>
<xsl:for-each select="../@readonly | ../@disabled | ../@title | ../@onclick">
<xsl:attribute name="{name()}">
<xsl:value-of select="."/>
</xsl:attribute>
</xsl:for-each>
</input>
&nbsp;
<label for="{@name}:{@value}">
<xsl:apply-templates/>
</label>
</xsl:template>
<!-- DE Vertikale Anzeige von Checkboxen -->
<!-- EN Display checkboxes vertically -->
<xsl:template match="bebop:checkbox" mode="vertical">
<xsl:apply-templates select="."/>
<br />
</xsl:template>
<!-- DE Erzeuge eine Checkbox mit allen gefundenen Angaben -->
<!-- EN Create a checkbox with all given attributes -->
<xsl:template match="bebop:checkbox">
<input type="checkbox" id="{@name}:{@value}">
<xsl:call-template name="mandalay:processAttributes"/>
<xsl:for-each select="../@readonly | ../@disabled | ../@title | ../@onclick">
<xsl:attribute name="{name()}">
<xsl:value-of select="."/>
</xsl:attribute>
</xsl:for-each>
</input>
<label for="{@name}:{@value}">
<xsl:apply-templates/>
</label>
&nbsp;
</xsl:template>
<!-- DE Erzeuge eine Auswahlliste (Select), optional mit Mehrfachauswahl (MultiSelect).
Wenn angefordert, erzeugt es für eine Auswahl der Länge 1 stattdessen ein Label. -->
<!-- EN Create a select or multiselect widget. If wanted, creates a label instead for
a selection length of 1. -->
<xsl:template match="bebop:select | bebop:multiSelect">
<xsl:choose>
<xsl:when test="@class = 'displayOneOptionAsLabel' and count(bebop:option) = 1">
<xsl:choose> <xsl:choose>
<xsl:when test="bebop:option/@label"> <xsl:when test="@class = 'vertical' or @axis = '2'">
<label> <div class="optionGroup">
<xsl:attribute name="for"> <xsl:apply-templates mode="vertical"/>
<xsl:value-of select="@name"/> </div>
</xsl:attribute> </xsl:when>
<xsl:value-of select="bebop:option/@label"/> <xsl:otherwise>
</label> <span class="optionGroup">
</xsl:when> <xsl:apply-templates/>
<xsl:otherwise> </span>
<label> </xsl:otherwise>
<xsl:attribute name="for">
<xsl:value-of select="@name"/>
</xsl:attribute>
<xsl:apply-templates select="bebop:option/bebop:label"/>
</label>
</xsl:otherwise>
</xsl:choose> </xsl:choose>
<input type="hidden"> </xsl:template>
<xsl:attribute name="name">
<xsl:value-of select="@name"/> <!-- DE Vertikale Anzeige von Radiobuttons -->
</xsl:attribute> <!-- EN Display radio buttons vertically -->
<xsl:attribute name="value"> <xsl:template match="bebop:radio" mode="vertical">
<xsl:value-of select="bebop:option/@value"/> <xsl:apply-templates select="."/>
</xsl:attribute> <br />
</xsl:template>
<!-- DE Erzeuge einen Radiobutton mit allen gefundenen Angaben -->
<!-- EN Create a radio button with all given attributes -->
<xsl:template match="bebop:radio">
<input type="radio" id="{@name}:{@value}">
<xsl:call-template name="mandalay:processAttributes"/>
<xsl:for-each select="../@readonly | ../@disabled | ../@title | ../@onclick">
<xsl:attribute name="{name()}">
<xsl:value-of select="."/>
</xsl:attribute>
</xsl:for-each>
</input> </input>
</xsl:when> &nbsp;
<xsl:otherwise> <label for="{@name}:{@value}">
<select id="@name"> <xsl:apply-templates/>
<xsl:call-template name="mandalay:processAttributes"/> </label>
<xsl:apply-templates/> </xsl:template>
</select>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<!-- DE Erzeugt einen Eintrag für eine Selectbox --> <!-- DE Vertikale Anzeige von Checkboxen -->
<!-- EN Create an entry for a select widget --> <!-- EN Display checkboxes vertically -->
<xsl:template match="bebop:option"> <xsl:template match="bebop:checkbox" mode="vertical">
<option> <xsl:apply-templates select="."/>
<xsl:call-template name="mandalay:processAttributes"/> <br />
<xsl:apply-templates/> </xsl:template>
</option>
</xsl:template>
<!-- DE Erzeugt alle Formular-Eingabefelder, die per <input> in HTML angelegt werden. --> <!-- DE Erzeuge eine Checkbox mit allen gefundenen Angaben -->
<!-- EN Creates all form input field, which are created by a <input> in html. --> <!-- EN Create a checkbox with all given attributes -->
<xsl:template match="bebop:formWidget"> <xsl:template match="bebop:checkbox">
<input> <input type="checkbox" id="{@name}:{@value}">
<xsl:call-template name="mandalay:processAttributes"/> <xsl:call-template name="mandalay:processAttributes"/>
<!-- DE Besondere Behandlung von Submit-Button Double-Click-Protection --> <xsl:for-each select="../@readonly | ../@disabled | ../@title | ../@onclick">
<!-- EN Special processing for submit button: doble click protection --> <xsl:attribute name="{name()}">
<xsl:if test="$dcp-on-buttons and @type='submit' and boolean(@onclick)=false()"> <xsl:value-of select="."/>
<xsl:attribute name="onclick"> </xsl:attribute>
<xsl:text>doubleClickProtect(this);</xsl:text> </xsl:for-each>
</xsl:attribute> </input>
</xsl:if> <label for="{@name}:{@value}">
<xsl:apply-templates/> <xsl:apply-templates/>
</input> </label>
</xsl:template> &nbsp;
</xsl:template>
<!-- DE Erzeugt ein Textfeld --> <!-- DE Erzeuge eine Auswahlliste (Select), optional mit Mehrfachauswahl (MultiSelect).
<!-- EN Create a textarea --> Wenn angefordert, erzeugt es für eine Auswahl der Länge 1 stattdessen ein Label. -->
<xsl:template match="bebop:textarea"> <!-- EN Create a select or multiselect widget. If wanted, creates a label instead for
<textarea> a selection length of 1. -->
<xsl:call-template name="mandalay:processAttributes"/> <xsl:template match="bebop:select | bebop:multiSelect">
<xsl:value-of select="@value"/> <xsl:choose>
</textarea> <xsl:when test="@class = 'displayOneOptionAsLabel' and count(bebop:option) = 1">
</xsl:template> <xsl:choose>
<xsl:when test="bebop:option/@label">
<label>
<xsl:attribute name="for">
<xsl:value-of select="@name"/>
</xsl:attribute>
<xsl:value-of select="bebop:option/@label"/>
</label>
</xsl:when>
<xsl:otherwise>
<label>
<xsl:attribute name="for">
<xsl:value-of select="@name"/>
</xsl:attribute>
<xsl:apply-templates select="bebop:option/bebop:label"/>
</label>
</xsl:otherwise>
</xsl:choose>
<input type="hidden">
<xsl:attribute name="name">
<xsl:value-of select="@name"/>
</xsl:attribute>
<xsl:attribute name="value">
<xsl:value-of select="bebop:option/@value"/>
</xsl:attribute>
</input>
</xsl:when>
<xsl:otherwise>
<select id="@name">
<xsl:call-template name="mandalay:processAttributes"/>
<xsl:apply-templates/>
</select>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<xsl:template match="bebop:date"> <!-- DE Erzeugt einen Eintrag für eine Selectbox -->
<span class="date"> <!-- EN Create an entry for a select widget -->
<xsl:apply-templates/> <xsl:template match="bebop:option">
</span> <option>
</xsl:template> <xsl:call-template name="mandalay:processAttributes"/>
<xsl:apply-templates/>
</option>
</xsl:template>
<xsl:template match="bebop:time"> <!-- DE Erzeugt alle Formular-Eingabefelder, die per <input> in HTML angelegt werden. -->
<span class="time"> <!-- EN Creates all form input field, which are created by a <input> in html. -->
<xsl:apply-templates/> <xsl:template match="bebop:formWidget">
</span> <input>
</xsl:template> <xsl:call-template name="mandalay:processAttributes"/>
<!-- DE Besondere Behandlung von Submit-Button Double-Click-Protection -->
<!-- EN Special processing for submit button: doble click protection -->
<xsl:if test="$dcp-on-buttons and @type='submit' and boolean(@onclick)=false()">
<xsl:attribute name="onclick">
<xsl:text>doubleClickProtect(this);</xsl:text>
</xsl:attribute>
</xsl:if>
<xsl:apply-templates/>
</input>
</xsl:template>
<xsl:template match="bebop:fieldset"> <!-- DE Erzeugt ein Textfeld -->
<fieldset> <!-- EN Create a textarea -->
<xsl:call-template name="mandalay:processAttributes"/> <xsl:template match="bebop:textarea">
<legend> <textarea>
<xsl:value-of select="@legend"/> <xsl:call-template name="mandalay:processAttributes"/>
</legend> <xsl:value-of select="@value"/>
<xsl:apply-templates/> </textarea>
</fieldset> </xsl:template>
</xsl:template>
<xsl:template match="bebop:date">
<span class="date">
<xsl:apply-templates/>
</span>
</xsl:template>
<xsl:template match="bebop:time">
<span class="time">
<xsl:apply-templates/>
</span>
</xsl:template>
<xsl:template match="bebop:fieldset">
<fieldset>
<xsl:call-template name="mandalay:processAttributes"/>
<legend>
<xsl:value-of select="@legend"/>
</legend>
<xsl:apply-templates/>
</fieldset>
</xsl:template>
</xsl:stylesheet> </xsl:stylesheet>

View File

@ -31,21 +31,21 @@
<!-- Autor: Sören Bernstein --> <!-- Autor: Sören Bernstein -->
<xsl:stylesheet <xsl:stylesheet
xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 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:nav="http://ccm.redhat.com/navigation" xmlns:nav="http://ccm.redhat.com/navigation"
xmlns:mandalay="http://mandalay.quasiweb.de" xmlns:mandalay="http://mandalay.quasiweb.de"
exclude-result-prefixes="xsl bebop cms nav mandalay" exclude-result-prefixes="xsl bebop cms nav mandalay"
version="1.0"> version="1.0">
<!-- DE Verarbeitet den cmsContainer --> <!-- DE Verarbeitet den cmsContainer -->
<!-- EN Processing a cmsContainer --> <!-- EN Processing a cmsContainer -->
<xsl:template match="cms:container"> <xsl:template match="cms:container">
<div> <div>
<xsl:call-template name="mandalay:processAttributes"/> <xsl:call-template name="mandalay:processAttributes"/>
<xsl:apply-templates/> <xsl:apply-templates/>
</div> </div>
</xsl:template> </xsl:template>
</xsl:stylesheet> </xsl:stylesheet>

View File

@ -31,109 +31,109 @@
<!-- Autor: Sören Bernstein --> <!-- Autor: Sören Bernstein -->
<xsl:stylesheet <xsl:stylesheet
xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 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:nav="http://ccm.redhat.com/navigation" xmlns:nav="http://ccm.redhat.com/navigation"
xmlns:mandalay="http://mandalay.quasiweb.de" xmlns:mandalay="http://mandalay.quasiweb.de"
exclude-result-prefixes="xsl bebop cms nav mandalay" exclude-result-prefixes="xsl bebop cms nav mandalay"
version="1.0"> version="1.0">
<!-- DE Erzeugt die Liste mit den zugewiesenen Aufgaben --> <!-- DE Erzeugt die Liste mit den zugewiesenen Aufgaben -->
<!-- EN Create a list of tasks --> <!-- EN Create a list of tasks -->
<xsl:template match="bebop:table[@class='imageBrowser']"> <xsl:template match="bebop:table[@class='imageBrowser']">
<div id="cmsImageBrowser"> <div id="cmsImageBrowser">
<xsl:apply-templates select="bebop:tbody/bebop:trow" mode="imageBrowser"/> <xsl:apply-templates select="bebop:tbody/bebop:trow" mode="imageBrowser"/>
</div> </div>
</xsl:template> </xsl:template>
<xsl:template match="bebop:trow" mode="imageBrowser"> <xsl:template match="bebop:trow" mode="imageBrowser">
<div class="tile"> <div class="tile">
<xsl:apply-templates select="bebop:cell" mode="imageBrowser"/> <xsl:apply-templates select="bebop:cell" mode="imageBrowser"/>
</div> </div>
</xsl:template> </xsl:template>
<xsl:template match="bebop:cell" mode="imageBrowser"> <xsl:template match="bebop:cell" mode="imageBrowser">
<div> <div>
<xsl:if test="bebop:label"> <xsl:if test="bebop:label">
<xsl:attribute name="alt"> <xsl:attribute name="alt">
<xsl:value-of select="bebop:label"/> <xsl:value-of select="bebop:label"/>
</xsl:attribute> </xsl:attribute>
<xsl:attribute name="title"> <xsl:attribute name="title">
<xsl:value-of select="bebop:label"/> <xsl:value-of select="bebop:label"/>
</xsl:attribute> </xsl:attribute>
</xsl:if> </xsl:if>
<xsl:apply-templates mode="imageBrowser"/> <xsl:apply-templates mode="imageBrowser"/>
</div> </div>
</xsl:template> </xsl:template>
<xsl:template match="bebop:link" mode="imageBrowser"> <xsl:template match="bebop:link" mode="imageBrowser">
<xsl:param name="alt"/> <xsl:param name="alt"/>
<xsl:param name="title"/> <xsl:param name="title"/>
<xsl:param name="src"/> <xsl:param name="src"/>
<!-- DE --> <!-- DE -->
<!-- EN --> <!-- EN -->
<xsl:variable name="onclick"> <xsl:variable name="onclick">
<xsl:choose> <xsl:choose>
<xsl:when test="boolean(@onclick)=true() and not(starts-with(@onclick, 'return'))"> <xsl:when test="boolean(@onclick)=true() and not(starts-with(@onclick, 'return'))">
<xsl:value-of select="@onclick" disable-output-escaping="yes"/> <xsl:value-of select="@onclick" disable-output-escaping="yes"/>
</xsl:when> </xsl:when>
<xsl:otherwise> <xsl:otherwise>
<xsl:text>this.href='</xsl:text> <xsl:text>this.href='</xsl:text>
<xsl:value-of select="@href" disable-output-escaping="yes"/> <xsl:value-of select="@href" disable-output-escaping="yes"/>
<xsl:text>'; </xsl:text> <xsl:text>'; </xsl:text>
</xsl:otherwise> </xsl:otherwise>
</xsl:choose> </xsl:choose>
</xsl:variable> </xsl:variable>
<!-- DE DoubleClickProtection für Links, wenn es keinen OnClick-Handler gibt --> <!-- DE DoubleClickProtection für Links, wenn es keinen OnClick-Handler gibt -->
<!-- EN DoubleClickProtection for links without an onclick handler --> <!-- EN DoubleClickProtection for links without an onclick handler -->
<xsl:variable name="dcp"> <xsl:variable name="dcp">
<xsl:if test="$dcp-on-links and boolean(@onclick)=false()"> <xsl:if test="$dcp-on-links and boolean(@onclick)=false()">
<xsl:text>doubleClickProtect(this); </xsl:text> <xsl:text>doubleClickProtect(this); </xsl:text>
</xsl:if> </xsl:if>
</xsl:variable> </xsl:variable>
<!-- DE Wenn es ein Link mit Bestätigung ist --> <!-- DE Wenn es ein Link mit Bestätigung ist -->
<!-- EN A link with confirmation --> <!-- EN A link with confirmation -->
<xsl:variable name="confirm"> <xsl:variable name="confirm">
<xsl:if test="boolean(@confirm)=true() or starts-with(@onclick, 'return')"> <xsl:if test="boolean(@confirm)=true() or starts-with(@onclick, 'return')">
<xsl:call-template name="mandalay:string-replace"> <xsl:call-template name="mandalay:string-replace">
<xsl:with-param name="string" select="@onclick"/> <xsl:with-param name="string" select="@onclick"/>
<xsl:with-param name="from" select="'\'"/> <xsl:with-param name="from" select="'\'"/>
<xsl:with-param name="to" select="''"/> <xsl:with-param name="to" select="''"/>
</xsl:call-template> </xsl:call-template>
</xsl:if> </xsl:if>
</xsl:variable> </xsl:variable>
<a> <a>
<xsl:call-template name="mandalay:processAttributes"/> <xsl:call-template name="mandalay:processAttributes"/>
<xsl:attribute name="href"> <xsl:attribute name="href">
<xsl:call-template name="mandalay:linkParser"> <xsl:call-template name="mandalay:linkParser">
<xsl:with-param name="link" select="@href_no_javascript"/> <xsl:with-param name="link" select="@href_no_javascript"/>
</xsl:call-template> </xsl:call-template>
</xsl:attribute> </xsl:attribute>
<xsl:attribute name="onclick"> <xsl:attribute name="onclick">
<xsl:value-of select="$onclick"/> <xsl:value-of select="$onclick"/>
<xsl:value-of select="$dcp"/> <xsl:value-of select="$dcp"/>
<xsl:value-of select="$confirm"/> <xsl:value-of select="$confirm"/>
</xsl:attribute> </xsl:attribute>
<xsl:if test="$src"> <xsl:if test="$src">
<img alt="{$alt}" title="{$title}" src="{$src}"/> <img alt="{$alt}" title="{$title}" src="{$src}"/>
</xsl:if> </xsl:if>
<xsl:apply-templates mode="imageBrowser"/> <xsl:apply-templates mode="imageBrowser"/>
</a> </a>
</xsl:template> </xsl:template>
<xsl:template match="bebop:image" mode="imageBrowser"> <xsl:template match="bebop:image" mode="imageBrowser">
<xsl:apply-templates select="."/> <xsl:apply-templates select="."/>
</xsl:template> </xsl:template>
<xsl:template match="bebop:label" mode="imageBrowser"> <xsl:template match="bebop:label" mode="imageBrowser">
<xsl:apply-templates select="."/> <xsl:apply-templates select="."/>
</xsl:template> </xsl:template>
</xsl:stylesheet> </xsl:stylesheet>

View File

@ -31,59 +31,59 @@
<!-- Autor: Sören Bernstein --> <!-- Autor: Sören Bernstein -->
<xsl:stylesheet <xsl:stylesheet
xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 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:nav="http://ccm.redhat.com/navigation" xmlns:nav="http://ccm.redhat.com/navigation"
xmlns:mandalay="http://mandalay.quasiweb.de" xmlns:mandalay="http://mandalay.quasiweb.de"
exclude-result-prefixes="xsl bebop cms nav mandalay" exclude-result-prefixes="xsl bebop cms nav mandalay"
version="1.0"> version="1.0">
<!-- DE Erzeuge eine sortierbare Liste (mit Sortierpfeilen) --> <!-- DE Erzeuge eine sortierbare Liste (mit Sortierpfeilen) -->
<!-- EN Create a sortable list (with sorting buttons) --> <!-- EN Create a sortable list (with sorting buttons) -->
<xsl:template match="cms:sortableList"> <xsl:template match="cms:sortableList">
<div class="cmsSortableList"> <div class="cmsSortableList">
<xsl:call-template name="mandalay:processAttributes"/> <xsl:call-template name="mandalay:processAttributes"/>
<ul> <ul>
<xsl:apply-templates mode="sortableList"/> <xsl:apply-templates mode="sortableList"/>
</ul> </ul>
</div> </div>
</xsl:template> </xsl:template>
<!-- DE Spezielles bebop:cell für die sortierbaren Listen, daß die Pfeile mit erzeugt --> <!-- DE Spezielles bebop:cell für die sortierbaren Listen, daß die Pfeile mit erzeugt -->
<!-- EN A special bebop:cell for sortable list, which will create sorting buttons --> <!-- EN A special bebop:cell for sortable list, which will create sorting buttons -->
<xsl:template match="bebop:cell" mode="sortableList"> <xsl:template match="bebop:cell" mode="sortableList">
<li> <li>
<xsl:if test="@configure"> <xsl:if test="@configure">
<span class="sortButtons"> <span class="sortButtons">
<span class="sortButtonUp"> <span class="sortButtonUp">
<xsl:choose> <xsl:choose>
<xsl:when test="@prevURL"> <xsl:when test="@prevURL">
<a href="{@prevURL}"> <a href="{@prevURL}">
<img alt="^" src="{$theme-prefix}/images/cms/arrowUp.gif"/> <img alt="^" src="{$theme-prefix}/images/cms/arrowUp.gif"/>
</a> </a>
</xsl:when> </xsl:when>
<xsl:otherwise> <xsl:otherwise>
&nbsp; &nbsp;
</xsl:otherwise> </xsl:otherwise>
</xsl:choose> </xsl:choose>
</span> </span>
<span class="sortButtonDown"> <span class="sortButtonDown">
<xsl:choose> <xsl:choose>
<xsl:when test="@nextURL"> <xsl:when test="@nextURL">
<a href="{@nextURL}"> <a href="{@nextURL}">
<img alt="v" src="{$theme-prefix}/images/cms/arrowDown.gif"/> <img alt="v" src="{$theme-prefix}/images/cms/arrowDown.gif"/>
</a> </a>
</xsl:when> </xsl:when>
<xsl:otherwise> <xsl:otherwise>
&nbsp; &nbsp;
</xsl:otherwise> </xsl:otherwise>
</xsl:choose> </xsl:choose>
</span> </span>
</span> </span>
</xsl:if> </xsl:if>
<xsl:apply-templates/> <xsl:apply-templates/>
</li> </li>
</xsl:template> </xsl:template>
</xsl:stylesheet> </xsl:stylesheet>

View File

@ -31,191 +31,191 @@
<!-- Autor: Sören Bernstein --> <!-- Autor: Sören Bernstein -->
<xsl:stylesheet <xsl:stylesheet
xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 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:nav="http://ccm.redhat.com/navigation" xmlns:nav="http://ccm.redhat.com/navigation"
xmlns:mandalay="http://mandalay.quasiweb.de" xmlns:mandalay="http://mandalay.quasiweb.de"
xmlns:portal="http://www.uk.arsdigita.com/portal/1.0" xmlns:portal="http://www.uk.arsdigita.com/portal/1.0"
xmlns:portlet="http://www.uk.arsdigita.com/portlet/1.0" xmlns:portlet="http://www.uk.arsdigita.com/portlet/1.0"
xmlns:forum="http://www.arsdigita.com/forum/1.0" xmlns:forum="http://www.arsdigita.com/forum/1.0"
exclude-result-prefixes="xsl bebop cms nav mandalay portal portlet forum" exclude-result-prefixes="xsl bebop cms nav mandalay portal portlet forum"
version="1.0"> version="1.0">
<xsl:template match="bebop:form[@name='newPostForm'] | bebop:form[@name='editPostForm'] | bebop:form[@name='replyPostForm']"> <xsl:template match="bebop:form[@name='newPostForm'] | bebop:form[@name='editPostForm'] | bebop:form[@name='replyPostForm']">
<div class="forumForm"> <div class="forumForm">
<h2> <h2>
<xsl:choose> <xsl:choose>
<xsl:when test="forum:postForm | forum:postFormFiles"> <xsl:when test="forum:postForm | forum:postFormFiles">
<xsl:call-template name="mandalay:getStaticText"> <xsl:call-template name="mandalay:getStaticText">
<xsl:with-param name="module" select="'forum'"/> <xsl:with-param name="module" select="'forum'"/>
<xsl:with-param name="id" select="concat('forms/', @name, '/post')"/> <xsl:with-param name="id" select="concat('forms/', @name, '/post')"/>
</xsl:call-template> </xsl:call-template>
</xsl:when> </xsl:when>
<xsl:otherwise> <xsl:otherwise>
<xsl:call-template name="mandalay:getStaticText"> <xsl:call-template name="mandalay:getStaticText">
<xsl:with-param name="module" select="'forum'"/> <xsl:with-param name="module" select="'forum'"/>
<xsl:with-param name="id" select="concat('forms/', @name, '/confirm')"/> <xsl:with-param name="id" select="concat('forms/', @name, '/confirm')"/>
</xsl:call-template> </xsl:call-template>
</xsl:otherwise> </xsl:otherwise>
</xsl:choose> </xsl:choose>
</h2> </h2>
<xsl:if test="@message"> <xsl:if test="@message">
<div class="formMessage"> <div class="formMessage">
<xsl:value-of select="@message"/> <xsl:value-of select="@message"/>
</div>
</xsl:if>
<form>
<xsl:if test="not(@method)">
<xsl:attribute name="method">post</xsl:attribute>
</xsl:if>
<xsl:call-template name="mandalay:processAttributes"/>
<xsl:apply-templates/>
</form>
</div> </div>
</xsl:if> </xsl:template>
<form> <xsl:template match="forum:postForm">
<xsl:if test="not(@method)"> <xsl:apply-templates select="bebop:formWidget[@type='hidden']"/>
<xsl:attribute name="method">post</xsl:attribute> <div>
<label for="subject">
<xsl:call-template name="mandalay:getStaticText">
<xsl:with-param name="module" select="'forum'"/>
<xsl:with-param name="id" select="'forms/subject'"/>
</xsl:call-template>
</label>
<xsl:apply-templates select="bebop:formWidget[@name='subject']"/>
</div>
<div>
<label for="ta_message">
<xsl:call-template name="mandalay:getStaticText">
<xsl:with-param name="module" select="'forum'"/>
<xsl:with-param name="id" select="'forms/message'"/>
</xsl:call-template>
</label>
<xsl:apply-templates select="bebop:textarea[@name='message'] | bebop:xinha[@name='message']"/>
</div>
<xsl:if test="bebop:select[@name='bodyType']">
<div>
<label for="bodyType">
<xsl:call-template name="mandalay:getStaticText">
<xsl:with-param name="module" select="'forum'"/>
<xsl:with-param name="id" select="'forms/format'"/>
</xsl:call-template>
</label>
<xsl:apply-templates select="bebop:select[@name='bodyType']"/>
</div>
</xsl:if> </xsl:if>
<xsl:call-template name="mandalay:processAttributes"/> <xsl:choose>
<xsl:when test="bebop:select[@name='postTopic']">
<div>
<label for="postTopic">
<xsl:call-template name="mandalay:getStaticText">
<xsl:with-param name="module" select="'forum'"/>
<xsl:with-param name="id" select="'forms/topic'"/>
</xsl:call-template>
</label>
<xsl:apply-templates select="bebop:select[@name='postTopic']"/>
</div>
</xsl:when>
<xsl:when test="forum:message">
<div>
<label for="">
<xsl:call-template name="mandalay:getStaticText">
<xsl:with-param name="module" select="'forum'"/>
<xsl:with-param name="id" select="'forms/inReply'"/>
</xsl:call-template>
</label>
<xsl:apply-templates select="forum:message"/>
</div>
</xsl:when>
</xsl:choose>
</xsl:template>
<xsl:template match="forum:postConfirm">
<div class="postConfirm">
<span class="label">
<xsl:call-template name="mandalay:getStaticText">
<xsl:with-param name="module" select="'forum'"/>
<xsl:with-param name="id" select="'messages/subject'"/>
</xsl:call-template>
</span>
<span class="value">
<xsl:value-of select="subject"/>
</span>
<br/>
<span class="label">
<xsl:call-template name="mandalay:getStaticText">
<xsl:with-param name="module" select="'forum'"/>
<xsl:with-param name="id" select="'messages/message'"/>
</xsl:call-template>
</span>
<span class="value">
<xsl:value-of disable-output-escaping="yes" select="body"/>
</span>
<br/>
<h3>
<xsl:call-template name="mandalay:getStaticText">
<xsl:with-param name="module" select="'forum'"/>
<xsl:with-param name="id" select="'forms/attachedFiles/heading'"/>
</xsl:call-template>
</h3>
<xsl:apply-templates select="forum:files | files"/>
<br/>
</div>
</xsl:template>
<xsl:template match="forum:postFormFiles">
<h3>
<xsl:call-template name="mandalay:getStaticText">
<xsl:with-param name="module" select="'forum'"/>
<xsl:with-param name="id" select="'forms/attachedFiles/heading'"/>
</xsl:call-template>
</h3>
<xsl:apply-templates/> <xsl:apply-templates/>
</form> </xsl:template>
</div>
</xsl:template>
<xsl:template match="forum:postForm"> <xsl:template match="forum:attachedFiles">
<xsl:apply-templates select="bebop:formWidget[@type='hidden']"/> <ul>
<div> <xsl:apply-templates/>
<label for="subject"> </ul>
<xsl:call-template name="mandalay:getStaticText"> <div class="formDescription">
<xsl:with-param name="module" select="'forum'"/>
<xsl:with-param name="id" select="'forms/subject'"/>
</xsl:call-template>
</label>
<xsl:apply-templates select="bebop:formWidget[@name='subject']"/>
</div>
<div>
<label for="ta_message">
<xsl:call-template name="mandalay:getStaticText">
<xsl:with-param name="module" select="'forum'"/>
<xsl:with-param name="id" select="'forms/message'"/>
</xsl:call-template>
</label>
<xsl:apply-templates select="bebop:textarea[@name='message'] | bebop:xinha[@name='message']"/>
</div>
<xsl:if test="bebop:select[@name='bodyType']">
<div>
<label for="bodyType">
<xsl:call-template name="mandalay:getStaticText">
<xsl:with-param name="module" select="'forum'"/>
<xsl:with-param name="id" select="'forms/format'"/>
</xsl:call-template>
</label>
<xsl:apply-templates select="bebop:select[@name='bodyType']"/>
</div>
</xsl:if>
<xsl:choose>
<xsl:when test="bebop:select[@name='postTopic']">
<div>
<label for="postTopic">
<xsl:call-template name="mandalay:getStaticText"> <xsl:call-template name="mandalay:getStaticText">
<xsl:with-param name="module" select="'forum'"/> <xsl:with-param name="module" select="'forum'"/>
<xsl:with-param name="id" select="'forms/topic'"/> <xsl:with-param name="id" select="'forms/attachFile/description'"/>
</xsl:call-template> </xsl:call-template>
</label>
<xsl:apply-templates select="bebop:select[@name='postTopic']"/>
</div> </div>
</xsl:when> </xsl:template>
<xsl:when test="forum:message">
<div>
<label for="">
<xsl:call-template name="mandalay:getStaticText">
<xsl:with-param name="module" select="'forum'"/>
<xsl:with-param name="id" select="'forms/inReply'"/>
</xsl:call-template>
</label>
<xsl:apply-templates select="forum:message"/>
</div>
</xsl:when>
</xsl:choose>
</xsl:template>
<xsl:template match="forum:postConfirm"> <xsl:template match="forum:file">
<div class="postConfirm"> <li>
<span class="label"> <span class="name">
<xsl:call-template name="mandalay:getStaticText"> <xsl:value-of select="@name"/>
<xsl:with-param name="module" select="'forum'"/> </span>
<xsl:with-param name="id" select="'messages/subject'"/> <xsl:if test="@deleteLink">
</xsl:call-template>
</span>
<span class="value">
<xsl:value-of select="subject"/>
</span>
<br/>
<span class="label">
<xsl:call-template name="mandalay:getStaticText">
<xsl:with-param name="module" select="'forum'"/>
<xsl:with-param name="id" select="'messages/message'"/>
</xsl:call-template>
</span>
<span class="value">
<xsl:value-of disable-output-escaping="yes" select="body"/>
</span>
<br/>
<h3>
<xsl:call-template name="mandalay:getStaticText">
<xsl:with-param name="module" select="'forum'"/>
<xsl:with-param name="id" select="'forms/attachedFiles/heading'"/>
</xsl:call-template>
</h3>
<xsl:apply-templates select="forum:files | files"/>
<br/>
</div>
</xsl:template>
<xsl:template match="forum:postFormFiles">
<h3>
<xsl:call-template name="mandalay:getStaticText">
<xsl:with-param name="module" select="'forum'"/>
<xsl:with-param name="id" select="'forms/attachedFiles/heading'"/>
</xsl:call-template>
</h3>
<xsl:apply-templates/>
</xsl:template>
<xsl:template match="forum:attachedFiles">
<ul>
<xsl:apply-templates/>
</ul>
<div class="formDescription">
<xsl:call-template name="mandalay:getStaticText">
<xsl:with-param name="module" select="'forum'"/>
<xsl:with-param name="id" select="'forms/attachFile/description'"/>
</xsl:call-template>
</div>
</xsl:template>
<xsl:template match="forum:file">
<li>
<span class="name">
<xsl:value-of select="@name"/>
</span>
<xsl:if test="@deleteLink">
&nbsp; &nbsp;
<a class="deleteLink"> <a class="deleteLink">
<xsl:attribute name="href"> <xsl:attribute name="href">
<xsl:value-of select="@deleteLink"/> <xsl:value-of select="@deleteLink"/>
</xsl:attribute> </xsl:attribute>
<xsl:attribute name="title"> <xsl:attribute name="title">
<xsl:call-template name="mandalay:getStaticText"> <xsl:call-template name="mandalay:getStaticText">
<xsl:with-param name="module" select="'forum'"/> <xsl:with-param name="module" select="'forum'"/>
<xsl:with-param name="id" select="'forms/attachedFiles/delete'"/> <xsl:with-param name="id" select="'forms/attachedFiles/delete'"/>
</xsl:call-template> </xsl:call-template>
</xsl:attribute> </xsl:attribute>
<xsl:call-template name="mandalay:getStaticText"> <xsl:call-template name="mandalay:getStaticText">
<xsl:with-param name="module" select="'forum'"/> <xsl:with-param name="module" select="'forum'"/>
<xsl:with-param name="id" select="'forms/attachedFiles/delete'"/> <xsl:with-param name="id" select="'forms/attachedFiles/delete'"/>
</xsl:call-template> </xsl:call-template>
</a> </a>
</xsl:if> </xsl:if>
&nbsp; &nbsp;
<span class="description"> <span class="description">
<xsl:value-of select="@description"/> <xsl:value-of select="@description"/>
</span> </span>
</li> </li>
</xsl:template> </xsl:template>
</xsl:stylesheet> </xsl:stylesheet>