<?xml version='1.0'?>

<xsl:stylesheet
    xmlns:xsl='http://www.w3.org/XSL/Transform/1.0'
    xmlns:fo='http://www.w3.org/XSL/Format/1.0'
    version='1.0'>

<xsl:output method='fo'/>

  <xsl:template match='/'>
    <fo:display-sequence
        margin='10pt'
        font-family='serif'
        font-size='18pt'>
      <xsl:apply-templates/>
    </fo:display-sequence>
  </xsl:template>

  <xsl:template match="h1">
     <fo:display-sequence
        font-size='32pt'>
      <xsl:apply-templates/>
    </fo:display-sequence>
  </xsl:template>

  <xsl:template match="div[@class='ritual']">
    <fo:block
        margin='10pt'>
      <xsl:apply-templates/>
    </fo:block>
  </xsl:template>

  <xsl:template match="div[@class='origin']">
    <fo:block
        margin-left='20pt'>
      <xsl:apply-templates/>
    </fo:block>
  </xsl:template>

  <xsl:template match="div[@class='publisher']">
    <fo:block
        margin-left='20pt'>
      <xsl:apply-templates/>
    </fo:block>
  </xsl:template>

<xsl:template match="div[@class='order']">
    <fo:block
        margin='20pt'>
      <xsl:apply-templates/>
    </fo:block>
  </xsl:template>

  <xsl:template match="div[@class='address']">
    <fo:block
        margin='20pt'>
      <xsl:apply-templates/>
    </fo:block>
  </xsl:template>

  <xsl:template match="div[@class='price']">
    <fo:block
        margin-left='20pt'>
      <xsl:apply-templates/>
    </fo:block>
  </xsl:template>

  <xsl:template match="div[@class='title']">
    <fo:block
        clear='left'
        margin='10pt'>
      <xsl:apply-templates/>
    </fo:block>
  </xsl:template>

<xsl:template match="div[@class='telephone']">
    <fo:block
        margin='10pt'>
      <xsl:apply-templates/>
    </fo:block>
  </xsl:template>

  <xsl:template match="div[@class='fineprint']">
    <fo:block
        margin='10pt'>
        font-size='10pt'>
      <xsl:apply-templates/>
    </fo:block>
  </xsl:template>

  <xsl:template match="div[@class='linkout']">
    <fo:block
        margin='20pt'>
      <xsl:apply-templates/>
    </fo:block>
  </xsl:template>

  <xsl:template match='p'>
    <fo:block
        space-end='6pt'
        space-before='6pt'
        space-after='6pt'>
      <xsl:apply-templates/>
    </fo:block>
  </xsl:template>

  <xsl:template match='cite'>
    <fo:inline-sequence font-style='italic'>
      <xsl:apply-templates/>
    </fo:inline-sequence>
  </xsl:template>

  <xsl:template match='hr'>
    <fo:display-rule
        margin='10pt'
        rule-thickness='1.5pt'>
      <xsl:apply-templates/>
    </fo:display-rule>
  </xsl:template>

  <xsl:template match='a'>
    <fo:simple-link
        external-destination='{@href}'
        color='rgb(0,0,255)'>
      <xsl:apply-templates/>
    </fo:simple-link>
  </xsl:template>

</xsl:stylesheet>


