xsl-list
[Top] [All Lists]

RE: apply-templates select and current() question

2005-05-18 22:49:15
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

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--



<Prev in Thread] Current Thread [Next in Thread>