Changeset 000f8fc for stylesheets


Ignore:
Timestamp:
09/04/2004 08:19:01 PM (20 years ago)
Author:
Manuel Canales Esparcia <manuel@…>
Branches:
6.0
Children:
6764192
Parents:
ce1be57
Message:

External URLs in italic font for HTML output.

git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/testing/BOOK@4119 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

File:
1 edited

Legend:

Unmodified
Added
Removed
  • stylesheets/xhtml/lfs-mixed.xsl

    rce1be57 r000f8fc  
    7373  </xsl:template>
    7474
     75    <!-- External URLs in italic font -->
     76  <xsl:template match="ulink" name="ulink">
     77    <a>
     78      <xsl:if test="@id">
     79        <xsl:attribute name="id">
     80          <xsl:value-of select="@id"/>
     81        </xsl:attribute>
     82      </xsl:if>
     83      <xsl:attribute name="href"><xsl:value-of select="@url"/></xsl:attribute>
     84       <i>
     85        <xsl:choose>
     86          <xsl:when test="count(child::node())=0">
     87            <xsl:value-of select="@url"/>
     88          </xsl:when>
     89          <xsl:otherwise>
     90            <xsl:apply-templates/>
     91          </xsl:otherwise>
     92        </xsl:choose>
     93      </i>
     94    </a>
     95  </xsl:template>
     96
     97
    7598</xsl:stylesheet>
Note: See TracChangeset for help on using the changeset viewer.