<?xml version="1.0" encoding="iso-8859-1"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:output indent="yes"/>

<xsl:param name="surveyType"/>
<xsl:param name="weights"/>
<xsl:param name="tradeoff"/>

<xsl:template match="dependency[    ( not(@id='surveyType')  or (@id='surveyType'  and @answer=$surveyType  ))
                                and ( not(@id='weights')     or (@id='weights'     and @answer=$weights     ))
                                and ( not(@id='tradeoff')    or (@id='tradeoff'    and @answer=$tradeoff    ))]">
  <xsl:apply-templates/>
</xsl:template>

<xsl:template match="dependency"></xsl:template>

<xsl:template match="*">
  <xsl:element name="{name()}"> 
    <xsl:copy-of select="@*"/>
    <xsl:apply-templates/>
  </xsl:element>
</xsl:template>

</xsl:stylesheet>

