<?xml version="1.0"?>
<!-- This is an XSLT that creates a stub css file for the HTML output mode -->
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
  <xsl:output method="text" indent="no"/>

  <xsl:template match="form">
    <xsl:text>body.form-</xsl:text><xsl:value-of select="@id"/><xsl:text> {}
</xsl:text>
    <xsl:apply-templates/>
  </xsl:template>

  <xsl:template match="group">
    <xsl:if test="//group[count(//group)] = current()">
      <xsl:text>p.group {}
</xsl:text>

    </xsl:if>
    <xsl:apply-templates/>
  </xsl:template>

  <xsl:template match="subgroup">
    <xsl:if test="//subgroup[count(//subgroup)] = current()">
      <xsl:text>p.subgroup {}
</xsl:text>
    </xsl:if>
    <xsl:apply-templates/>
  </xsl:template>

  <xsl:template match="fillin">
   <xsl:text>input.fillin-</xsl:text><xsl:value-of select="@id"/><xsl:text> {}
</xsl:text> 
  </xsl:template>

  <xsl:template match="fillinfmt">
   <xsl:text>input.fillfmt-</xsl:text><xsl:value-of select="@id"/><xsl:text> {}
</xsl:text> 
  </xsl:template>

  <xsl:template match="checkgroup">
   <xsl:text>input.checkgroup-</xsl:text><xsl:value-of select="@id"/><xsl:text> {}
</xsl:text> 
    <xsl:apply-templates/>
  </xsl:template>

  <xsl:template match="option">
   <xsl:text>input.option-</xsl:text><xsl:value-of select="@id"/><xsl:text> {}
</xsl:text> 
  </xsl:template>

  <xsl:template match="text()" />

</xsl:stylesheet>


