camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j...@apache.org
Subject svn commit: r552699 - /activemq/camel/trunk/tooling/maven/maven-html-to-docbook/src/main/resources/docbook.xsl
Date Tue, 03 Jul 2007 07:37:25 GMT
Author: jlim
Date: Tue Jul  3 00:37:24 2007
New Revision: 552699

URL: http://svn.apache.org/viewvc?view=rev&rev=552699
Log:
fixed rendering of image in html

Modified:
    activemq/camel/trunk/tooling/maven/maven-html-to-docbook/src/main/resources/docbook.xsl

Modified: activemq/camel/trunk/tooling/maven/maven-html-to-docbook/src/main/resources/docbook.xsl
URL: http://svn.apache.org/viewvc/activemq/camel/trunk/tooling/maven/maven-html-to-docbook/src/main/resources/docbook.xsl?view=diff&rev=552699&r1=552698&r2=552699
==============================================================================
--- activemq/camel/trunk/tooling/maven/maven-html-to-docbook/src/main/resources/docbook.xsl
(original)
+++ activemq/camel/trunk/tooling/maven/maven-html-to-docbook/src/main/resources/docbook.xsl
Tue Jul  3 00:37:24 2007
@@ -227,24 +227,28 @@
 	<!-- Images -->
 	<!-- Images and image maps -->
 	<xsl:template match="img">
-		<!-- let's not include confluence generated images -->
-		<xsl:if test="@class != 'rendericon'">
-			<xsl:variable name="tag_name">
-				<xsl:choose>
-					<xsl:when 
-						test="boolean(parent::p) and 
+		<xsl:choose>
+			<xsl:when test="contains(@class,'rendericon')">
+				<!--do nothing;  let's not include confluence generated images -->
+			</xsl:when>
+			<xsl:otherwise>
+				<xsl:variable name="tag_name">
+					<xsl:choose>
+						<xsl:when 
+							test="boolean(parent::p) and 
         boolean(normalize-space(parent::p/text()))">
-						<xsl:text>inlinemediaobject</xsl:text>
-					</xsl:when>
-					<xsl:otherwise>mediaobject</xsl:otherwise>
-				</xsl:choose>
-			</xsl:variable>
-			<xsl:element name="{$tag_name}">
-				<imageobject>
-					<xsl:call-template name="process.image"/>
-				</imageobject>
-			</xsl:element>
-		</xsl:if>
+							<xsl:text>inlinemediaobject</xsl:text>
+						</xsl:when>
+						<xsl:otherwise>mediaobject</xsl:otherwise>
+					</xsl:choose>
+				</xsl:variable>
+				<xsl:element name="{$tag_name}">
+					<imageobject>
+						<xsl:call-template name="process.image"/>
+					</imageobject>
+				</xsl:element>
+			</xsl:otherwise>
+		</xsl:choose>
 	</xsl:template>
 	<xsl:template name="process.image">
 		<imagedata>



Mime
View raw message