forrest-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Johannes Schaefer <johannes.schae...@uidesign.de>
Subject Re: svn commit: r354838 - /forrest/trunk/main/webapp/skins/common/xslt/html/document-to-html.xsl
Date Wed, 21 Dec 2005 13:27:09 GMT


rgardler@apache.org schrieb:
> Author: rgardler
> Date: Wed Dec  7 11:58:13 2005
> New Revision: 354838
> 
> URL: http://svn.apache.org/viewcvs?rev=354838&view=rev
> Log:
> check for existence of @class to prevent an extra space being added when not needed

Is this necessary? The extra space does not do any harm.
If "Yes", I'll update my recent comitts accordingly.
Sorry for not noticing/reviewing earlier.
Johannes

> 
> Modified:
>     forrest/trunk/main/webapp/skins/common/xslt/html/document-to-html.xsl
> 
> Modified: forrest/trunk/main/webapp/skins/common/xslt/html/document-to-html.xsl
> URL: http://svn.apache.org/viewcvs/forrest/trunk/main/webapp/skins/common/xslt/html/document-to-html.xsl?rev=354838&r1=354837&r2=354838&view=diff
> ==============================================================================
> --- forrest/trunk/main/webapp/skins/common/xslt/html/document-to-html.xsl (original)
> +++ forrest/trunk/main/webapp/skins/common/xslt/html/document-to-html.xsl Wed Dec  7
11:58:13 2005
> @@ -227,7 +227,13 @@
>  
>    <xsl:template match="code">
>      <xsl:apply-templates select="@id"/>
> -    <span class="codefrag {@class}">
> +    <span>
> +      <xsl:attribute name="class">
> +        <xsl:choose>
> +          <xsl:when test="@class">codefrag <xsl:value-of select="@class"/></xsl:when>
> +          <xsl:otherwise>codefrag</xsl:otherwise>
> +        </xsl:choose> 
> +      </xsl:attribute>
>        <xsl:copy-of select="@id"/>
>        <xsl:value-of select="."/>
>      </span>
> 
> 
> 


-- 
User Interface Design GmbH * Teinacher Str. 38 * D-71634 Ludwigsburg
Fon +49 (0)7141 377 000 * Fax  +49 (0)7141 377 00-99
Geschäftsstelle: User Interface Design GmbH * Lehrer-Götz-Weg 11 *
D-81825 München
www.uidesign.de

Buch "User Interface Tuning" von Joachim Machate & Michael Burmester
www.user-interface-tuning.de

Mime
View raw message