Revision: 1433
Author: sebastien.lelong
Date: Fri Oct 30 09:01:34 2009
Log: add "Author:" string before author name, and make image clickable  
(open in new window to view in full size) if <image> element contains  
attribute otherprops="clickable"
http://code.google.com/p/jallib/source/detail?r=1433

Modified:
  /trunk/doc/dita/customization/xsl/xslhtml/dita2htmlImpl.xsl

=======================================
--- /trunk/doc/dita/customization/xsl/xslhtml/dita2htmlImpl.xsl Fri Oct 30  
08:55:29 2009
+++ /trunk/doc/dita/customization/xsl/xslhtml/dita2htmlImpl.xsl Fri Oct 30  
09:01:34 2009
@@ -321,7 +321,7 @@
        <!--div class="jalweb-contributor">Contributor: <xsl:value-of  
select="."/></div-->
      </xsl:when>
      <xsl:otherwise>
-         <span class="jalweb-creator"> <xsl:value-of select="."/> |</span>
+         <span class="jalweb-creator">Author: <xsl:value-of select="."/> 
|</span>
      </xsl:otherwise>
    </xsl:choose>
  </xsl:template>
@@ -2280,7 +2280,7 @@
    <xsl:if test="$ARTLBL='yes'"> [<xsl:value-of select="@href"/>] </xsl:if>
  </xsl:template>

-<xsl:template name="topic-image">
+<xsl:template name="common-topic-image">
    <!-- now invoke the actual content and its alt text -->
    <xsl:element name="img">
      <xsl:call-template name="commonattributes">
@@ -2316,6 +2316,19 @@
    </xsl:element>
  </xsl:template>

+<xsl:template name="topic-image">
+  <xsl:choose>
+    <xsl:when test="@otherprops = 'clickable'">
+      <a href="{...@href}" target="_blank">
+        <xsl:call-template name="common-topic-image"/>
+      </a>
+    </xsl:when>
+    <xsl:otherwise>
+      <xsl:call-template name="common-topic-image"/>
+    </xsl:otherwise>
+  </xsl:choose>
+</xsl:template>
+
  <xsl:template match="*[contains(@class,' topic/alt ')]">
    <xsl:apply-templates select="." mode="text-only"/>
  </xsl:template>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"jallib" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/jallib?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to