(loading typefaces)
Return to Kyle’s Portfolio

Excerpt from dvelyk.com/icon/public/templates/fuzzdoc-xhtml11.xsl

537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
<x:template match="post" mode="comment">
  <div id="c{@id}">
    <x:choose>
      <x:when test="position() mod 2 = 1">
        <x:attribute name="class">odd secondary post</x:attribute>
      </x:when>
      <x:otherwise>
        <x:attribute name="class">even secondary post</x:attribute>
      </x:otherwise>
    </x:choose>
    <x:if test="@number">
      <div class="id">#<x:value-of select="@number" /></div>
    </x:if>
    <x:apply-templates select="toon" />
    <div class="meta">
      <img src="{$STATIC_URL}images/icons/64/{icon}" width="64" height="64" alt="comment icon {icon}" />
      posted by <x:apply-templates select="authored/by" /> on <x:apply-templates select="authored/at" />
      <x:if test="edited">
        <br /> edited
        <x:if test="edited/by != authored/by">
          by <x:apply-templates select="edited/by" />
        </x:if>
        on <x:apply-templates select="edited/at" />
      </x:if>
    </div>
    <div class="content {@color}"><x:apply-templates select="content" /></div>
    <x:if test="string-length(signature) &gt; 0">
      <div class="signature">
        <x:apply-templates select="signature" />
      </div>
    </x:if>
    <x:if test="not(../@preview)"><x:apply-templates select="hint" /></x:if>
  </div>
</x:template>