Subject: RE: apply-templates select and current() question
From: <Jarno.Elovirta@xxxxxxxxx>
Date: Thu, 19 May 2005 08:49:15 +0300
|
Hi,
> <xsl:apply-templates select="if (current() =
> db:footnote) then *
> else ."/>
> </p>
> </xsl:template>
>
> The above select statement is supposed to:
>
> - if current() is db:citation apply-templates to
> itself in the default
> mode
You have
current() = db:footnote
which in your case most likely tests if the string value of the current node
is equal to the string value of the db:footnote child. You probably want
self::db:footnote
Cheers,
Jarno
|