r4119 - branches/testing/BOOK/stylesheets/xhtml

manuel at linuxfromscratch.org manuel at linuxfromscratch.org
Sat Sep 4 13:19:03 PDT 2004


Author: manuel
Date: 2004-09-04 14:19:01 -0600 (Sat, 04 Sep 2004)
New Revision: 4119

Modified:
   branches/testing/BOOK/stylesheets/xhtml/lfs-mixed.xsl
Log:
External URLs in italic font for HTML output.

Modified: branches/testing/BOOK/stylesheets/xhtml/lfs-mixed.xsl
===================================================================
--- branches/testing/BOOK/stylesheets/xhtml/lfs-mixed.xsl	2004-09-04 19:53:26 UTC (rev 4118)
+++ branches/testing/BOOK/stylesheets/xhtml/lfs-mixed.xsl	2004-09-04 20:19:01 UTC (rev 4119)
@@ -72,4 +72,27 @@
     </xsl:attribute>
   </xsl:template>
 
+    <!-- External URLs in italic font -->
+  <xsl:template match="ulink" name="ulink">
+    <a>
+      <xsl:if test="@id">
+        <xsl:attribute name="id">
+          <xsl:value-of select="@id"/>
+        </xsl:attribute>
+      </xsl:if>
+      <xsl:attribute name="href"><xsl:value-of select="@url"/></xsl:attribute>
+       <i>
+        <xsl:choose>
+          <xsl:when test="count(child::node())=0">
+            <xsl:value-of select="@url"/>
+          </xsl:when>
+          <xsl:otherwise>
+            <xsl:apply-templates/>
+          </xsl:otherwise>
+        </xsl:choose>
+      </i>
+    </a>
+  </xsl:template>
+
+
 </xsl:stylesheet>




More information about the lfs-book mailing list