This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

ambiguous templates


Hi, 

The below gives me ambiguity error, fine. So how do I implement templates
that are increasing specialised?

tia
Lee

<!-- general section title -->
<xsl:template match="st">
  <strong>
    <xsl:apply-templates/>
  </strong>
</xsl:template>

<!-- Section title -->
<xsl:template match="sec/st">
  <strong>
    <a name="section{parent::sec/no}">
      <xsl:apply-templates/>
    </a>
   </strong>
</xsl:template>

<!-- Top level Section title -->
<xsl:template match="bdy/sec/st">
  <font size="+1">
    <strong>
      <a name="section{parent::sec/no}">
        <xsl:apply-templates/>
      </a>
    </strong>
  </font>
</xsl:template>


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]