Sha256: a7068fadda8079496478124c5c9fb8a62f42a20933d3e77882123f673a802846

Contents?: true

Size: 1.44 KB

Versions: 33

Compression:

Stored size: 1.44 KB

Contents

<?xml version="1.0" ?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:template match="/">
  <xsl:element name="html">
    <xsl:element name="head">
      <xsl:element name="title">Ramblings - <xsl:value-of select="commentary/meta/title" /> - <xsl:value-of select="commentary/meta/subtitle" /></xsl:element>
    </xsl:element>

    <xsl:element name="body">
      <xsl:element name="h1"><xsl:value-of select="commentary/meta/title" /></xsl:element>
      <xsl:element name="h3"><xsl:value-of select="commentary/meta/subtitle" /></xsl:element>
      By: <xsl:value-of select="commentary/meta/author/first_name" /> <xsl:value-of select="commentary/meta/author/last_name" /><xsl:element name="br" />
      Date: <xsl:value-of select="commentary/meta/date" /><xsl:element name="br" />

      <xsl:for-each select="./commentary/body">
        <xsl:apply-templates />
      </xsl:for-each>

    </xsl:element>
  </xsl:element>
</xsl:template>

<xsl:template match="para">
  <xsl:element name="p">
    <xsl:apply-templates />
  </xsl:element>
</xsl:template>

<xsl:template match="ol">
  <xsl:element name="ol">
    <xsl:apply-templates select="li" />
  </xsl:element>
</xsl:template>

<xsl:template match="li">
  <xsl:element name="li">
    <xsl:value-of select="." />
  </xsl:element>
</xsl:template>

<xsl:template match="thought">
  <xsl:element name="i">
    <xsl:value-of select="." />
  </xsl:element>
</xsl:template>
</xsl:stylesheet>

Version data entries

33 entries across 33 versions & 5 rubygems

Version Path
libxslt-ruby-1.0.1-x86-mingw32 test/files/ramblings.xsl
libxslt-ruby-1.0.1 test/files/ramblings.xsl
libxslt-ruby19-0.9.8 test/files/ramblings.xsl
libxslt-ruby-0.9.8 test/files/ramblings.xsl
libxslt-ruby19-0.0.0 test/files/ramblings.xsl
libxslt-ruby-r19mingw1-0.9.7 test/files/ramblings.xsl
libxslt-ruby-0.9.7 test/files/ramblings.xsl
libxslt-ruby-0.9.6 test/files/ramblings.xsl
libxslt-ruby-0.9.6-x86-mswin32-60 test/files/ramblings.xsl
libxslt-ruby-0.9.5 test/files/ramblings.xsl
libxslt-ruby-0.9.4-x86-mswin32-60 test/files/ramblings.xsl
libxsl-ruby-0.3.6 tests/ramblings.xsl
libxslt-ruby-0.3.6 tests/ramblings.xsl