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:51 UTC
svn commit: r154523 -
lenya/trunk/src/webapp/lenya/pubs/default/xslt/xhtml2xhtml.xsl
Author: roku
Date: Sun Feb 20 08:41:50 2005
New Revision: 154523
URL: http://svn.apache.org/viewcvs?view=rev&rev=154523
Log:
Fixed asset conversion whitespace problem
Modified:
lenya/trunk/src/webapp/lenya/pubs/default/xslt/xhtml2xhtml.xsl
Modified: lenya/trunk/src/webapp/lenya/pubs/default/xslt/xhtml2xhtml.xsl
URL: http://svn.apache.org/viewcvs/lenya/trunk/src/webapp/lenya/pubs/default/xslt/xhtml2xhtml.xsl?view=diff&r1=154522&r2=154523
==============================================================================
--- lenya/trunk/src/webapp/lenya/pubs/default/xslt/xhtml2xhtml.xsl (original)
+++ lenya/trunk/src/webapp/lenya/pubs/default/xslt/xhtml2xhtml.xsl Sun Feb 20 08:41:50 2005
@@ -85,11 +85,15 @@
for more, see http://www.xml.com/pub/a/2003/07/02/dive.html -->
<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 -->
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@lenya.apache.org
For additional commands, e-mail: commits-help@lenya.apache.org