You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lenya.apache.org by ro...@apache.org on 2005/02/20 17:41:15 UTC

svn commit: r154522 - lenya/branches/BRANCH_1_2_X/src/webapp/lenya/pubs/default/xslt/xhtml2xhtml.xsl

Author: roku
Date: Sun Feb 20 08:41:14 2005
New Revision: 154522

URL: http://svn.apache.org/viewcvs?view=rev&rev=154522
Log:
Fixed asset conversion whitespace problem

Modified:
    lenya/branches/BRANCH_1_2_X/src/webapp/lenya/pubs/default/xslt/xhtml2xhtml.xsl

Modified: lenya/branches/BRANCH_1_2_X/src/webapp/lenya/pubs/default/xslt/xhtml2xhtml.xsl
URL: http://svn.apache.org/viewcvs/lenya/branches/BRANCH_1_2_X/src/webapp/lenya/pubs/default/xslt/xhtml2xhtml.xsl?view=diff&r1=154521&r2=154522
==============================================================================
--- lenya/branches/BRANCH_1_2_X/src/webapp/lenya/pubs/default/xslt/xhtml2xhtml.xsl (original)
+++ lenya/branches/BRANCH_1_2_X/src/webapp/lenya/pubs/default/xslt/xhtml2xhtml.xsl Sun Feb 20 08:41:14 2005
@@ -88,12 +88,17 @@
 	     since we have dublicated code in content2edit.xsl in kupu /roku -->
    <xsl:template name="object2img">
       <img border="0">
-        <xsl:attribute name="src">          
-          <xsl:if test="not(starts-with(@data, '/'))">
-            <xsl:value-of select="$nodeid"/>/
-          </xsl:if>
-          <xsl:value-of select="@data"/>
+        <xsl:attribute name="src">
+          <xsl:choose>
+            <xsl:when test="not(starts-with(@data, '/'))">
+              <xsl:value-of select="$nodeid"/>/<xsl:value-of select="@data"/>
+            </xsl:when>
+            <xsl:otherwise>            
+              <xsl:value-of select="@data"/>
+            </xsl:otherwise>
+          </xsl:choose>
         </xsl:attribute>
+
         <xsl:attribute name="alt">
           <!-- the overwritten title (stored in @name) has precedence over dc:title -->
           <xsl:choose>



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@lenya.apache.org
For additional commands, e-mail: commits-help@lenya.apache.org