This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
ambiguous templates
- To: "'xsl-list at mulberrytech dot com'" <xsl-list at mulberrytech dot com>
- Subject: ambiguous templates
- From: "Pollington, Lee (ELSLON)" <lee dot pollington at biomednet dot com>
- Date: Tue, 7 Nov 2000 15:24:38 -0000
- Reply-To: xsl-list at mulberrytech dot com
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